Download as pdf or txt
Download as pdf or txt
You are on page 1of 264

Teradata Database

Resource Usage Macros and Tables


Release 13.10 B035-1099-109A October 2011

The product or products described in this book are licensed products of Teradata Corporation or its affiliates. Teradata, Active Enterprise Intelligence, Applications Within, Aprimo, Aprimo Marketing Studio, Aster, BYNET, Claraview, DecisionCast, Gridscale, Managing the Business of Marketing, MyCommerce, Raising Intelligence, Smarter. Faster. Wins., SQL-MapReduce, Teradata Decision Experts, Teradata Labs Logo, Teradata Raising Intelligence Logo, Teradata Source Experts, WebAnalyst, and Xkoto are trademarks or registered trademarks of Teradata Corporation or its affiliates in the United States and other countries. Adaptec and SCSISelect are trademarks or registered trademarks of Adaptec, Inc. AMD Opteron and Opteron are trademarks of Advanced Micro Devices, Inc. EMC, PowerPath, SRDF, and Symmetrix are registered trademarks of EMC Corporation. GoldenGate is a trademark of Oracle. Hewlett-Packard and HP are registered trademarks of Hewlett-Packard Company. Intel, Pentium, and XEON are registered trademarks of Intel Corporation. IBM, CICS, RACF, Tivoli, and z/OS are registered trademarks of International Business Machines Corporation. Linux is a registered trademark of Linus Torvalds. LSI is a registered trademark of LSI Corporation. Microsoft, Active Directory, Windows, Windows NT, and Windows Server are registered trademarks of Microsoft Corporation in the United States and other countries. NetVault is a trademark or registered trademark of Quest Software, Inc. in the United States and/or other countries. Novell and SUSE are registered trademarks of Novell, Inc., in the United States and other countries. Oracle, Java, and Solaris are registered trademarks of Oracle and/or its affiliates. QLogic and SANbox are trademarks or registered trademarks of QLogic Corporation. SAS and SAS/C are trademarks or registered trademarks of SAS Institute Inc. SPARC is a registered trademark of SPARC International, Inc. Symantec, NetBackup, and VERITAS are trademarks or registered trademarks of Symantec Corporation or its affiliates in the United States and other countries. Unicode is a registered trademark of Unicode, Inc. in the United States and other countries. UNIX is a registered trademark of The Open Group in the United States and other countries. Other product and company names mentioned herein may be the trademarks of their respective owners.

THE INFORMATION CONTAINED IN THIS DOCUMENT IS PROVIDED ON AN AS-IS BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO THE ABOVE EXCLUSION MAY NOT APPLY TO YOU. IN NO EVENT WILL TERADATA CORPORATION BE LIABLE FOR ANY INDIRECT, DIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS OR LOST SAVINGS, EVEN IF EXPRESSLY ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
The information contained in this document may contain references or cross-references to features, functions, products, or services that are not announced or available in your country. Such references do not imply that Teradata Corporation intends to announce such features, functions, products, or services in your country. Please consult your local Teradata Corporation representative for those features, functions, products, or services available in your country. Information contained in this document may contain technical inaccuracies or typographical errors. Information may be changed or updated without notice. Teradata Corporation may also make improvements or changes in the products or services described in this information at any time without notice. To maintain the quality of our products and services, we would like your comments on the accuracy, clarity, organization, and value of this document. Please email: teradata-books@lists.teradata.com Any comments or materials (collectively referred to as Feedback) sent to Teradata Corporation will be deemed non-confidential. Teradata Corporation will have no obligation of any kind with respect to Feedback and will be free to use, reproduce, disclose, exhibit, display, transform, create derivative works of, and distribute the Feedback and derivative works thereof without limitation on a royalty-free basis. Further, Teradata Corporation will be free to use any ideas, concepts, know-how, or techniques contained in such Feedback for any purpose whatsoever, including developing, manufacturing, or marketing products or services incorporating Feedback. Copyright 2000 2011 by Teradata Corporation. All Rights Reserved.

Preface
Purpose
This book describes, and provides procedures for, Teradata Database resource usage data and macros.

Audience
This book is intended for system programmers, system administrators, and other database specialists responsible for administering or managing Teradata Database.

Supported Software Releases and Operating Systems


This book supports Teradata Database 13.10. Teradata Database 13.10 supports: Microsoft Windows Server 2003 64-bit SUSE Linux Enterprise Server 10

Teradata Database client applications can support other operating systems.

Prerequisites
You should be familiar with basic computer technology, Teradata Database, and the system console environment. It will be helpful to review or reference the following books: Introduction to Teradata Workload Management API: PM/API and Open API Performance Management

Resource Usage Macros and Tables

Preface Changes to This Book

Changes to This Book


Release Teradata Database 13.10 October 2011 Teradata Database 13.10 August 2010 Description Removed the note and some text from the Channel Traffic Columns section in the ResUsageSpma Table chapter. Replaced instances of: "VSS" with "TVS." "collect period" and "collection period" with "gather period." "32-bit" with "64-bit" to some of the extent driver I/O columns in "ResUsageSvpr Table." "Windows and Linux" with "ALL." "Teradata Manager" and "Teradata Dynamic Workload Manager" or "Teradata DWM" with appropriate references to Teradata Viewpoint. Removed the following: References to "MP-RAS," "xctl," "collection rate," and "Performance Monitor (PMON)." The "Using the Active Row Filter Mode" topic from Chapter 2: Planning Your Resource Usage Data. Appendix E: System Activity Reporter. Combined Node Logging Rate and Vproc Logging Rate into a single Logging Rate in Chapter 3: Resource Usage Procedures. Updated the following information: The About the "Invalid Platform" Column section. The SET RESOURCE syntax in Chapter 3: Resource Usage Procedures. The description of the CollectIntervals column. The descriptions of MailBoxDepth, MSGWORKTHREE and MSGWORKELEVEN in Chapter 7: ResUsageSawt Table.. ResSpsView, ResSvprView, and ResGeneralInfoView views in Chapter 14: Resource Usage Views.. The sample outputs for ResMemByGroup, ResMemMgmtOneNode, and ResMemMgmtByNode in Chapter 15: Resource Usage Macros.. SpareCount columns 00-05 and 07-08 in Chapter 11: ResUsageSps Table.. The NumSets description in Chapter 11: ResUsageSps Table.. SpareCount columns 00-07 and SpareTmon columns 01-03 in Chapter 13: ResUsageSvpr Table.. Changed the number of Performance Group (PGs) to 250. Added views: ResSawtView and ResSpsView in Chapter 14: Resource Usage Views..

Resource Usage Macros and Tables

Preface Changes to This Book

Release Teradata Database 13.10 August 2010 (continued)

Description Marked FilePRowNDel, FileSRowNDel, FilePRowNUpd, FileSRowNUpd, FileAPtRowNUpd, FileAPtRowNDel, HostWriteFails, and HostReadFails valid on all platforms. Marked ProcWorkType[i]Sum and ProcWorkType[i]Max invalid on all platforms. The Vproc5 and VprocType5 fields are now valid on all platforms. ResUsageSpdsk table is available for use and reports detailed usage of pdisks. Updated descriptions of summary mode to clarify what is being reported. Updated descriptions for file system fields in the ResUsageSpma table. Fields that were once marked as invalid on all platforms that are now available for use on some or all platforms have been updated. QWaitTimeMax, QLengthMax, and ServiceTimeMax have been changed to gather type "track" (not "count") which means they no longer need to be divided by the log intervals to obtain the average. WorkTypeMax field in both the ResUsageSps and ResUsageAwt table now have the gather type "track." Removed references to xschmon utility. It is no longer supported. Added new fields to ResUsageSps and ResUsageSpdsk. Added new flow control fields and Worktype fields to ResUsageSawt. Added new fields to ResUsageSvpr to support Teradata Dynamic Workload Management software and DBQL. Added new PDE, FSYS, and Teradata Virtual Storage fields to ResUsageSps. Added new MI fields to ResUsageSawt and ResUsageSvpr. Updated or added logical device fields such as input and output traffic columns as well as response time columns to ResUsageSldv. Changed NodeType to CHAR(8) to accommodate new node types with longer names. The field PGId has a new data type of SMALLINT. Also, summary mode of the ResUsageSps table uses the triplet of the PGId, VprType, and PPId fields. Removed instances of gather type "countshft" because the only difference between countshft and count is how data collection is implemented. Clarified CPU normalization in SPMA table Marked all the Extent I/O Driver columns in the SVPR table as invalid.

Teradata Database 13.0 April 2009

Resource Usage Macros and Tables

Preface Additional Information

Release Teradata Database 13.0 April 2009 (continued)

Description The SpareTmon00 field in every table tracks the Capacity on Demand (COD) value. ResUsageSps.WorkTypeInUse values now have a gather type "count." The value must always be divided by the CollectIntervals value. ResUsageSps.WorkTypeMax values reports a maximum of sampled values and not the actual maximum of all inuse AWTs. Updated the definition of the ResGeneralInfo view and added the new ResSvprView view definition to Chapter 14.

Additional Information
URL www.info.teradata.com/ Description Use the Teradata Information Products Publishing Library site to: View or download a manual:
1 Under Online Publications, select General Search. 2 Enter your search criteria and click Search.

Download a documentation CD-ROM:


1 Under Online Publications, select General Search. 2 In the Title or Keyword field, enter CD-ROM, and click

Search.

Order printed manuals: Under Print & CD Publications, select How to Order. www.teradata.com The Teradata home page provides links to numerous sources of information about Teradata. Links include: Executive reports, case studies of customer experiences with Teradata, and thought leadership Technical information, solutions, and expert advice Press releases, mentions and media resources www.teradata.com/t/TEN/ Teradata Customer Education designs, develops and delivers education that builds skills and capabilities for our customers, enabling them to maximize their Teradata investment. Use Teradata @ Your Service to access Orange Books, technical alerts, and knowledge repositories, view and join forums, and download software patches. Teradata Developer Exchange provides articles on using Teradata products, technical discussion forums, and code downloads.

www.teradataatyourservice.com

developer.teradata.com/

Resource Usage Macros and Tables

Preface Additional Information

To maintain the quality of our products and services, we would like your comments on the accuracy, clarity, organization, and value of this document. Please e-mail: teradatabooks@lists.teradata.com.

Resource Usage Macros and Tables

Preface Additional Information

Resource Usage Macros and Tables

Table of Contents

Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3
Purpose . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3 Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3 Supported Software Releases and Operating Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3 Prerequisites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3 Changes to This Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4 Additional Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6

Chapter 1: Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Benefits of Using Resource Usage Data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Accessing Resource Usage Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Setting Up and Maintaining Resource Usage Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Overview of Resource Usage Data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Gathering Resource Usage Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Data Gathering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Data Reporting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Using Resource Usage Macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Application Programming Interfaces and Resource Usage Data . . . . . . . . . . . . . . . . . . . . . . . 18

Chapter 2: Planning Your Resource Usage Data . . . . . . . . . . . . . . . 19


Enabling Resource Usage Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Tables Based on Needed Reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Resource Usage Tables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Setting the Logging Rate. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Logging Rate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Determining the Logging Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Using Summary Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Using Active Row Filter Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Optimizing Resource Usage Logging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 The Cost of Logging. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Resource Usage Macros and Tables 9

Table of Contents

Logging Cost Contributors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24 Operational Methods. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24

Chapter 3: Resource Usage Procedures . . . . . . . . . . . . . . . . . . . . . . . . . . .27


Enabling RSS Logging. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27 Using ctl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27 Using Database Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28 General Macro Input Format. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29 Parameter Use for One-Node, Multiple-Node, All-Node, and Group Macros . . . . . . . . .31 Using One-Node Macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31 Using ByGroup Macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31 Saving and Analyzing Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32 Executing Macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32 Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32 EXECUTE MACRO Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32 Using ENABLE and DISABLE LOGON Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36 Purging Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36

Chapter 4: Resource Usage Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37


Physical Table Naming Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37 Relational Primary Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38 Inserting Rows into Resource Usage Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38 Occasional Event Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38 Types of Resource Usage Table Columns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38 About the Invalid Platform Column. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41 About the Type of Data Column . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42 Column Names Ending In Sum . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42 Summary Mode in Resource Usage Tables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42

Chapter 5: ResUsageScpu Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45


Summary Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48 Spare Columns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48

10

Resource Usage Macros and Tables

Table of Contents

Chapter 6: ResUsageSpma Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51


Spare Columns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71

Chapter 7: ResUsageSawt Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73


Summary Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 Spare Columns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78

Chapter 8: ResUsageShst Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79


Summary Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 Spare Columns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84

Chapter 9: ResUsageSldv Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85


Summary Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 Spare Columns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89

Chapter 10: ResUsageSpdsk Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91


Summary Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 Spare Columns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97

Chapter 11: ResUsageSps Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99


Spare Columns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116

Chapter 12: ResUsageSvdsk Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119


Summary Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 Spare Columns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124

Resource Usage Macros and Tables

11

Table of Contents

Chapter 13: ResUsageSvpr Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .125


Summary Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .142 Spare Columns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .143

Chapter 14: Resource Usage Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .147


ResGeneralInfoView . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .148 ResCPUUsageByAMPView . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .152 ResCPUUsageByPEView . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .154 ResSawtView . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .155 ResShstGroupView . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .157 ResSldvGroupView . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .158 ResSpsView . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .159 ResSvprView . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .166

Chapter 15: Resource Usage Macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . .175


Macro Output Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .175 ResAWT Macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .177 ResAWT Sample Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .180 ResAWTByAMP Sample Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .180 ResAWTByNode Sample Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .181 ResCPUByAMP Macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .182 ResCPUByAMP Sample Output. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .183 ResCPUByAMPOneNode Sample Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .184 ResAmpCpuByGroup Sample Output. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .184 Normalized Viewing of CPU Usage by AMP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .184 ResCPUByPE Macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .186 ResCPUByPE Sample Output. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .187 ResCPUByPEOneNode Sample Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .188 ResPeCpuByGroup Sample Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .188 Normalized Viewing of CPU Usage by PE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .188 ResCPUByNode Macros. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .189 ResCPUByNode Sample Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .190 ResCPUOneNode Sample Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .190 ResCPUByGroup Sample Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .191 ResHostByLink Macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .192

12

Resource Usage Macros and Tables

Table of Contents

ResHostByLink Sample Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194 ResHostOneNode Sample Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195 ResHostByGroup Sample Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195 ResLdvByNode Macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ResLdvByNode Sample Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ResLdvOneNode Sample Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ResLdvByGroup Sample Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ResPdskByNode Macros: Pdisk Device Traffic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ResPdskByNode Sample Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ResPdskOneNode Sample Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ResPdskByGroup Sample Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ResMemMgmtByNode Macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ResMemMgmtByNode Sample Output. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ResMemMgmtOneNode Sample Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ResMemByGroup Sample Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ResNetByNode Macros. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ResNetByNode Sample Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ResNetOneNode Sample Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ResNetByGroup Sample Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ResNode Macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ResNode Sample Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ResOneNode Sample Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ResNodeByNode Sample Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ResNodeByGroup Sample Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ResPs Macros. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ResPsByNode Macro Sample Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ResPsByGroup Macro Sample Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ResPsByNodeWDJoin Macro Sample Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ResVdskByNode Macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ResVdskByNode Sample Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ResVdskOneNode Sample Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ResVdskByGroup Sample Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196 197 197 198 199 200 201 201 202 204 204 204 205 206 206 207 208 211 211 212 212 213 215 216 216 218 219 219 219

Appendix A: How to Read Syntax Diagrams . . . . . . . . . . . . . . . . . . . 221


Syntax Diagram Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221

Resource Usage Macros and Tables

13

Table of Contents

Appendix B: ResUsageIpma Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .227


Spare Columns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .236

Appendix C: ResUsageIvpr Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .237


Summary Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .248 Spare Columns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .249

Appendix D: Partition Assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .251


Table Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .252 Partition Assignment Listing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .252

Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .255

Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .257

14

Resource Usage Macros and Tables

CHAPTER 1

Introduction

Resource usage, or ResUsage, is the collection and reporting of statistical information about the operation of your operating system and Teradata Database.

Benefits of Using Resource Usage Data


Resource usage data is useful for the following purposes: Measuring system performance Measuring component performance Assisting with on-site job scheduling Identifying potential performance impacts Planning installation, upgrade, and migration Analyzing performance degradation and improvement Identifying problems such as bottlenecks, parallel inefficiencies, down components, and congestion

Accessing Resource Usage Data


Resource usage data is stored in system tables and views in the DBC database. Macros installed with Teradata Database generate reports that display the data. As with other database data, you can access resource usage data using SQL if you have the proper privileges. You can also write your own queries or macros on resource usage data.

Setting Up and Maintaining Resource Usage Data


You need to decide what resource usage data you want to collect and the level of detail you want it to cover. This manual documents the resource usage data and settings for a variety of installation configurations and environments in Chapter 2: Planning Your Resource Usage Data. To implement the settings you decide on, see Chapter 3: Resource Usage Procedures. The only maintenance required is to purge old data regularly. See Purging Data on page 36.

Resource Usage Macros and Tables

15

Chapter 1: Introduction Overview of Resource Usage Data

Related Topics
For additional information on performance analysis and system tuning, see the following books: Workload Management API: PM/API and Open API Performance Management

Overview of Resource Usage Data


The following table lists topics covered by resource usage data.
Resource usage data covers BYNET traffic on a node client-to-server traffic CPU utilization data tracking storage device traffic pdisk device traffic vdisk device traffic Priority Scheduler information Which includes point-to-point messaging, broadcast messaging, and merge activities. data for each communication link. overhead, user service, and time of session execution. positions of sessions in locking queues. the number of reads/writes and amount of data transferred as seen from the storage driver. pdisk I/O, cylinder allocation, and migration statistics. all the cylinders allocated by an AMP (which can come from any pdisks in the clique). data by Performance Group (PG) from the Priority Scheduler and the ability to report resource usage data by Teradata Active System Management (ASM) workload definitions (WDs). AWT statistics. memory allocation. all data collected for a node or vproc.

AMP Worker Task (AWT) information memory management activity summary information

Gathering Resource Usage Data


Resource usage data gathering is a two-phase process as follows: Data gathering Data reporting

16

Resource Usage Macros and Tables

Chapter 1: Introduction Gathering Resource Usage Data

Data Gathering
During the data gathering phase the RSS gathers information from the operating system, Parallel Database Extensions (PDE), and Teradata Database. Data gathering periods may not be uniformly spaced and are based on the Teradata Dynamic Workload Management, Collect and Logging rates. The number of gather periods that occurred in any specific reporting period is indicated by the CollectInterval data field.

Data Reporting
The reporting periods occur at the end of one or more gather intervals. Each of the Teradata Dynamic Workload Management, Collect and Logging rates are independent. For the reporting period the respective reporting buffer is updated at the end of the respective reporting period and made accessible via the rssretrieve interface. The resource usage data is written to the database using the data from the Log buffer.

Data Collection Macros and Routines

Gather Buffer

Collect Buffer

Log Buffer

Summary Log

Teradata Dynamic Workload Management Buffer

ResUsage Write Queue

ResUsage Tables

ResUsage Reports
1099A001

Resource Usage Macros and Tables

17

Chapter 1: Introduction Using Resource Usage Macros

Using Resource Usage Macros


Resource usage macros produce reports from data collected in the resource usage tables. You can use the reports to analyze key operational statistics and evaluate the performance of your system. Like other macros, resource usage macros consist of one or more Teradata SQL statements stored in Teradata Database and executed by a single EXECUTE statement. In addition to the name of the macro, the EXECUTE statement for resource usage macros can include parameters to specify the following: A specific single-node A group of nodes Starting and ending dates and times Starting and ending nodes of a range of nodes

Refer to Chapter 3: Resource Usage Procedures for more information on the resource usage macros, and SQL Quick Reference for details about how to use the EXECUTE statement.

Application Programming Interfaces and Resource Usage Data


The resource usage data are not used by just the resource usage macros. Resource usage data can also be used by the System Performance Monitor and Production Control Application Programming Interfaces (PMPC APIs). For more information on these APIs, see Workload Management API: PM/API and Open API.

18

Resource Usage Macros and Tables

CHAPTER 2

Planning Your Resource Usage Data

This chapter describes how to: Enable resource usage tables Set the logging rate Use Summary Mode and Active Row Filter Mode Optimize resource usage logging

Enabling Resource Usage Tables


The default resource usage settings provide a good starting point for system monitoring.The default results in the ResUsageSpma (SPMA) table being logged every 10 minutes (600 seconds). The ResUsageSpma table provides a high level summary of how the system is operating and contains summarized or key elements from most of the other tables. If you want to record detailed statistics covered by any of the resource usage tables, then you should enable them for logging, along with specifying the largest logging period that will meet your needs. You should not log data that you do not have a planned need for since this does incur additional database system overhead and uses up additional database space. Naturally, the more tables you enable for logging and the shorter the logging period used, the more overhead the system will use.

Tables Based on Needed Reports


If you plan on using the report macros provided in Chapter 15: Resource Usage Macros, then you need to enable the associated table. The following table lists more information.

Resource Usage Macros and Tables

19

Chapter 2: Planning Your Resource Usage Data Enabling Resource Usage Tables

For... instructions on setting resource usage tables instructions on using macros descriptions and examples of the macros

See... Enabling RSS Logging on page 27. General Macro Input Format on page 29 and Executing Macros on page 32. Chapter 15: Resource Usage Macros.

Resource Usage Tables


The following table describes the tables and provides guidance about which ones to enable.
Table Name ResUsageScpu Covers Statistics on the CPUs within the nodes. When You Should Enable When the performance analysis suggests that the overall performance is limited or to check if a program is spinning in an infinite loop on an individual processor. For example, saturation of a particular CPU on each node or on a particular node while others are idle could indicate a task always uses that CPU. Also, you should enable when the system is first brought online to verify the following: That all CPUs are functioning on all nodes There is a good load balance among the CPUs ResUsageSpma System-wide node information provides a summary of overall system utilization incorporating the essential information from most of the other tables. Use the columns in ResUsageSpma to view BYNET utilization. Note: The BYNET can transmit and receive at the same time, resulting in 100% transmitting and 100% receiving values simultaneously. Another method of determining BYNET utilization and traffic is to use the blmstat tool. ResUsageIpma ResUsageSawt System-wide node information, intended primarily for Teradata engineers. Data specific to the AWTs. Generally, this table is not used at customer sites. When you want to monitor the utilization of the AWT and determine if work is backing up because the AWTs are all being used. To determine details about the traffic over the IBM Host channels to determine if there is a bottleneck. To provide an overall history of the system operation.

ResUsageShst

Statistics on the host channels and LANs that communicate with Teradata Database.

20

Resource Usage Macros and Tables

Chapter 2: Planning Your Resource Usage Data Setting the Logging Rate

Table Name ResUsageSldv

Covers System-wide, logical device statistics collected from the storage driver.

When You Should Enable To observe the balance of disk usage. The storage device statistics are often difficult to interpret with disk arrays attached due to multi-path access to disks. Note: Use the ResUsageSvdsk table first to observe general system disk utilization unless specifically debugging at a low level.

ResUsageSpdsk ResUsageSps ResUsageSvpr

Statistics collected from the pdisk device. Data by PG ID from the Priority Scheduler. Data specific to each virtual processor and its file system.

To obtain detailed usage information about pdisks. When you need to track utilization by the query WD level. To view details about the resources being used by each vproc on the system. This table is useful for looking for hot AMPS or PEs that may be CPU bound or throttled on other resources. Generally, this table is not used at customer sites.

ResUsageIvpr

System-wide virtual processor information, intended primarily for Teradata engineers.

Setting the Logging Rate


The default for the Node Logging Rate is 600. When you have decided what rate to set, see Chapter 3: Resource Usage Procedures for details on how to set the logging rate.

Logging Rate
Logging rate controls the frequency (number of seconds) at which resource usage data is logged to the resource usage tables. Resource usage logging means the writing of resource data as rows to one or more of the resource usage database tables. The tables are named DBC.ResUsagexxxx, where xxxx is the name of the resource usage table (for example, Spma, Ipma, and so forth) as listed in Resource Usage Tables on page 20. The shorter the logging period, the more frequently data is logged, and the more disk space is used. When the system is so busy that the resource usage table logging gets backed up, RSS will automatically double the logging period which effectively summarizes the data by providing values for a time period twice that provided by the previous logging period. If you see the resource usage logging rates change without user intervention, this means that the database is busy. When no longer busy, the system resumes logging as before. Note: Events in the event logs related to this doubling of the logging period do not represent fatal errors but are informational to indicate that the automatic operations of the RSS are attempting to maintain data logging.

Resource Usage Macros and Tables

21

Chapter 2: Planning Your Resource Usage Data Using Summary Mode

Determining the Logging Value


The system imposes the following rule on the logging rate: Intervals must evenly divide into 3600 (the number of seconds in an hour). The following table shows the valid logging rate. The white area of the table shows rates recommended only for short-term use for debugging a specific issue. The highlighted area of the table shows rates recommended for production processing.
1 8 18 40 75 150 360 1200 2 9 20 45 80 180 400 1800 3 10 24 48 90 200 450 3600 4 12 25 50 100 225 600 5 15 30 60 120 240 720 6 16 36 72 144 300 900

A practical log interval minimum during production processing is 60 seconds. Intermediate log intervals, such as 120 seconds or 300 seconds can also be used. The default rate is 600 seconds. If the system becomes very busy, it will automatically double the logging period. This effectively summarizes the data by providing values for a time period twice that of the previous logging period. The system automatically returns to logging back to the rate you set when it is no longer busy. Rates and enabled tables may be changed at any time and the changes take effect immediately.

Using Summary Mode


You can use Summary Mode to reduce the system overhead from logging tables that produce multiple rows per logging period. Summary Mode helps reduce overhead by combining data from multiple rows into one or more summary rows based on specific criteria for each table. For example, if you want to log information provided in the ResUsageSvpr table but do not need data for each individual vproc, then use summary mode to produce one row per vproc type instead of one row per vproc. The ResUsageSpma table, in comparison, provides node level summary of key fields from most of the other ResUsage tables. When more details are required than the ResUsageSpma table provides then the next level of information is provided by using summary mode logging for the table of interest. This helps minimize the cost of the data logging. You can select summary mode for each table individually. See the description for each table for details on how summary mode affects that particular table.

22

Resource Usage Macros and Tables

Chapter 2: Planning Your Resource Usage Data Using Active Row Filter Mode

For example, for the ResUsageSvpr table in summary mode, all the individual vproc rows of the same vproc type are combined into a single row. Since the data values are added together, you need to divide the summary row data value by the number of rows that made up the summary mode row to get the average per vproc. For example, divide the AMP summary row data value by the number of AMPs on that node to determine the average value per AMP. A similar computation needs to be done to derive the average value per PE from the summary row data value. (To determine the number of AMP, PEs, and all other vproc types on your system, you can use the ResUsageSpma table or use the Vproc Manager utility.) Fields that represent a maximum statistic are not summed together. Instead the maximum value from the rows is used. For example, the ResUsageSvpr table MsgWorkQLenMax field in the summary mode row for the AMPs will contain the maximum value from all the AMP rows that would have been logged in non-summary mode. The fields that represent a minimum statistic are summarized by storing the minimum value from all the constituent rows. Summary mode has either no effect on the values of the Housekeeping Columns or it is specifically detailed in the description of each affected field. To enable Summary Mode, see Enabling RSS Logging on page 27. For more information on Summary Mode, see Summary Mode in Resource Usage Tables on page 42.

Using Active Row Filter Mode


Active Row Filter Mode reduces the overhead of logging for some of the resource usage table by limiting the data rows that are logged to the database. When active row filter is enabled, it may appear that rows are missing when looking at the query results. This is because the index values of the inactive rows varies over time so that a row with one index may be logged one period but not in another. To determine if rows are not being logged to the database, you should look in the event logs for messages indicating that rows have been lost. Note: Active Row Filtering should not be disabled for the ResUsageSps table.

Optimizing Resource Usage Logging


The Cost of Logging
Logging resource usage data to database tables incurs costs: Writing to the database adds to the system I/O load. On a heavily loaded system, this could affect the production workload throughput. The rows written to the database take up space. If this space is never reclaimed, it will eventually grow to consume all available space in user DBC.

Resource Usage Macros and Tables

23

Chapter 2: Planning Your Resource Usage Data Optimizing Resource Usage Logging

In an extremely loaded system, it is possible that the RSS can fall behind in writing data to the database. Although it caches such data and will eventually catch up if given a chance, the RSS will be forced to start discarding rows if the system load persists and its cache capacity has been exceeded.

Logging Cost Contributors


Logging costs are difficult to quantify. They depend on a number of interrelated factors: How busy is the system Which resource usage tables are enabled What resource usage logging rates are in effect The system configuration (vproc, CPU, host driver, logical devices or device controllers)

Operational Methods
Use the following methods to optimize performance and reduce the cost of resource usage logging on your system:
1

Use Summary Mode to reduce the number of rows inserted into the resource usage tables if Summary Mode data provides sufficient information for your needs. Note: If resource usage logging terminates due to a lack of table space:
a b

Delete rows from the appropriate table or make more space for it in USER DBC. Restart resource usage logging by entering the appropriate SET RESOURCE command.

For tables with a large number of rows (for example, ResUsageSps), use Active Row Filter Mode to limit the number of rows written to the database each logging period and to minimize the amount of system resources used. Avoid unnecessarily using or exhausting available disk space by doing the following: Never enable logging on tables that you do not intend to use. For example, logging only to the ResUsageSpma table provides a lot of useful information with a minimal operational load on the system. Use the largest rates that provide enough detail information for your purposes. Generally, you should use a logging rate no smaller than 60. The default rate is 600. These values can be adjusted any time, regardless of whether the database system is busy. New values take effect as soon as the adjustment command is issued. (For example, with ctl, when you issue the WRITE command.)

Purge old data from the ResUsage tables periodically.

24

Resource Usage Macros and Tables

Chapter 2: Planning Your Resource Usage Data Optimizing Resource Usage Logging

Related Topics
For instructions on... enabling resource usage tables, setting the logging rates, and summarizing or filtering rows purging old data from resource usage tables See... Enabling RSS Logging on page 27.

Purging Data on page 36.

Resource Usage Macros and Tables

25

Chapter 2: Planning Your Resource Usage Data Optimizing Resource Usage Logging

26

Resource Usage Macros and Tables

CHAPTER 3

Resource Usage Procedures

This chapter describes how to: Enable RSS logging Execute different types of macros Enable logons Purge old data

Enabling RSS Logging


By using one of the following interfaces you can enable tables, set the logging rate, and optionally summarize or filter rows.
If you are running... Windows or Linux Windows or Linux You can enable logging by running... the ctl utility from the Teradata Command Prompt. Database Window (DBW). For instructions, see... Using ctl on page 27. Using Database Window on page 28.

Before you set the ResUsage tables, determine which tables and controlling rates apply to the resource usage macros you want to run. For more information, see the following topics: Enabling Resource Usage Tables on page 19. Setting the Logging Rate on page 21.

Using ctl
The Control GDO Editor utility (ctl) is used to set various Teradata Database configuration settings. The RSS-related settings are presented on the RSS screen. For detailed information on starting ctl and modifying the settings, see ctl in Utilities.

Resource Usage Macros and Tables

27

Chapter 3: Resource Usage Procedures Enabling RSS Logging

Using Database Window


Use the database commands below to enable resource usage tables and set the logging rate from DBW on Windows or Linux. For instructions on starting DBW, see "Database Window (xdbw)" in Utilities.

To enable RSS logging from DBW


1 2

Open the Supvr window. Set the Node Logging Rate using the database command below.

SET RESOURCE NODE

LOGGING LOG

number
1099C002

where number is the number of seconds. Note: A rate of zero disables the logging function.
3

Specify the table you want to enable logging to using the database command below.
tablename
ALL ON OFF
FE0CA030

SET LOGTABLE

After the table is enabled for logging, you can log rows in Summary Mode. For more information, see Using Summary Mode on page 22. Note: To log rows in Summary Mode, you must enable the table specified in both the RSS Table Logging Enable group and in the RSS Summary Mode Enable group.
4

(Optional) Enable Summary Mode on the table specified using the command below.
tablename
ON OFF
1095A010

SET SUMLOGTABLE

Example The following example shows you how to enable table logging and set the Logging rate using the database commands in DBW. Suppose you want to enable the ResUsageShst table and set the logging rate for 10 minutes (600 seconds). You would enter the following:
set logtable shst on set resource node log 600

28

Resource Usage Macros and Tables

Chapter 3: Resource Usage Procedures General Macro Input Format

Related Topics
For more information on... ctl DBW See... Utilities. "Database Window (xdbw)" in Utilities.

General Macro Input Format


As shown in the table below, there are four kinds of macros: Multiple-node One-node All-node ByGroup

For any given line in the following table, the macros on that line report the same statistics for either multiple nodes, one node, all nodes, or group nodes as indicated.

Resource Usage Macros and Tables

29

30 Description AWTs in use by node CPU usage by AMP Vprocs CPU usage by PE Vprocs CPU usage by nodes Host statistics Ldv disk statistics Memory management General network statistics General node-level statistics Priority Scheduler and Teradata ASM Workload statistics pdisk level I/O statistics AMP level I/O statistics ResLdvByNode ResMemMgmtByNode ResNetByNode ResNodeByNode ResPsByNode Multinode Macro ResAWTByAMP ResAWTByNode ResCPUByAMP ResCPUByPE ResCPUByNode ResCPUByAMPOneNode ResCPUByPEOneNode ResCPUOneNode ResHostOneNode ResLdvOneNode ResMemMgmtOneNode ResNetOneNode ResOneNode ResNode ResHostByLink One-Node Macro All-Node Macro ResAWT ResAmpCpuByGroup ResPeCpuByGroup ResCpuByGroup ResHostByGroup ResLdvByGroup ResMemByGroup ResNetByGroup ResNodeByGroup ResPsByGroup ByGroup Macro ResPdskByNode ResVdskByNode ResPdskOneNode ResVdskOneNode ResPdskByGroup ResVdskByGroup Resource Usage Macros and Tables

Chapter 3: Resource Usage Procedures General Macro Input Format

Parameter Use for One-Node, Multiple-Node, All-Node, and Group Macros


The following table explains parameter use for one-node, multiple-node, all-node, and group macros.
Macro Type Multiple node One node All node Group Number of Parameters Six (except ResHostByLink) Five Four Four Node Parameters Used FromNode, ToNode Node None; this macro reports system-wide statistics. None; this macro reports statistics for all nodes in the group.

For instructions on using these macros, see Executing Macros on page 32.

Using One-Node Macros


One-node macro versions are primarily used on single-node systems. Alternatively, you can use the corresponding multiple-node macro to report on just one node by supplying equal FromNode and ToNode parameters. One-node versions are recommended, however, because they eliminate redundant report columns on a single-node system. Examples of redundant columns are the NodeId column and columns that focus on cross-node load balancing. OneNode macros have the same general input format as the other macros. The only differences are that the single-node version of each macro has both of the following: OneNode qualifier in the macro name. A single node specification, instead of the FromNode and ToNode parameters to specify a range of nodes. The default is 001-01.

Using ByGroup Macros


ByGroup macro versions are used on systems with co-existing nodes. In Teradata Database, co-existing nodes are nodes of different model types in the same configurations. Because of the differences, the nodes may become bottlenecks in the throughput of the system as a whole. Therefore, ByGroup macros were developed to provide the system user with a summary of the performance data based on node groupings. Note: The Database Administrator must identify the groupings of nodes when the system is first configured. ByGroup macros are similar to the other macros. The only difference is that they use the GroupId column of the views to report system usage for a specific set of nodes grouped by a GroupId. The input format of the ByGroup macros is the same as the other macros except ByGroup appears as the qualifier in the macro name.

Resource Usage Macros and Tables

31

Chapter 3: Resource Usage Procedures Executing Macros

Saving and Analyzing Data


If you expect an ongoing need to retain and analyze data from different Teradata Database releases, ask your System Administrator to retain two sets of view and macro Data Definition Language (DDL) files in separate places. Rename the views and macros so that you can use either. You could, for example, use ResNodeRxx, where xx represents the Teradata Database release number, as the name of the resource usage macro and use it when you want to analyze the data from that release.

Executing Macros
Function
Macro execution is illustrated in the following diagram. For details about each macro and its resulting report, see Chapter 15: Resource Usage Macros.

EXECUTE MACRO Syntax


The execution of each resource usage macro has the following form. For information on interpreting the syntax diagrams, see Appendix A: How to Read Syntax Diagrams.
EXECUTE EXEC

MacroNameMultiNode MacroNameAllNode MacroNameOneNode MacroNameByGroup


(

A , B C D

FromDate
,

ToDate ToDate
, ,

FromDate
(

FromDate
( ,

ToDate
,

FromDate
A , ,

ToDate
, );

FromTime
B ,

ToTime ToTime
,

FromNode

ToNode

FromTime
C

FromTime
D ,

ToTime
,

Node

FromTime

ToTime

GX02B001

where:

32

Resource Usage Macros and Tables

Chapter 3: Resource Usage Procedures Executing Macros

Syntax element MacroNameMultiNode

Description Name of a multinode resource usage macro: ResAwtByNode ResCPUByAMP ResCPUByPE ResCPUByNode ResLdvByNode ResMemMgmtByNode ResNetByNode ResNodeByNode ResPdskByNode ResPsByNode ResVdskByNode

MacroNameAllNode

Name of an all-node resource usage macro: ResNode ResHostByLink

The ResHostByLink and ResNode macros do not use the FromNode and ToNode parameters. MacroNameByGroup Name of a ByGroup resource usage macro: FromDate ResAmpCpuByGroup ResCPUByGroup ResHostByGroup ResLdvByGroup ResMemByGroup ResNetByGroup ResNodeByGroup ResPeCpuByGroup ResPdskByGroup ResPsByGroup ResVdskByGroup

Start date to report resource usage data. The date may be entered either as a character string (for example, character format for May 31, 2007 would appear as '2007-05-31') or as a numeric value (for the same date in numeric format, 1070531). The character string is the recommended format. The default is the current system date. See "String Date Validations" in SQL Data Manipulation Language for more detailed information on using numeric dates with macros. Note: The character string date format has been changed from yymmdd to 'yyyy-mm-dd' to accommodate dates in the 21st century.

ToDate

End date to report resource usage data. See the FromDate syntax element column for a further explanation of date formats. The character string is the recommended format.

FromTime ToTime

Start time to report resource usage data. The format is hhmmss. The default is 000000. End time to report resource usage data. The format is hhmmss. The default is 999999.

Resource Usage Macros and Tables

33

Chapter 3: Resource Usage Procedures Executing Macros

Syntax element FromNode

Description Starting range of nodes to report resource usage data. The format is 'nnn-nn'. A hyphen must be included in the fourth character position. The default is '000-00'. Note: To identify the node ID numbers for your system, type get config in the DBW Supervisor Window (Supvr).

ToNode

Ending range of nodes to report resource usage data. The format is 'nnnnn'. A hyphen must be included in the fourth character position. The default is '999-99'. Note: To identify the node ID numbers for your system, type get config in the DBW Supvr window.

Node

Single-node ID to report resource usage data. The format is 'nnn-nn', and hyphen must be included in the forth character position. For example, 1-01 should be typed out as '001-01'. The default is '001-01'.

Example 1: Executing the ResCPUByAMP Macro


The following statement executes the ResCPUByAMP macro, producing a report for the period beginning 8:00 a.m. on December 25, 2006 and ending 12:00 midnight, on December 31, 2006. It includes data for nodes 123-02 through 125-04.
EXECUTE ResCPUByAmp('2006-12-25','2006-12-31', 080000, 240000, '123-02','125-04');

where:
Statement Element ResCPUByAMP '2006-12-25' '2006-12-31' 080000 240000 '123-02' '125-04' Description Name of the resource usage macro Starting date of December 25, 2006 Ending date of December 31, 2006 Starting time of 8:00 a.m. Ending time of 12:00 midnight Starting node of a range of nodes Ending node of a range of nodes

See SQL Data Types and Literals for information on using numeric values for dates.

34

Resource Usage Macros and Tables

Chapter 3: Resource Usage Procedures Executing Macros

Example 2: Executing the ResCPUByAMPOneNode Macro


The following statement executes the OneNode version of the ResCPUByAMP macro shown in Example 1. It uses the same starting and ending dates and times (using character string format), except the report is for a single-node, node 123-02.
EXECUTE ResCpuByAmpOneNode ('2006-12-25','2006-12-31',080000, 240000,'123-02');

where:
Statement Element ResCPUByAMPOneNode '2006-12-25' '2006-12-31' 080000 240000 '123-02' Description Name of the resource usage macro Starting date of December 25, 2006 Ending date of December 31, 2006 Starting time of 8:00 a.m. Ending time of 12:00 midnight Node

See SQL Data Types and Literals for information on using numeric values for dates.

Example 3: Executing the ResAMPCpuByGroup Macro


The following statement executes the ByGroup version of the ResCPUByAmp macro shown in Example 1. It uses the same starting and ending dates and times (using character string format), except the report is for a node grouping.
EXECUTE ResAMPCpuByGroup ('2006-12-25','2006-12-31',080000, 240000);

where:
Statement Element ResCPUByAMPByGroup '2006-12-25' '2006-12-31' 080000 240000 Description Name of the resource usage macro Starting date of December 25, 2006 Ending date of December 31, 2006 Starting time of 8:00 a.m. Ending time of 12:00 midnight

See SQL Data Types and Literals for information on using numeric values for dates.

Resource Usage Macros and Tables

35

Chapter 3: Resource Usage Procedures Using ENABLE and DISABLE LOGON Commands

Using ENABLE and DISABLE LOGON Commands


The DISABLE LOGONS command prevents new sessions from logging on. When logons are disabled, resource usage data stops logging to the tables even if there are still active sessions logged on. (DISABLE ALL LOGONS prevents all users, including user DBC, from logging on and also stops logging to the tables.) To enable logons from: Database Window, run ENABLE LOGONS or ENABLE ALL LOGONS. Teradata command prompt, use the Start With Logons field of the Screen Debug menu of ctl. See "Control GDO Editor (ctl)" in Utilities.

For more information on enabling and disabling logons, see "Changing Logon States and Restarting the System" in Database Administration.

Purging Data
The RSS does not automatically delete data from the resource usage tables. You need to purge data you no longer need on a regular basis. You can directly remove old resource usage data by submitting SQL statements. For example, use the following SQL statement to remove data more than five days old from the ResUsageSpma table:
DELETE FROM ResUsageSpma WHERE TheDate < CURRENT_DATE - 7;

For more information about the DELETE syntax, see "SQL Data Manipulation Language Statement Syntax" in SQL Data Manipulation Language.

36

Resource Usage Macros and Tables

CHAPTER 4

Resource Usage Tables

This chapter describes: How to name the physical table and insert rows into resource usage tables Types of resource usage table columns and data Summary Mode in resource usage tables

Physical Table Naming Conventions


Each physical table name follows this general naming convention: ResUsage Information_type Table_name where:
Element Information_type Code S I Table_name Code pma vpr cpu ldv pdsk vdsk awt sps hst Description Node information vproc information CPU-specific information Logical device statistics pdisk device statistics vdisk device statistics Description System-wide information Internal Teradata Database information Is one of the following...

AWT statistics
WD resolution statistics Channel and LAN host information

Resource Usage Macros and Tables

37

Chapter 4: Resource Usage Tables Relational Primary Index

Relational Primary Index


All resource usage tables have the same nonunique primary index: The nonunique primary index consists of TheDate, TheTime, and NodeID columns. The primary index is nonunique because of duplicate rows that will appear with the same timestamp during daylight savings time. Rows that have duplicate timestamps can be distinguished by the GmtTime column. Because the primary index is nonunique, all resource usage tables are created as MULTISET tables. This prevents the system from checking for duplicate rows.

For more information on MULTISET tables, see "CREATE TABLE (Table Kind Clause)" in SQL Data Definition Language or "Duplicate Rows in Tables" in SQL Fundamentals.

Inserting Rows into Resource Usage Tables


For information on how rows will be inserted into these tables based on the current resource usage control settings, see Chapter 2: Planning Your Resource Usage Data. For information on the number of rows inserted in a resource usage table for each applicable log period, refer to Using Summary Mode on page 22.

Occasional Event Data


Occasional event data is considered outside the scope of resource usage and is, therefore, logged in the ERRORLOG and the DBCINFO tables rather than in the resource usage tables.

Types of Resource Usage Table Columns


This manual describes what each of the resource usage table columns report (that is, what each DBC.ResUsageXxxx.ColumnName reports) in a table format. Note: The actual table definitions are obtainable by executing the SHOW TABLE statement. See SQL Data Definition Language for more information about SHOW TABLE. All columns described in the following chapters and appendixes are type FLOAT unless otherwise specified in the description of that column. All nonexistent values are stored as NULL. For each resource usage table column, this manual describes the: Column Name Type of Data

38

Resource Usage Macros and Tables

Chapter 4: Resource Usage Tables Types of Resource Usage Table Columns

Description Data Type Invalid Platform

The columns are grouped into either housekeeping columns or statistics columns. Statistic columns are further grouped by category and subcategory as shown below.
Column Name Type of Data Description Data Type Invalid Platform

HOUSEKEEPING OR STATISTICS COLUMNS CATEGORYS Subcategory

Each table has: Housekeeping columns which contain statistics on timestamp, current logging characteristics, gather elements and its general characteristics. Statistics columns which can be further categorized into subcategories. Categories and subcategories may vary from table to table.

The following table shows the types of statistics subdivided into their respective subcategories.
Category File System Subcategories Cylinder Management Cylinder Management Overhead Events Data Block Prefetches Data Segment Lock Requests Segments Acquired Segments Released Synchronized Full File Scans Write Ahead Logging (WAL) Description Some of the file system columns can be viewed as a subset of memory columns by expanding on the operations performed on disk memory segments. Operations counted are logical memory and physical disk reads and writes (including aging) and locking control activities. Other columns identify the purpose of operations being performed on disk segments such as cylinder migration or data updates; or identify the requests being made by database software on the file system. The WAL columns identify the log-based file system recovery scheme in which modifications to permanent data are written to a log file, the WAL log. Identification of concurrency control activities is provided and subdivided into control done for user level processing, system overhead processing, and database locks. It does not include control specific to disk, memory or net concurrency control, which are included in the disk, memory or net columns.

General Concurrency Control

Database Locks

Resource Usage Macros and Tables

39

Chapter 4: Resource Usage Tables Types of Resource Usage Table Columns

Category Host Controller (SHST)

Subcategories Channel Traffic Channel Management Controller Overhead User Commands User Command Arrival and Departure Memory Allocations Memory Availability Management Memory Pages Resident Memory Resident Paging Swapping Task Context Segment Usage

Description These columns identify traffic on the host-to-node channels and LANs. Some also give overhead and management information on the host channel and LAN.

Memory

Memory related events, subdivided into memory types, are collected for memory allocation and deallocation, logical memory and physical disk reads and writes (including paging and swapping), access, deaccess and memory control. Memory management columns are also provided to identify events leading up to paging, swapping and aging activities. Finally, a detailed snapshot of the memory is provided by tracking the current states per memory types. These columns identify individual logical device activities for external storage components connected through the buses. The storage device statistics are calculated only on what can be derived from statistics collected by the operating system, since the disk array controllers do not provide us with any useful data for resource usage. Traffic over the BYNET is identified through the number and direction of messages, subdivided into the type of transmission, as well as physical utilization of the BYNET. Logical messages and direction are identified through subdivisions of the message class. Controller overhead, channel utilization, and Teradata net contention are identified as well.

Logical Device

Concurrent Operations Input and Output Traffic Outstanding Requests Response Time Seek Statistics

Net

Broadcast Net Traffic Group Coordination Merge Services Net Controller Status and Miscellaneous Management Net Circuit Management Network Transport Per-Bynet Network Transport Data Point-to-point Net Traffic Work Mailbox Queue ChnSignal Status Tracking CPU Utilization Cylinder Read Process Allocation Process Block Counts Process Pending Snapshot Process Pending Wait Time Scheduled CPU Switching

Process Scheduling

These columns provide a CPU-level snapshot of work started, with current characteristics and states. Expanded detail is provided for work started but waiting on resources. This helps identify the ability or inability of the system to effectively utilize resources. Time allotments are tracked by monitoring the time spent waiting for resources or processing code. These columns also track the number of times processing was switched to another process for multitasking purposes or to perform interrupt services.

40

Resource Usage Macros and Tables

Chapter 4: Resource Usage Tables About the Invalid Platform Column

Category User Commands

Subcategories User command User command Arrival and Departure None. None. AMP Worker Task In use and Max Array Data Priority Scheduler Worktype Descriptions Allocation I/O Migration Node Agent

Description These columns describe the types of commands given to Teradata Database by the user and the progress of those commands. These columns identify the secondary cache miss rate. These columns are for future release or internal manipulation by Teradata developers. These columns collect and report statistics about the AWTs and Priority Scheduler. The columns specific to the ResUsageSawt table also report the number of AWTs currently in use and the maximum number of AWTs for the current vproc on the node. These columns identify individual pdisk and vdisk device activities. Note: Teradata VS is available for purchase separately from Teradata Database. For information about these columns, see Teradata Virtual Storage.

Secondary Cache Misses Spare Teradata ASM

Teradata Virtual Storage (VS)

About the Invalid Platform Column


The tables in this book that describe the resource usage tables contain an Invalid Platform column. If your platform appears in that column for a field, then resource usage data for that particular field is either not collected by the system or is not valid and should not be used. The following table explains the contents of the Invalid Platform column.
In the Invalid Platform column ALL Linux Windows Means do not use on any platform. The column is either obsolete or not valid on any of the platforms. column is only valid on Windows. It is not valid on Linux. column is only valid on Linux. It is not valid on Microsoft Windows. column is valid on all platforms.

When the Invalid Platform column is blank, the column being described is valid on all platforms.

Resource Usage Macros and Tables

41

Chapter 4: Resource Usage Tables About the Type of Data Column

About the Type of Data Column


There are four possible types of data reported in the Type of Data column: Count - Count fields tallies the number of times an event occurred, such as the number of disk reads or writes during a period of time. Max - Max fields have a Max suffix in the field name. An example of a Max field in the ResUsageSvdsk table is the ReadRespMax field. This field reports the maximum value for the logging period. Min - Min fields have a Min suffix in the field name. An example of a Min field in the ResUsageSvpr table is the ReadResponseHotMin field. This field reports the minimum value during each logging period. Track - Track fields gauge the current value of a countable item such as a queue length during a period of time. The track field reports the value at the end of the logging period.

Column Names Ending In Sum


Column values ending in Sum, which are the Count Type of Data, are useful for calculating the average value for a gather period. Each sum column accumulates the values measured by the column at the end of every gather period. Divide the resulting logged value by the value CollectIntervals to get the average value. The CollectIntervals value is the number of gather periods per reporting period.

Summary Mode in Resource Usage Tables


Summary mode combines data from the multiple data rows normally generated into one or more rows. When multiple rows are condensed into a single row, the data is combined using the rules in the following table.

42

Resource Usage Macros and Tables

Chapter 4: Resource Usage Tables Summary Mode in Resource Usage Tables

For the following Type of Data Count

Summary fields are combined by summing the values from all the contributing rows. Count fields are also added together when there are multiple gather periods in the reporting period. Depending upon the usage of the field, the value may or may not need to be adjusted by the number of rows that were combined by summary mode or the number of data sampling periods as indicated by the CollectIntervals column. For example, the ResUsageSvpr.FlowCtlCnt field provides the total number of times that the system entered flow control state from a non-flow control state. In normal mode, the values are reported per AMP and no division by CollectIntervals is necessary since the total over the entire reporting period is desired. In summary mode, the value needs to be divided by the number of AMPs if the user wishes to determine the average number per AMP rather than the total. On the other hand, for the WorkTypeInuse00 field of the SAWT or SPS table, the value reported is the sum of the current number of AWTs in use from each CollectInterval. In this case, the field should always be divided by the number of CollectIntervals, which will provide the sampled average number of AWTs in use over the reporting period. Note: To obtain the average number of AWTs in use during the reporting period per AMP, divide the summary mode reported value by the CollectIntervals value as well as the number of AMPs.

Max

taking the maximum value from all the contributing rows. In summary mode, the reported value for a Max field such as ResUsageSpdsk.ConcurrentWriteMax is the maximum value from all the rows that are combined into a single summary row.

Min

taking the minimum value from all the contributing rows. In summary mode, the reported value for a Min field such as ResUsageSvpr.ReadResponseHotMin is the minimum value from all the rows that are combined into a single summary row.

Track

summing the values from all the contributing rows. In Summary mode, the Track values from each row to be combined are summed together. For example, ResUsageSvpr.FlowControlled is a track field so that in summary mode, all the AMP vproc rows are combined into a single row and the FlowControlled field will report the summed value from each of the AMP vproc rows. Note: The Track values are not combined across multiple gathering intervals (as represented by the CollectIntervals column). For the ResUsageSvpr.FlowControlled field, this means that if there were 10 gather periods (the CollectIntervals column equals 10) in the reporting period, then the value reported will be the FlowControlled state at the end of the last gather period. This is the same as the value at the end of the reporting period. If summary mode is enabled, the values from each of the non-summary mode rows are added together to produce the summary mode row value.

The following table describes Summary Mode for the resource usage tables. Summary Mode is applicable to all tables except ResUsageSpma and ResUsageIpma. If the information for a row of a table is in Summary Mode, the SummaryFlag value is set to S. If the row is being logged normally, the SummaryFlag value is set to N.

Resource Usage Macros and Tables

43

Chapter 4: Resource Usage Tables Summary Mode in Resource Usage Tables

The Table ResUsageIpma ResUsageSpma ResUsageScpu

contains ResUsage data for available system-wide, node information for available system-wide, node information specific to the CPUs within the nodes.

and the following information when Summary Mode is active Summary Mode not applicable to this table. Summary Mode not applicable to this table. one row is written to the database for each node in the system, summarizing the CPUs on that node, for each log interval. For details, see Chapter 5: ResUsageScpu Table.

ResUsageSawt

specific to the AWTs.

one row is written to the database for each node in the system, summarizing all AWTs per node, for each log interval. For details, see Chapter 7: ResUsageSawt Table.

ResUsageShst

specific to the host channels and LANs communicating with Teradata Database.

one row is written to the database for each type of host (network or channel-connected) on each node in the system, summarizing the hosts of that type on that node, for each log interval. For details, see Chapter 8: ResUsageShst Table.

ResUsageSldv

specific to each logical storage device.

two rows written to the database: one summarizing the system logical devices and one summarizing the Teradata Database logical devices. For details, see Chapter 9: ResUsageSldv Table.

ResUsageSpdsk

specific to the pdisk device.

one row for each pdisk type per node inserted each logging period. For example, for large configurations, the ResUsageSpdsk table may contain thousands of rows logged during each logging period, enabling Summary Mode minimizes the amount of system resources used. For details, see Chapter 10: ResUsageSpdsk Table.

ResUsageSps

one row written to the database for each triplet of PGid, VprType, and PPid fields for each log interval. For details, see Chapter 11: ResUsageSps Table.

Summary Mode not applicable to this table.

ResUsageSvdsk

specific to the vdisk device.

one row written to the database for each node in the system, summarizing all AMP vdisk data in each node, for each log interval. For details, see Chapter 12: ResUsageSvdsk Table.

ResUsageSvpr

specific to each virtual processor and its file system.

one row written to the database for each type of vproc on each node in the system, summarizing the vprocs of that type on that node, for each log interval. For details, see Chapter 13: ResUsageSvpr Table.

44

Resource Usage Macros and Tables

CHAPTER 5

ResUsageScpu Table

This resource usage table contains resource usage information specific to the CPUs within the nodes. Table ResUsageScpu includes resource usage data for available system-wide, CPU information. Note: This table is created as a MULTISET table. For more information see Relational Primary Index on page 38. The Invalid Platform column is a little counterintuitive. If your platform appears in that column, then resource usage data for that particular column is either not collected or not valid and should not be used. (For more information, see About the Invalid Platform Column on page 41.) The following table describes the ResUsageScpu table columns.
Type of Data Invalid Platform

Column Name

Description HOUSEKEEPING COLUMNS

Data Type

RELATIONAL PRIMARY INDEX COLUMNS These columns taken together form the nonunique primary index. TheDate TheTime n/a n/a Date of the log entry. Nominal time of the log entry. Note: Under conditions of heavy system load, entries may be logged late (typically, by no more than one or two seconds), but this field will still contain the time value when the entry should have been logged. See the Secs and NominalSecs columns. NodeId n/a Identifies the Node. The Node ID is formatted as CCC-MM, where CCC denotes the three-digit cabinet number and MM denotes the two-digit chassis number of the node. For example, a node in chassis 9 of cabinet 3 has a node ID of 003-09. Note: Symmetric Multi-Processing (SMP) nodes have a chassis and cabinet number of 1. For example, the node ID of an SMP node is 001-01. INTEGER DATE FLOAT

Resource Usage Macros and Tables

45

Chapter 5: ResUsageScpu Table

Column Name

Type of Data

Description MISCELLANEOUS HOUSEKEEPING COLUMNS

Data Type

Invalid Platform

GmtTime

n/a

Greenwich Mean Time is not affected by the Daylight Savings Time adjustments that occur twice a year. Type of node, representing the per node system family type. For example, 5600C or 5555H. Identifies the CPU within this node. The values are 0 through NCPUs-1. In Summary Mode, the value is zero.

FLOAT

NodeType CPUId

n/a n/a

CHAR(8) SMALLINT

Secs

n/a

Actual number of seconds in the log period represented by this row. Normally the same as NominalSecs, but can be different in three cases: The first interval after a log rate change A sample logged late because of load on the system System clock adjustments affect reported Secs Useful for normalizing the count statistics contained in this row, for example, to a per-second measurement.

SMALLINT

CentiSecs

n/a

Number of centiseconds in the logging period. This field is useful when performing data calculations with small elapsed times where the difference between centisecond-based data and whole seconds results in a percentage error. A specified or nominal number of seconds in the logging period. Identifies the summarization status of this row. Possible values are N if the row is a non-summary row, and S if the row is a summary row. Controls whether or not the rows will be logged to the ResUsage tables if Active Row Filter Mode is enabled. If Active is set to: a non-zero value, then the row contains modified data columns. a zero value, then none of the data columns in the row have been updated during the logging period. For example, if Active Row Filter Mode is enabled, then the rows that have a zero Active field value will not be logged to the ResUsage tables.

INTEGER

NominalSecs SummaryFlag

n/a n/a

SMALLINT CHAR

Active

count

FLOAT

46

Resource Usage Macros and Tables

Chapter 5: ResUsageScpu Table

Column Name CollectIntervals

Type of Data n/a

Description The number of gather periods per reporting period. In the Collect Buffer and Log Buffer, the value is the number of Gather operations that have been performed during the period. This number can vary from one period to the next. STATISTICS COLUMNS PROCESS SCHEDULING COLUMNS

Data Type SMALLINT

Invalid Platform

CPU Utilization Columns Count all CPU activities, including activities performed for virtual processors, subdivided into the following columns:
1 CPUIdle - Idle time 2 CPUIoWait - Idle and waiting for I/O completion 3 CPUUServ - User service 4 CPUUExec - User execution

These statistics are aggregates representing all CPUs on the node. CPU utilization by user code is further subdivided by the vproc tables. Note:

CPU idle time = CPUIdle + CPUIoWait CPU busy time = CPUUServ + CPUUExec

Theoretically, the values of these four columns, for any given interval, account for total CPU time on the node. That is, they should total to 100 * Secs * number of CPUs on the node, since each CPU is always in exactly one of these four states. In practice, there is occasionally a very small plus or minus difference from this theoretical total. CPUIdle CPUIoWait count count Time in centiseconds the CPU is idle and not waiting for I/O. Time in centiseconds CPU is waiting for I/O completion. Note: This represents another variety of Idle, since the CPU is only recorded as being in this state if there are no processes eligible for execution. This is because if there were any such process, the CPU would be immediately dispatched for that process. CPUUServ count Time in centiseconds CPU is busy executing user service code, that is, privileged work performing system services on behalf of user execution processes which do not have root access. Time in centiseconds CPU is busy executing user execution code, that is, time spent in a user state on behalf of a process. FLOAT FLOAT FLOAT Windows

CPUUExec

count

FLOAT

Resource Usage Macros and Tables

47

Chapter 5: ResUsageScpu Table Summary Mode

Column Name

Type of Data

Description

Data Type

Invalid Platform

Scheduled CPU Switching Columns Identify the number of times the CPU was switched by the scheduler from doing one type of work to another type of work. CPUProcSwitches CPUProcSameSwitches count count Number of times the scheduler switched the CPUs currently active process to a new process. Number of CPUProcSwitches where a process replaced itself, that is, the new process was the same as the old process. FLOAT FLOAT ALL ALL

Summary Mode
When Summary Mode is active for tables in this group, one row is written to the database for each node, summarizing all CPUs per node, for each log interval. You can determine if a row is in Summary Mode by checking the SummaryFlag column for that row.
IF the SummaryFlag column value is S N THEN the data for that row is being logged in Summary Mode. normally.

Spare Columns
The ResUsageScpu table has six spare columns (one of which is being used) as shown in the table below.
Column Name SpareCount[00-01] SpareTrack[00-01] SpareTmon00 Type of Data count track n/a Description Spare counted statistic. Spare tracked statistic. The SpareTmon00 field contains the Capacity on Demand (COD) value. The value represents the COD value in one tenths of a percent, so a displayed value of 500 represents a COD value of 50.0%. Note: This value is valid only on SUSE Linux Enterprise Server 10 systems and is a single value for the entire system.

48

Resource Usage Macros and Tables

Chapter 5: ResUsageScpu Table Spare Columns

Column Name SpareTmon01

Type of Data count

Description Spare tmonitored statistic.

The spare column fields expand to values 00 - 01, so that column names would be SpareCount00 or SpareTrack01, and so on.

Resource Usage Macros and Tables

49

Chapter 5: ResUsageScpu Table Spare Columns

50

Resource Usage Macros and Tables

CHAPTER 6

ResUsageSpma Table

The ResUsageSpma table includes resource usage data for available system-wide, node information. The ResUsageSpma table is similar to the ResUsageIpma table. For information on this table, see Appendix B: ResUsageIpma Table. Note: Summary Mode is not applicable to this table. This table is created as a MULTISET table. For more information see Relational Primary Index on page 38. The Invalid Platform column is somewhat counterintuitive. If your platform appears in that column, then resource usage data for that particular column is either not collected or not valid and should not be used. The following table describes the ResUsageSpma table columns. However, always use the views provided in Chapter 14: Resource Usage Views to access the data rather than accessing the ResUsage table directly.
Type of Data Invalid Platform

Column Name

Description HOUSEKEEPING COLUMNS

Data Type

RELATIONAL PRIMARY INDEX COLUMNS These columns taken together form the nonunique primary index. TheDate TheTime n/a n/a Date of the log entry. Nominal time of the log entry. Note: Under conditions of heavy system load, entries may be logged late (typically, by no more than one or two seconds), but this field will still contain the time when the entry should have been logged. See the Secs and NominalSecs columns. NodeId n/a Identifies the Node. The Node ID is formatted as CCC-MM, where CCC denotes the three-digit cabinet number and MM denotes the two-digit chassis number of the node. For example, a node in chassis 9 of cabinet 3 has a node ID of 003-09. Note: SMP nodes have a chassis and cabinet number of 1. For example, the node ID of an SMP node is 001-01. INTEGER DATE FLOAT

Resource Usage Macros and Tables

51

Chapter 6: ResUsageSpma Table

Column Name

Type of Data

Description

Data Type

Invalid Platform

MISCELLANEOUS HOUSEKEEPING COLUMNS These columns provide a generalized picture of the vprocs running on this node, shown as Type n virtual processors where n = 1 to 7. Under the current implementation, only Type 1 (AMP), Type 2 (PE), Type 3 (GTW), Type 4 (RSG), and Type 5 (VSS) vprocs exist; vproc types 6 through 7 are not currently used. GmtTime n/a Greenwich Mean Time is not affected by the Daylight Savings Time adjustments that occur twice a year. Type of node, representing the per node system family type. For example, 5600C or 5555H. Number of CPUs on this node. This field is useful for normalizing the CPU utilization field values for the number of CPUs on the node. This is especially important in coexistence systems where the number of CPUs can vary across system nodes. Vproc1 VprocType1 Vproc2 VprocType2 Vproc3 VprocType3 Vproc4 VprocType4 Vproc5 VprocType5 Vproc6 n/a n/a n/a n/a n/a n/a n/a n/a n/a n/a n/a Current count of type 1 (AMP) virtual processors running on the node. Type of virtual processor for Vproc1. When the vproc is present on the node, the value is AMP. Current count of type 2 (PE) virtual processors running under the node. Type of virtual processor for Vproc2. When the vproc is present on the node, the value is PE. Current count of type 3 (GTW) virtual processors running under the node. Type of virtual processor for Vproc3. When the vproc is present on the node, the value is GTW. Current count of type 4 (RSG) virtual processors running under the node. Type of virtual processor for Vproc4. When the vproc is present on the node, the value is RSG. Current count of type 5 (VSS) virtual processors running under the node. Type of virtual processor for Vproc5. When the vproc is present on the node, the value is VSS. Current count of type 6 virtual processors running under the node. This column reports zeros and " " (blanks). VprocType6 n/a Type of virtual processor for Vproc6. CHAR(4) ALL SMALLINT CHAR(4) SMALLINT CHAR(4) SMALLINT CHAR(4) SMALLINT CHAR(4) SMALLINT CHAR(4) SMALLINT FLOAT

NodeType NCPUs

n/a n/a

CHAR(8) SMALLINT

52

Resource Usage Macros and Tables

Chapter 6: ResUsageSpma Table

Column Name Vproc7

Type of Data n/a

Description Current count of type 7 virtual processors running under the node. This column reports zeros and " " (blanks).

Data Type SMALLINT

Invalid Platform

VprocType7 MemSize

n/a n/a

Type of virtual processor for Vproc7. Amount of memory on this node in megabytes. Useful for performing memory usage calculations. A per node normalization factor that is used to normalize the reported CPU values of the ResUsageSpma table. This value is scaled by a factor of 100. For example, if the actual factor is 5.25, then the value of the NodeNormFactor will be 525. Note: This value is constant for the node and scaled up by a factor of 100 to preserve the two digit decimal resolution while using an integer field.

CHAR(4) INTEGER

ALL

NodeNormFactor

n/a

INTEGER

Secs

n/a

Actual number of seconds in the log period represented by this row. Normally the same as NominalSecs, but can be different in three cases: The first interval after a log rate change A sample logged late because of load on the system System clock adjustments affect reported Secs Useful for normalizing the count statistics contained in this row, for example, to a persecond measurement.

SMALLINT

CentiSecs

n/a

Actual number of centiseconds in the logging period. This field is useful when performing data calculations with small elapsed times where the difference between centisecond-based data and whole seconds results in a percentage error.

INTEGER

NominalSecs CollectIntervals

n/a n/a

A specified or nominal number of seconds in the logging period. The number of gather periods per reporting period. In the Collect Buffer and Log Buffer, the value is the number of Gather operations that have been performed during the period. This number can vary from one period to the next.

SMALLINT SMALLINT

Resource Usage Macros and Tables

53

Chapter 6: ResUsageSpma Table

Column Name Active NetSamples

Type of Data n/a count

Description Gets set to a non-zero value whenever one of the other data columns in the row is set. Sample count for sampled statistics for a Bynet. Note: NetSamples is used to normalize all net time monitored statistics to a percent-of-time basis. For example, dividing (NetTxIdle/ NetSamples) yields the transmitter-idle time ratio for the net statistics. STATISTICS COLUMNS

Data Type FLOAT FLOAT

Invalid Platform

Teradata VS Columns These columns identify pdisk I/O statistics that are reported by Teradata VS. Note: Teradata VS is available for purchase separately from Teradata Database. For details about these columns, see Teradata Virtual Storage. Process Allocation Columns These columns represent all currently allocated processes, subdivided into the possible process states of running, ready, blocked or suspended. ProcReadySum count Number of runnable or ready tasks able to execute on CPUs when a CPU becomes available. Note: A task is a thread. Also, to calculate the average number of runnable or ready tasks, divide this value by the CollectIntervals value. The CollectIntervals value is the number of gather periods per reporting period. For more information, see the CollectIntervals column. ProcBlockedSum count The total number of threads blocked waiting for I/O. Note: To calculate the average number of processes blocked, divide this value by the CollectIntervals value. The CollectIntervals value is the number of gather periods per reporting period. For more information, see the CollectIntervals column. ProcSuspendedSum count Total number of process suspended from execution, awaiting another process to resume them (during a log interval). Note: To calculate the average number of processes suspended, divide this value by the CollectIntervals value. The CollectIntervals value is the number of gather periods per reporting period. For more information, see the CollectIntervals column. FLOAT ALL FLOAT Windows FLOAT

54

Resource Usage Macros and Tables

Chapter 6: ResUsageSpma Table

Column Name ProcRunningSum

Type of Data count

Description Total number of processes running (executing) on CPUs during each log interval. Note: To calculate the average number of processes running, divide this value by the CollectIntervals value. The CollectIntervals value is the number of gather periods per reporting period. For more information, see the CollectIntervals column.

Data Type FLOAT

Invalid Platform ALL

ProcReadyMax

max

Maximum number of runnable or ready tasks able to execute on CPUs when a CPU becomes available. Note: A task is a thread.

FLOAT

Process Pending Snapshot Columns Identify how many processes are blocked for each possible reason. These columns total (minus ProcPendDBLock) approximately ProcBlockedSum, since we can only be blocked on one blocking type at a time. Note: In analyzing resource usage, a distinction should be made between the following two kinds of process blocks: Block involves a process that is logically idle, waiting to receive work on its primary mailbox, or for a timer to elapse. This block does not affect throughput. Block involves a process that has work to do but is being prevented from proceeding by some circumstance like a segment lock or flow control. This kind of block does affect throughput. The first kind of block is represented by column ProcPendNetRead; the second kind is represented by the remaining columns described here. Note on Averages: To calculate the average number of processes pending, divide the value by the CollectIntervals value. The CollectIntervals value is the number of gather periods per reporting period. In the Collect Buffer and Log Buffer, the value is the number of Gather operations that have been performed during the period. This number can vary from one period to the next. ProcPendMemAlloc count Number of processes blocked pending memory allocations. Note: Always divide this value by CollectIntervals. See "Note on Averages" above. ProcPendFsgRead count Number of processes blocked pending a File Segment (FSG) read from disk. Note: Always divide this value by CollectIntervals. See "Note on Averages" above. ProcPendFsgWrite count Number of processes blocked pending an FSG write to disk. Note: Always divide this value by CollectIntervals. See "Note on Averages" above. ProcPendNetThrottle count Number of processes blocked pending delivery of outstanding outgoing messages. Note: Always divide this value by CollectIntervals. See "Note on Averages" above. FLOAT FLOAT FLOAT FLOAT

Resource Usage Macros and Tables

55

Chapter 6: ResUsageSpma Table

Column Name ProcPendNetRead

Type of Data count

Description Number of processes blocked pending non-step work, that is, the number of processes blocked on any mailbox other than the work mailbox. Always divide this value by CollectIntervals. See "Note on Averages" above. Note: Non-step work is anticipated work the process spawned off and is now waiting for some type of response from the spawned process or processes. Non-step work is not unanticipated work such as a new work request sent when a user initiates a request from the host.

Data Type FLOAT

Invalid Platform

ProcPendMonitor

count

Number of processes blocked pending a user monitor. Note: Always divide this value by CollectIntervals. See "Note on Averages" above.

FLOAT

ProcPendMonResume

count

Number of processes blocked pending a user monitor resume from a yield. Note: Always divide this value by CollectIntervals. See "Note on Averages" above.

FLOAT

ProcPendDBLock

count

Number of processes blocked pending database locks. Note: Always divide this value by CollectIntervals. See "Note on Averages" above.

FLOAT

ProcPendSegLock

count

Number of processes blocked pending a segment lock. Note: Always divide this value by CollectIntervals. See "Note on Averages" above.

FLOAT

ProcPendFsgLock

count

Number of processes blocked pending an FSG lock. Note: Always divide this value by CollectIntervals. See "Note on Averages" above.

FLOAT

ProcPendMisc

count

Number of processes blocked pending miscellaneous events. Note: Always divide this value by CollectIntervals. See "Note on Averages" above.

FLOAT

ProcPendQnl

count

Number of processes blocked pending a TSKQNL lock. Note: Always divide this value by CollectIntervals. See "Note on Averages" above.

FLOAT

56

Resource Usage Macros and Tables

Chapter 6: ResUsageSpma Table

Column Name

Type of Data

Description

Data Type

Invalid Platform

Process Block Counts Columns Identify how many times a process became blocked on which blocking type. Average time blocked can be approximated by dividing corresponding ProcWaitXxx by ProcBlksXxx. ProcBlksMemAlloc ProcBlksQnl ProcBlksFsgRead ProcBlksFsgWrite ProcBlksNetThrottle ProcBlksMsgRead ProcBlksMonitor ProcBlksMonResume ProcBlksDBLock count count count count count count count count count Number of process blocks for memory allocations. Number of process blocks for a TSKQNL lock. Number of process blocks for an FSG read from disk. Number of process blocks for an FSG write to disk. Number of process blocks for delivery of outstanding outgoing messages. Number of process blocks for non-step work. Number of process blocks for a user monitor. Number of process blocks for a user monitor resume from a yield. Number of process blocks for database locks. The AWT can do other work while the lock is blocked. Number of process blocks for a disk or task context (scratch, stack, and so on) segment lock. Number of process blocks for an FSG lock. Number of process blocks waiting only for timer expiration. Number of process blocks for miscellaneous events. FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT

ProcBlksSegLock ProcBlksFsgLock ProcBlksTime ProcBlksMisc

count count count count

FLOAT FLOAT FLOAT FLOAT

Process Pending Wait Time Columns Identify how much time in centiseconds processes were in the blocked state for each possible reason. Note: Since this time is only accounted for when a blocked process leaves the blocked state, it is possible for this statistic to be much larger than the amount of time available to all processes in a single log period. ProcWaitMemAlloc ProcWaitPageRead ProcWaitFsgRead count count count Total time processes were blocked pending memory allocations. Total time processes were blocked pending a page read from disk. Total time processes were blocked pending an FSG read from disk. FLOAT FLOAT FLOAT

Resource Usage Macros and Tables

57

Chapter 6: ResUsageSpma Table

Column Name ProcWaitFsgWrite ProcWaitNetThrottle ProcWaitMsgRead ProcWaitMonitor ProcWaitMonResume ProcWaitDBLock ProcWaitSegLock

Type of Data count count count count count count count

Description Total time processes were blocked pending an FSG write to disk. Total time processes were blocked pending delivery of outstanding outgoing messages. Total time processes were blocked pending nonstep work. Total time processes were blocked pending a user monitor. Total time processes were blocked pending a user monitor resume from a yield. Total time processes were blocked pending database locks. Total time processes were blocked pending a disk or task context (scratch, stack, and so on) segment lock. Total time processes were blocked pending an FSG lock. Total time processes were blocked pending some amount of elapsed time only. Total time processes were blocked pending a TSKQNL lock. Total time processes were blocked pending miscellaneous events.

Data Type FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT

Invalid Platform

ProcWaitFsgLock ProcWaitTime ProcWaitQnl ProcWaitMisc

count count count count

FLOAT FLOAT FLOAT FLOAT

CPU Utilization Columns Count all CPU activities, including activities performed for virtual processors, subdivided into the following columns:
1 CPUIdle - Idle time 2 CPUIoWait - Idle and waiting for I/O completion 3 CPUUServ - User service 4 CPUUExec - User execution 5 CPUIdleNorm - Normalized idle time 6 CPUIOWaitNorm - Normalized idle and waiting for I/O completion 7 CPUUServNorm - Normalized user service 8 CPUUExecNorm - Normalized user execution

These columns represent the sum of all CPUs on the node. To obtain the average node CPU value for each column, CPU(Idle, IOWait, Userv, Uexec), divide the column data by the number of CPUs per node (the value in the NCPUs column) and the number of centiseconds (CentiSecs column) in the logging interval.

58

Resource Usage Macros and Tables

Chapter 6: ResUsageSpma Table

Column Name Note:

Type of Data

Description

Data Type

Invalid Platform

CPU idle time = CPUIdle + CPUIoWait CPU busy time = CPUUServ + CPUUExec CPUIdleNorm = (CPUIdle * NodeNormFactor)/100 CPUIOWaitNorm = (CPUIoWait * NodeNormFactor)/100 CPUUServNorm = (CPUUServ * NodeNormFactor)/ 100 CPUUExecNorm = (CPUUExec * NodeNormFactor)/100 where the NodeNormFactor is the per node normalization factor. This is related to the NodeType value reported in this resource usage table. The normalization factor modifies the reported CPU times to the equivalent time of a specified virtual processor. This does not add up to the reported CPU time. You can calculate the CPU time by using the formula below. CPUIdleNorm + CPUIOWaitNorm + CPUUServNorm + CPUUExecNorm = CentiSecs * NCPUs * NodeNormFactor To calculate the non-normalized total CPU time, use the following formula: 100 x Secs x NCPUs CentiSecs x NCPUs = CPU(Idle, IoWait, UServ, UExec) The CPU time returned in centiseconds is more accurate than those returned in seconds.

CPUIdle CPUIoWait

count count

Time in centiseconds CPUs are idle and not waiting for I/O. Time in centiseconds CPUs are idle and waiting for I/O completion. On Windows, the value is always 0. Note: This time represents another variety of Idle, since a CPU is only in this state if there are no processes eligible for execution. If there was a process available, the CPU would be immediately dispatched for that process.

FLOAT FLOAT Windows

CPUUServ

count

Time in centiseconds CPUs are busy executing user service code, that is, privileged work performing system services on behalf of user execution processes which do not have root access. Time in centiseconds CPUs are busy executing user execution code, that is, time spent in a user state on behalf of a process. Time in centiseconds CPUs are idle and not waiting on I/O. Time in centiseconds CPUs are idle and waiting for I/O completion. On Windows, the value is always 0.

FLOAT

CPUUExec

count

FLOAT

CPUIdleNorm CPUIOWaitNorm

count count

FLOAT FLOAT Windows

Resource Usage Macros and Tables

59

Chapter 6: ResUsageSpma Table

Column Name CPUUServNorm

Type of Data count

Description Time in centiseconds CPUs are busy executing user service code, that is, privileged work performing system services on behalf of user execution processes which do not have root access. Time in centiseconds CPUs are busy executing user execution code; that is, time spent in a user state on behalf of a process. MEMORY COLUMNS

Data Type FLOAT

Invalid Platform

CPUUExecNorm

count

FLOAT

Memory Allocation Columns Identify the number and amount of memory allocations, subdivided into (the only applicable) generic node memory type and a summarization of vproc memory types. MemTextAllocs count Number of successful memory allocations and size-increasing memory alters for non-system overhead text (code). Amount allocated can be derived by multiplying the number of allocations by the fixed page size. Number of successful memory allocations and size-increasing memory alters for all vproc memory types, that is, disk segments and task context types. The value represents the change in memory. It represents a delta from the previous reporting period. Thus, it will report negative values as less memory is used. Note: The original meaning of this column was the total KBs attributed to allocations and sizeincreasing alters for vproc memory types. Memory Pages Resident Columns Identify the amount, in number of pages or KBs, of memory resident subdivided into memory types. Disk segment memory types are described by the single entries below. Each of these expands into six columns, where [seg] is as follows: PDb = Permanent data block disk segments PCi =Permanent cylinder index disk segments SDb =Regular or restartable spool data block disk segments SCi = Regular or restartable spool cylinder index disk segments TJt = Transient journal table or WAL data block or WAL cylinder index APt = Append table or permanent journal table data block or cylinder index disk segments track Number of pages resident in memory for system overhead text. System Overhead Text is wired into memory upon startup and will not change. FLOAT ALL FLOAT ALL

MemVprAllocs

count

FLOAT

ALL

MemVprAllocKB

count

FLOAT

Windows

MemTSysOhRes

60

Resource Usage Macros and Tables

Chapter 6: ResUsageSpma Table

Column Name MemDSysOhRes

Type of Data track

Description Number of pages resident in memory for system overhead data. System Overhead Data is wired into memory upon startup. Number of pages resident in memory for text. Number of pages resident in memory for task context segments. Current KBs resident in memory for (nonbackup) disk segments. KBs of free memory. This value should be equal to the size of memory minus the total amount resident derived from adding all of the above memory resident columns and frozen disk segment resident column from ResUsageSvpr. On Linux, the value reported is the approximate amount of memory that is available for use. The Linux operating system uses most free memory for buffers and caching to improve performance, but the operating system can reclaim that memory if it is needed by programs. The following formula is used by the RSS to calculate the MemFreeKB value. MemFreeKB = MemFree + Buffers + Cached + SwapCached - fsgavailpgs*kbperpage (active_slabs*pgsperslab*kbperpage) where the values: MemFree, Buffers, Cached, and SwapCached come from /proc/meminfo. fsgavailpgs come from the PDE FSG code. active_slabs and pgsperslab come from /proc/ slabinfo.

Data Type FLOAT

Invalid Platform ALL

MemTextRes MemCtxtRes Mem[seg]KBRes MemFreeKB

track track track track

FLOAT FLOAT FLOAT FLOAT

ALL ALL ALL

Memory Availability Management Columns Identify overhead to managing memory when memory availability is a problem. MemFails count Number of failures performing memory allocations and size-increasing memory alters for vproc memory types as well as node memory types. Number of times memory was aged. Number of non-system overhead text pages dropped from memory to make more physical memory available. FLOAT ALL

MemAgings MemTextPageDrops

count count

FLOAT FLOAT

ALL ALL

Resource Usage Macros and Tables

61

Chapter 6: ResUsageSpma Table

Column Name MemTextPageReads

Type of Data count

Description Number of non-system overhead text pages required to be read from disk when it was previously paged out. On Linux, the number of 4KB pages paged minus the pages swapped in.

Data Type FLOAT

Invalid Platform

MemProcSwapped

track

Current count of processes whose stack has been written to disk to make available more physical memory. This value is less than, or equal to, total processes allocated. Number of task context (scratch, stack, and so on) pages that were paged out. On Linux, the number of 4KB pages swapped out.

FLOAT

ALL

MemCtxtPageWrites

count

FLOAT

MemCtxtPageReads

count

Number of task context (scratch, stack, and so on) pages that were paged in. On Linux, the number of 4KB pages swapped in.

FLOAT

MemSwapDrops

count

Number of disk segments that were dropped from memory because all its ancestor processes were swapped out. KBs dropped from memory by MemSwapDrops. Number of disk segments that were re-read when they were previously dropped from memory because all its ancestor processes were swapped out. KBs re-read from memory by MemSwapReads. NET COLUMNS

FLOAT

ALL

MemSwapDropKB MemSwapReads

count count

FLOAT FLOAT

ALL ALL

MemSwapReadKB

count

FLOAT

ALL

Point-to-Point Net Traffic Columns Identify the number (Reads, Writes) and amount (ReadKB, WriteKB) of input and output messages passing through the Teradata Database nets through point-to-point (1:1) methods (PtP). It excludes TCP/IP traffic. MsgPtPReads count Number of net point-to-point messages input to processes on the node via the message subsystem. Number of net point-to-point messages output from processes on the node via the message subsystem. Total KBs of net point-to-point messages input to processes on the node via the message subsystem. FLOAT

MsgPtPWrites

count

FLOAT

MsgPtPReadKB

count

FLOAT

62

Resource Usage Macros and Tables

Chapter 6: ResUsageSpma Table

Column Name MsgPtPWriteKB

Type of Data count

Description Total KBs of net point-to-point messages output from processes on the node via the message subsystem.

Data Type FLOAT

Invalid Platform

Broadcast Net Traffic Columns Identify the number (Reads, Writes) and amount (ReadKB, WriteKB) of input and output messages passing through the Teradata Database nets through broadcast (1:many) methods (Brd). Note: If a single broadcast message is delivered to multiple processes in this node, the NetBrdReads and NetBrdReadKB are only incremented once. MsgBrdReads count Number of net broadcast messages input to processes on the node via the message subsystem. Number of net broadcast messages output from processes on the node via the message subsystem. Total KBs of net broadcast messages input to processes on the node via the message subsystem. Total KBs of net broadcast messages output from processes on the node via the message subsystem. FLOAT

MsgBrdWrites

count

FLOAT

MsgBrdReadKB

count

FLOAT

MsgBrdWriteKB

count

FLOAT

Network Transport Data Columns Identify the number (Reads, Writes) and amount of input and output (PDE messages routed by the message subsystem) passing through the Teradata Database nets. These statistics are nonspecific, that is, they do not take into consideration which Bynet performed the transport. NetMsgPtpWriteKB NetMsgBrdWriteKB NetMsgPtpReadKB NetMsgBrdReadKB NetMsgPtpWrites NetMsgBrdWrites NetMsgPtpReads NetMsgBrdReads count count count count count count count count Amount of point-to-point message data in KBs transmitted by both Bynets. Amount of broadcast message data in KBs transmitted by both Bynets. Amount of point-to-point message data in KBs received by both Bynets. Amount of broadcast message data in KBs received by both Bynets. The number of point-to-point messages transmitted by both Bynets. The number of broadcast messages transmitted by both Bynets The number of point-to-point messages received by both Bynets. The number of broadcast messages received by both Bynets. FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT

Resource Usage Macros and Tables

63

Chapter 6: ResUsageSpma Table

Column Name

Type of Data

Description

Data Type

Invalid Platform

Per-Bynet Network Transport Data Columns Identify the amount of input and output passing through the Teradata Database nets. These statistics are net-specific, that is, they relate to each specific Bynet. On a single-node (virtual network [vnet]) system, net-specific statistics are not meaningful and are always zero. NetTxKBPtP NetRxKBPtP NetTxKBBrd NetRxKBBrd count count count count Total point-to-point KBs transmitted over all Bynets. Total point-to-point KBs received over all Bynets. Total broadcast KBs transmitted over all Bynets. Total broadcast KBs received over all Bynets. FLOAT FLOAT FLOAT FLOAT

Net Controller Status and Miscellaneous Management Provide utilization and other status information about the Teradata Database net controllers. These statistics are not net-specific since all the Bynet statistics are reported in the net columns. On a single-node (vnet) system, net-specific statistics are not meaningful and are always zero. NetTxRouting NetTxConnected NetRxConnected NetTxIdle NetRxIdle count count count count count Number of samples showing the transmitter routing on a Bynet. Number of samples showing the transmitter connected on a Bynet. Number of samples showing the receiver connected on a Bynet. Number of samples showing the transmitter idle on a Bynet. Number of samples showing the receiver idle on a Bynet. FLOAT FLOAT FLOAT FLOAT FLOAT

Net Circuit Management Columns Identify the management of Teradata Database net circuits (Circ). Additional detail is found in Appendix B: ResUsageIpma Table. Note: Circuit attempts for one or both Bynets can be computed as the sum of the applicable NetTxCircPtp and NetTxCircBrd columns. All of these columns except for NetCircBackoffs are net-specific. On a single-node system, netspecific statistics are not meaningful and are always zero. NetTxCircHPBrd NetRxCircPtp NetTxCircHPPtP count count count Number of high priority broadcast circuits transmitted on all Bynets. Total number (both normal and high priority) of point-to-point circuits received on all Bynets. Number of high priority point-to-point circuits transmitted on all Bynets. FLOAT FLOAT FLOAT

64

Resource Usage Macros and Tables

Chapter 6: ResUsageSpma Table

Column Name NetRxCircBrd NetTxCircBrd NetCircBackoffs

Type of Data count count count

Description Total number (both normal and high priority) of broadcast circuits received on all Bynets. Total number (both normal and high priority) of broadcast circuits transmitted on all Bynets. Software backoffs, defined as BNS service blocked occurrences, without regard for which net was involved. Hardware backoffs reported by the BLM for all Bynets. Total number (both normal and high priority) of point-to-point circuits transmitted on all Bynets.

Data Type FLOAT FLOAT FLOAT

Invalid Platform

NetHWBackoffs NetTxCircPtp

count count

FLOAT FLOAT

Group Coordination Messages Columns Identify messages that are communicated through the Teradata Database net for coordination of a process among a group of vprocs. Coordination is handled either through semaphores, groups, or channels. MsgChnLastDone count Number of last done events that occurred on this node. Note: The last AMP to finish an operation may send a last done broadcast message indicating the work is done for this step. This is used in tracking down the slowest node or AMP in the system. A node or AMP that has more last done messages than the others could be a bottleneck in the system performance. NetSemInUseSum NetSemInUseMax NetChanInUseSum NetChanInUseMax NetGroupInUseSum count max count max count Total number of semaphores in use during each log interval. Maximum number of semaphores in use during each log interval. Total number of channels in use during each log interval. Maximum number of channels in use. Total number of groups in use during each log interval. This number should be same across all nodes. Maximum number of groups in use during each log interval. FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT

NetGroupInUseMax

max

FLOAT

Merge Services Columns Identify activity occurring through merge (many:1) methods (Mrg) on Teradata Database net. NetMrgTxKB count Number of KBs transmitted, without regard to which net, by merge transmission services for currently active merge operations. FLOAT

Resource Usage Macros and Tables

65

Chapter 6: ResUsageSpma Table

Column Name NetMrgRxKB

Type of Data count

Description Number of KBs received, without regard to which net, by merge receive services for currently active merge operations. Number of data rows transmitted, without regard to which net, by merge transmission services for currently active merge operations. Number of data rows received, without regard to which net, by merge receive services for currently active merge operations. HOST CONTROLLER COLUMNS

Data Type FLOAT

Invalid Platform

NetMrgTxRows

count

FLOAT

NetMrgRxRows

count

FLOAT

Channel Traffic Columns Identify the traffic between the host and the node in three levels of granularity: blocks, messages, and KBs. Blocks are made up of some amount of variable sized messages. ReadKB and WriteKB identify the KBs involved in the traffic. HostBlockReads HostBlockWrites HostMessageReads HostMessageWrites HostReadKB HostWriteKB count count count count count count Number of blocks read in from the host. Number of blocks written out to the host. Number of messages read in from the host. Number of messages written out to the host. KBs transferred in from the host. KBs transferred out to the host. GENERAL CONCURRENCY CONTROL COLUMNS Database Locks Columns Identify database locking occurrences. DBLockBlocks DBLockDeadlocks count count Number of times a database lock was blocked. Number of times a database lock was deadlocked. FILE SYSTEM COLUMNS Segments Acquired Columns Summarize logical and physical segments acquired by the file system. These columns identify the total disk memory segments acquired by the file system during the log period. Logical acquires (Acqs) and the logical amount acquired (AcqKB) are identified. Acquires causing physical reads (AcqReads) and the amount read (AcqReadKB) are identified as a subset of logical acquires. For more detail, see Segment Acquires Columns on page 136 in the ResUsageSvpr Table chapter. FileAcqs count Total number of logical disk segments acquired. FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT

66

Resource Usage Macros and Tables

Chapter 6: ResUsageSpma Table

Column Name FileAcqKB

Type of Data count

Description Total KBs logically acquired by FileAcqs. Note: Use the views provided in Chapter 14 instead of accessing the data for this field directly from this table.

Data Type FLOAT

Invalid Platform

FileAcqReads FileAcqReadKB

count count

Total number of disk segment acquires that caused a physical read. Total KBs physically read by FileAcqReads.

FLOAT FLOAT

Segments Released Columns Summarize logical and physical segments released by the file system. For more detail, see Segments Released Columns on page 138 in the ResUsageSvpr Table chapter. FileRels FileRelKB count count Total number of logical disk segments released by tasks. Total KBs logically released by FileRels. Note: Use the views provided in Chapter 14 instead of accessing the data for this field directly from this table. FileWrites FileWriteKB count count Total number of disk segment immediate or delayed physical writes. Total KBs physically written by FileWrites. FLOAT FLOAT FLOAT FLOAT

Data Block Prefetches Columns Summarize the effects of prefetching data blocks on the file system. For more detail, see Data Block Prefetches Columns on page 137 in the ResUsageSvpr Table chapter. Note: A prefetch is either a cylinder read operation or individual block reads operation. Either of these operations are generically called a prefetch. When all cylinder slots are in use, the cylinder reads revert back to the original algorithm of a block-at-a-time read ahead. So the column FilePreKB is the sum of the size of data blocks logically read by either cylinder reads or data block pre-reads. This also applies to the physical pre-reads. FilePreReadKB includes both physical cylinder reads and single block pre-reads. The number of data blocks that are pre-read at a time is controlled by the DBS Control performance parameter ReadAhead Count. The default is 1 block at a time pre-read. If you enable cylinder reads, there will be extra sectors read in on cylinder reads. An accurate calculation of the wasted kilobytes read by cylinder read is not possible since there are legitimate logical pre-reads that do not incur physical prereads. For more information on cylinder read, see Performance Management. FilePres count Total number of times a logical data prefetch was performed (either as a cylinder read or individual block reads). FLOAT

Resource Usage Macros and Tables

67

Chapter 6: ResUsageSpma Table

Column Name FilePreKB

Type of Data count

Description Sum of the sizes of data blocks logically loaded with data prefetches (either cylinder reads or individual block reads). For cylinder reads, this field does not include the disk sectors in between the loaded data blocks. Note: Use the views provided in Chapter 14 instead of accessing the data for this field directly from this table.

Data Type FLOAT

Invalid Platform

FilePreReads

count

Number of times a data prefetch was physically performed either as a cylinder read or individual blocks read. The size of the data prefetch (cylinder section or individual blocks being read) that is physically loaded from disk. For cylinder reads, this field includes the disk sectors in between the loaded data blocks.

FLOAT

FilePreReadKB

count

FLOAT

Data Segment Lock Requests Columns Summarize the number of lock requests, blocks, and deadlocks on a disk segment. For more detail, see Data Segment Lock Requests Columns on page 139 in the ResUsageSvpr Table chapter. FileLockBlocks FileLockDeadlocks FileLockEnters count count count Number of lock requests that were blocked. Number of deadlocks detected on lock requests. Number of times a lock was requested. FLOAT FLOAT FLOAT

Depot Columns Summarize the physical writes to the Depot used to protect in-place modifications. FileSmallDepotWrites count Number of small writes to the depot performed to protect in-place modifications. Each small Depot write protects a single in-place write of either a WAL data block or a database data block. The small Depot is typically used when the inplace writes are initiated by a foreground task. Small Depot writes are also counted against FileWrites; therefore, FileWrites still indicates the total writes regardless of whether it was a Depot write or a database write. FLOAT

68

Resource Usage Macros and Tables

Chapter 6: ResUsageSpma Table

Column Name FileLargeDepotWrites

Type of Data count

Description Number of large writes to the depot performed to protect in-place modifications. Each large Depot write protects multiple in-place writes of either WAL data blocks or database data blocks. The large Depot is typically used when blocks age out of memory in the background. Large Depot writes are also counted against FileWrites; therefore, FileWrites still indicates the total writes regardless of whether it was a Depot write or a database write. Total number of blocks (either WAL or database) that have been protected by large Depot writes. Since a large Depot write protects multiple blocks, the following calculation results in the average number of blocks protected by each large Depot write: FileLargeDepotBlocks / FileLargeDepotWrites USER COMMANDS COLUMNS

Data Type FLOAT

Invalid Platform

FileLargeDepotBlocks

count

FLOAT

User Command Columns Summarize the type of statements given to Teradata Database by the user. For more detail, see Chapter 8: ResUsageShst Table. CmdDDLStmts CmdDeleteStmts CmdInsertStmts CmdSelectStmts CmdUpdateStmts CmdUtilityStmts CmdOtherStmts count count count count count count count Number of alter, modify, drop, create, replace, grant or revoke commands. Number of delete commands. Number of insert commands. Number of select commands. Number of update commands. Number of utility commands. Number of other commands. FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT

User Command Arrival and Departure Columns Summarize the arrival and departure of user statements. For more detail, see Chapter 8: ResUsageShst Table. CmdStmtsInProgCur CmdStmtSuccesses CmdStmtFailures CmdStmtErrors count count count count Current count of statements in progress. Number of statements that departed normally. Number of statements that departed in failure or were aborted. Number of statements that departed in error. FLOAT FLOAT FLOAT FLOAT ALL

Resource Usage Macros and Tables

69

Chapter 6: ResUsageSpma Table

Column Name CmdStmtTime

Type of Data count

Description The sums of the resident time of each statement in progress during the log period, including the successes and failures. TERADATA ASM COLUMNS

Data Type FLOAT

Invalid Platform ALL

AMP Worker Task Columns Collect and report statistics about the AWTs. For more information about the ResUsageSawt table and columns, see Chapter 7: ResUsageSawt Table. AwtFlowControlled AwtFlowCtlCnt count count Number of AMPs currently in flow control on the work input mailbox. Number of times this log period that the node entered the flow control state from a non-flow controlled state. Number of AWTs currently in use for this node. Divide the value for AwtInUse by the CollectIntervals value to obtain an average. The AwtInuse value of a log period can be larger than the AwtInuseMax value of the log period if a log period consists of multiple gather periods. The AwtInuse value in a log period is the summation of the values of the gather periods comprising the log period. This is why the AwtInuse value needs to be divided by the CollectIntervals value. The CollectIntervals value is the number of gather periods per reporting period. For more information, see the CollectIntervals column. AwtInuseMax max Peak number of AWTs (Max) on this node. This is not the Peak or the Max value stored in the Priority Scheduler (sch) data structure and reported by the puma utility. The sch peak value is the Max value since startup is never set and Max is the maximum allowed value. Note: This reported Max value is the maximum reached during each log period. For example, if there are 4 gather periods in one log period, and the max value of each period is 10, 32, 7, and 15, the max of the log period would be the max of the individual gather periods, which would be 32. FLOAT FLOAT FLOAT

AwtInuse

max

FLOAT

70

Resource Usage Macros and Tables

Chapter 6: ResUsageSpma Table Spare Columns

Column Name

Type of Data

Description

Data Type

Invalid Platform

Priority Scheduler Columns Provides data specific to the Priority Scheduler. For more information about the ResUsageSps table and columns, see Chapter 11: ResUsageSps Table. PSNumRequests PSQWaitTime count count Number of work requests received for all Performance Groups on this node. Time in centiseconds that work requests waited on an input queue before being serviced. To get an approximate average QWaitTime per request during this period, divide QWaitTime by NumRequests. PSServiceTime count Time in centiseconds that work requests required for service. To get an approximate average ServiceTime per request during this period, divide ServiceTime by NumRequests. FLOAT FLOAT FLOAT

Spare Columns
The ResUsageSpma table has 12 spare columns (one of which is being used) as shown in the table below.
Column Name SpareCount[00-03] SpareTrack[00-03] SpareTmon00 Type of Data count track n/a Description Spare counted statistic. Spare tracked statistic. The SpareTmon00 field contains the COD value. The value represents the COD value in one tenths of a percent, so a displayed value of 500 represents a COD value of 50.0%. Note: This value is valid only on SUSE Linux Enterprise Server 10 systems and is a single value for the entire system. SpareTmon[01-03] count Spare time monitored statistic.

The spare column fields expand to values 00 - 03, so that column names would be SpareCount01 or SpareTrack02, and so on.

Resource Usage Macros and Tables

71

Chapter 6: ResUsageSpma Table Spare Columns

72

Resource Usage Macros and Tables

CHAPTER 7

ResUsageSawt Table

The ResUsageSawt table collects and reports statistics about the AWTs. If table logging is enabled, then data is written to the database once for each log period. To consolidate and summarize the total number of rows written to the database, you can enable Summary Mode. For details, see Summary Mode on page 77. Note: This table is created as a MULTISET table. The following table describes the ResUsageSawt table columns.
Type of Data Invalid Platform

Column Name

Description HOUSEKEEPING COLUMNS

Data Type

RELATIONAL PRIMARY INDEX COLUMNS These columns taken together form the nonunique primary index. TheDate TheTime n/a n/a Date of the log entry. Nominal time of the log entry. Note: Under conditions of heavy system load, entries may be logged late (typically, by no more than one or two seconds), but this field will still contain the time value when the entry should have been logged. See the Secs and NominalSecs columns. NodeId n/a Identifies the Node upon which the vproc resides. The Node ID is formatted as CCC-MM, where CCC denotes the three-digit cabinet number and MM denotes the two-digit chassis number of the node. For example, a node in chassis 9 of cabinet 3 has a node ID of 003-09. Note: SMP nodes have a chassis and cabinet number of 1. For example, the node ID of an SMP node is 001-01. MISCELLANEOUS HOUSEKEEPING COLUMNS GmtTime n/a Greenwich Mean Time is not affected by the Daylight Savings Time adjustments that occur twice a year. Type of node, representing the per node system family type. For example, 5600C or 5555H. FLOAT INTEGER DATE FLOAT

NodeType

n/a

CHAR(8)

Resource Usage Macros and Tables

73

Chapter 7: ResUsageSawt Table

Column Name VprId

Type of Data n/a

Description Identifies the vproc number. All Vprocs in this table are AMPS so there is no VprType field provided. In Summary Mode, this field is zero. Actual number of seconds in the log period represented by this row. Normally the same as NominalSecs, but can be different in three cases: The first interval after a log rate change A sample logged late because of load on the system System clock adjustments affect reported Secs Useful for normalizing the count statistics contained in this row, for example, to a per-second measurement.

Data Type INTEGER

Invalid Platform

Secs

n/a

SMALLINT

CentiSecs

n/a

Number of centiseconds in the logging period. This field is useful when performing data calculations with small elapsed times where the difference between centisecond-based data and whole seconds results in a percentage error. A specified or nominal number of seconds in the logging period. Identifies the summarization status of this row. If the value is N, the row is a non-summary row. If the value is S, the row is a summary row. For details, see Summary Mode on page 77. Controls whether or not the rows will be logged to the ResUsage tables if Active Row Filter Mode is enabled. If Active is set to: a non-zero value, then the row contains modified data columns. a zero value, then none of the data columns in the row have been updated during the logging period. For example, if Active Row Filter Mode is enabled, then the rows that have a zero Active field value will not be logged to the ResUsage tables.

INTEGER

NominalSecs SummaryFlag

n/a n/a

SMALLINT CHAR

Active

n/a

FLOAT

CollectIntervals

n/a

The number of gather periods per reporting period. In the Collect Buffer and Log Buffer, the value is the number of Gather operations that have been performed during the period. This number can vary from one period to the next.

SMALLINT

74

Resource Usage Macros and Tables

Chapter 7: ResUsageSawt Table

Column Name

Type of Data

Description STATISTICS COLUMNS TERADATA ASM COLUMNS AMP Worker Task Columns

Data Type

Invalid Platform

Collect and report statistics about the AWTs. MailBoxDepth count The average depth of the AMP work mailbox. Note: This value reports the SUM of the values reported in each gather period when there are multiple gather intervals in each log period. It should be divided by the CollectIntervals column to get the average value. FlowControlled FlowCtlCnt track count Specifies if an AMP is in flow control. If the value is non-zero, then the AMP is in flow control. Number of times during the log period that the system entered the flow control state from a nonflow controlled state. The total time in milliseconds that an AMP is in flow control. Maximum number of AWTs in use at any one time during the log period. Current number of AWTs in use during the log period for each work type for the VprId vproc. Note: This value reports the SUM of the values reported in each gather period when there are multiple gather intervals in each log period. It should be divided by the CollectIntervals column to get the average value. WorkTypeMax00 WorkTypeMax15 max Maximum number of AWTs in use at one time during the log period for each work type for the VprId vproc. In Summary Mode, the WorkTypeMax field values are the Max of the values for all the AMPS. WORK TYPE DESCRIPTIONS The WorkTypeInuse and WorkTypeMax array data columns above each contain 16 Work Type entries that are described here. For example, WorktypeInuse00 contains the number of in use AWTs that are of Work Type MSGWORKNEW, and WorktypeInuse01 contains the values for MSGWORKONE. These columns allow the user to monitor the usage of the AWTs of each work type. This can be used to determine if the usage is close to the maximum values defined and what type of work they are doing. Also, this can be used to determine characteristics of the system during skew conditions or when there are AWT shortages. Use the tdntune utility to determine the settings for Flow Control. For information on Expedited Allocation Groups, see "Priority Scheduler (schmon)" chapter of Utilities. FLOAT FLOAT FLOAT FLOAT

FlowCtlTime InuseMax WorkTypeInuse00 WorkTypeInuse15

count max count

FLOAT FLOAT FLOAT

Resource Usage Macros and Tables

75

Chapter 7: ResUsageSawt Table

Column Name MSGWORKNEW

Type of Data n/a

Description Used for new work requests. This work type has the lowest number, which means it is queued last. It also has the effect of honoring secondary requests needed to complete existing work items before any new ones are started. A zero value is used for new work items.

Data Type n/a

Invalid Platform

MSGWORKONE

n/a

First level secondary work items. Numbered work types are used for secondary work items. For example, work type one (MSGWORKONE) is used for secondary work requests spawned by new work items; work type two (MSGWORKTWO) requests are spawned from work type one requests and queued for delivery before work type one requests; and so on. Each numbered work type is queued for delivery just before the one from which it is spawned. Second level secondary work items. Special types of database work. Start System Recover. This field is not normally used and MSGWORKNEW, MSGWORKONE, and MSGWORKTWO report work requests for utilities. However, if utilities are configured to use a separate pool of work types, this field reports new work for utilities such as FastLoad, MultiLoad, and FastExport. First level secondary work spawned work for utilities such as FastLoad, MultiLoad, and FastExport. If the utilities are not configured to use a separate pool of work types, they use MSGWORKNEW, MSGWORKONE, and MSGWORKTWO. Second level secondary work for utilities such as FastLoad, MultiLoad, and FastExport. If the utilities are not configured to use a separate pool of work types, they use MSGWORKNEW, MSGWORKONE, and MSGWORKTWO. New work for Expedited Allocation Groups. First level spawned work for Expedited Allocation Groups. Second level spawned work for Expedited Allocation Groups. Not used.

n/a

MSGWORKTWO MSGWORKTHREE MSGWORKFOUR MSGWORKFIVE

n/a n/a n/a n/a

n/a n/a n/a n/a

MSGWORKSIX

n/a

n/a

MSGWORKSEVEN

n/a

n/a

MSGWORKEIGHT MSGWORKNINE MSGWORKTEN MSGWORKELEVEN

n/a n/a n/a n/a

n/a n/a n/a n/a

76

Resource Usage Macros and Tables

Chapter 7: ResUsageSawt Table Summary Mode

Column Name MSGWORKABORT

Type of Data n/a

Description Used for transaction abort requests. This work type has a higher value than the numbered work types so that abort requests are honored before beginning any additional work item for the transactions being aborted. The array number for MSGWORKABORT is 12.

Data Type n/a

Invalid Platform

MSGWORKSPAWN

n/a

Used for spawned abort requests and is delivered before normal aborts. The array number for MSGWORKSPAWN is 13.

n/a

MSGWORKNORMAL

n/a

Used for messages that do not fall within the standard work type hierarchy. This work type is delivered before any of the work items described above. The array number for MSGWORKNORMAL is 14.

n/a

MSGWORKCONTROL

n/a

Used for system control messages. These are delivered before any other kind of message. The array number for MSGWORKCONTROL is 15.

n/a

Summary Mode
When Summary Mode is active for the ResUsageSawt table, one row is written to the database for each node in the system for each log interval. The AWT data will be combined for all the AMP vprocs on the node. You can determine if a row is in Summary Mode by checking the SummaryFlag column for that row.
IF the SummaryFlag column value is S N THEN the data for that row is being logged in Summary Mode. normally.

Resource Usage Macros and Tables

77

Chapter 7: ResUsageSawt Table Spare Columns

Spare Columns
The ResUsageSawt table has 30 spare columns (one of which is being used) as shown in the table below.
Column Name SpareCount[00-01, 04-09] SpareCount[02-03] Type of Data count count Description Spare counted statistic. The following SpareCount columns will be converted to the specified column names in Teradata Database 14.0. SpareCount02=Available. Available is the number of unreserved AWTs from the pool that are not being used at the end of the interval. For example, if 12 of the normally 62 unreserved AWTs are removed from the pool by reserving them for expedited work, there could at most be 50 unreserved AWTs available. If in this log period, 10 unreserved AWTs are taken from the pool to service 10 queries that are still executing, than there would be only 40 available at the end of the log period. SpareCount03=AvailableMin. AvailableMin is the minimum number of unreserved AWTs available in the pool for each AMP for the logged period. For example, a value of 0 for SpareCount03 means there were no unreserved AWTs available in the pool at some point during the reporting period. SpareTrack[00-09] SpareTmon00 track n/a Spare tracked statistic. The SpareTmon00 field contains the COD value. The value represents the COD value in one tenths of a percent, so a displayed value of 500 represents a COD value of 50.0%. Note: This value is valid only on SUSE Linux Enterprise Server 10 systems and is a single value for the entire system. SpareTmon[01-09] count Spare time monitored statistic.

The spare column fields expand to values 0009, so that column names would be SpareCount00, SpareTrack03, SpareTmon08, and so on.

78

Resource Usage Macros and Tables

CHAPTER 8

ResUsageShst Table

The ResUsageShst table: Contains resource usage information specific to the host channels and LANs communicating with Teradata Database. Includes resource usage data for system-wide, host information.

Note: This table is created as a MULTISET table. The following table describes the ResUsageShst table columns.
Type of Data Invalid Platform

Column Name

Description HOUSEKEEPING COLUMNS

Data Type

RELATIONAL PRIMARY INDEX COLUMNS These columns taken together form the nonunique primary index. TheDate TheTime n/a n/a Date of the log entry. Nominal time of the log entry. Note: Under conditions of heavy system load, entries may be logged late (typically, by no more than one or two seconds), but this field will still contain the time value when the entry should have been logged. See the Secs and NominalSecs columns. NodeId n/a Identifies the Node upon which the vproc resides. The Node ID is formatted as CCC-MM, where CCC denotes the three-digit cabinet number and MM denotes the two-digit chassis number of the node. For example, a node in chassis 9 of cabinet 3 has a node ID of 003-09. Note: SMP nodes have a chassis and cabinet number of 1. For example, the node ID of an SMP node is 001-01. MISCELLANEOUS HOUSEKEEPING COLUMNS GmtTime n/a Greenwich Mean Time is not affected by the Daylight Savings Time adjustments that occur twice a year. Type of node, representing the per node system family type. For example, 5600C or 5555H. FLOAT INTEGER DATE FLOAT

NodeType

n/a

CHAR(8)

Resource Usage Macros and Tables

79

Chapter 8: ResUsageShst Table

Column Name VprId

Type of Data n/a

Description Identifies the vproc number. In Summary Mode, VprId is -1. For LAN-connected hosts, VprId is the Gateway vproc ID. For channel-connected hosts, VprId should be the vproc id of the owning PE. If there are multiple PEs on this node connecting to this channel, then VprId will be 65534. If, for some reason, no PE on this node connects to this channel, VprId will be 65535.

Data Type INTEGER

Invalid Platform

HstId

n/a

Identifies the host. Value is BBMMPPHHH (BB = Bus, MM = Module Number (or chassis number), PP = Port, HHH = three digit Host Group ID) with each field getting two or three decimal digits of the resulting 9 digit value. The chassis number is always 0 for network-connected hosts. In Summary Mode, HstId is always 0. Type of host. Possible values are NETWORK (LAN-connected host) and IBMMUX (channelconnected host). Actual number of seconds in the log period represented by this row. This value is useful for normalizing the statistics contained in this row, for example, to a per-second measurement. Number of centiseconds in the logging period. This field is useful when performing data calculations with small elapsed times where the difference between centisecond-based data and whole seconds results in a percentage error. A specified or nominal number of seconds in the logging period. Identifies the summarization status of this row. If the value is N, the row is a non-summary row. If the value is S, the row is a summary row. In Summary Mode, the rows are summarized into a single row. For details, see Summary Mode on page 83.

INTEGER

HstType

n/a

CHAR(8)

Secs

n/a

SMALLINT

CentiSecs

n/a

INTEGER

NominalSecs SummaryFlag

n/a n/a

SMALLINT CHAR

80

Resource Usage Macros and Tables

Chapter 8: ResUsageShst Table

Column Name Active

Type of Data count

Description Controls whether or not the rows will be logged to the ResUsage tables if Active Row Filter Mode is enabled. If Active is set to: a non-zero value, then the row contains modified data columns. a zero value, then none of the data columns in the row have been updated during the logging period. For example, if Active Row Filter Mode is enabled, then the rows that have a zero Active field value will not be logged to the ResUsage tables.

Data Type FLOAT

Invalid Platform

CollectIntervals

n/a

The number of gather periods per reporting period. In the Collect Buffer and Log Buffer, the value is the number of Gather operations that have been performed during the period. This number can vary from one period to the next. STATISTICS COLUMNS HOST CONTROLLER COLUMNS

SMALLINT

Channel Traffic Columns Identify the traffic between the host and the node in three levels of granularity: blocks, messages and KBs. Blocks are made up of some amount of variable sized messages. ReadKB and WriteKB identify the KBs involved in the traffic. HostBlockReads HostBlockWrites HostMessageReads HostMessageWrites HostReadKB HostWriteKB count count count count count count Number of blocks read in from the host. Number of blocks written out to the host. Number of messages read in from the host. Number of messages written out to the host. KBs transferred in from the host. KBs transferred out to the host. FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT

Resource Usage Macros and Tables

81

Chapter 8: ResUsageShst Table

Column Name

Type of Data

Description Channel Management Columns

Data Type

Invalid Platform

Identify overhead of channel management. HostQLenSum count Total number of messages queued for output to the host during each log interval. Note: To calculate the average HostQLen divide the HostQLenSum by the CollectIntervals value to get the HostQLen average value during the logging period. This average is an average of the values recorded at each of the gather periods that occur during the logging period. HostQLenMax HostReadFails max count Maximum number of messages queued in each log interval. Number of failures transmitting from the host. Note: This is for Teradata Channel software (TCHN) only. HostWriteFails count Number of failures transmitting to the host. Note: This is for TCHN only. User Commands Columns Identify the type of commands given to Teradata Database by the user. Three levels of granularity are given: transaction, request, and statement. Transactions consist of one or more requests. Requests consist of one or more statements. Statements are subdivided into the various statement types. CmdTransactions CmdRequests CmdAlterStmts CmdCreateStmts CmdDeleteStmts CmdGrantStmts CmdInsertStmts CmdSelectStmts CmdUpdateStmts CmdArchUtilityStmts CmdLoadUtilityStmts count count count count count count count count count count count Number of transaction commands. Number of request commands. Number of alter, modify, or drop statement commands. Number of create or replace statement commands. Number of delete commands. Number of grant or revoke commands. Number of insert commands. Number of select commands. Number of update commands. Number of archival utility commands (for example, dump, restore, archive and recovery). Number of FastLoad and MultiLoad utility commands. (Tpump commands cannot be distinguished, and are therefore counted by the INSERT, UPDATE and DELETE statements). FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT ALL FLOAT ALL

82

Resource Usage Macros and Tables

Chapter 8: ResUsageShst Table Summary Mode

Column Name CmdMiscUtilityStmts CmdOtherStmts

Type of Data count count

Description Number of miscellaneous utility commands. Number of other commands.

Data Type FLOAT FLOAT

Invalid Platform ALL

User Command Arrival and Departure Columns Identify the arrival and departure times and status of user commands. CmdStmtsInProgMax CmdStmtsInProgSum max count Maximum number of statements in progress during each log interval. Total count of statements in progress during each log interval. Note: To calculate the average number of statements in progress, divide this value by the CollectIntervals value. The CollectIntervals value is the number of gather periods per reporting period. For more information, see the CollectIntervals column. CmdStmtSuccesses CmdStmtFailures CmdStmtErrors CmdStmtTime count count count count Number of statements that departed normally. Number of statements that departed in failure or abortion. Number of statements that departed in error. The sums of the resident time of each statement in progress during the log period, including the successes and failures. FLOAT FLOAT FLOAT FLOAT ALL FLOAT FLOAT ALL ALL

Summary Mode
When Summary Mode is active for the ResUsageShst table, one row is written to the database for each type of host (network or channel-connected) on each node in the system, summarizing the hosts of that type on that node, for each log interval as follows: You can determine if a row is in Summary Mode by checking the SummaryFlag column for that row.
IF the SummaryFlag column value is S N THEN the data for that row is being logged in Summary Mode. normally.

Resource Usage Macros and Tables

83

Chapter 8: ResUsageShst Table Spare Columns

Spare Columns
The ResUsageShst table has 30 spare columns (one of which is being used) as shown in the table below.
Column Name SpareCount[00-09] SpareTrack[00-09] SpareTmon00 Type of Data count track n/a Description Spare counted statistic. Spare tracked statistic. The SpareTmon00 field contains the Capacity on Demand (COD) value. The value represents the COD value in one tenths of a percent, so a displayed value of 500 represents a COD value of 50.0%. Note: This value is valid only on SUSE Linux Enterprise Server 10 systems and is a single value for the entire system. SpareTmon[01-09] count Spare time monitored statistic.

The spare column fields expand to values 00-09, so that column names would be SpareCount00, SpareTrack04, SpareTmon01, and so on.

84

Resource Usage Macros and Tables

CHAPTER 9

ResUsageSldv Table

The ResUsageSldv table contains resource usage information for system-wide, logical device information. Statistics from this table are collected from the storage devices. Note: This table is created as a MULTISET table. For more information see Relational Primary Index on page 38. The following table describes the ResUsageSldv table columns.
Type of Data Invalid Platform

Column Name

Description HOUSEKEEPING COLUMNS

Data Type

RELATIONAL PRIMARY INDEX COLUMNS These columns taken together form the nonunique primary index. TheDate TheTime n/a n/a Date of the log entry. Nominal time of the log entry. Note: Under conditions of heavy system load, entries may be logged late (typically, by no more than one or two seconds), but this field will still contain the time value when the entry should have been logged. See the Secs and NominalSecs columns. NodeId n/a Identifies the Node upon which the vproc resides. The Node ID is formatted as CCC-MM, where CCC denotes the three-digit cabinet number and MM denotes the two-digit chassis number of the node. For example, a node in chassis 9 of cabinet 3 has a node ID of 003-09. Note: SMP nodes have a chassis and cabinet number of 1. For example, the node ID of an SMP node is 001-01. MISCELLANEOUS HOUSEKEEPING COLUMNS GmtTime n/a Greenwich Mean Time is not affected by the Daylight Savings Time adjustments that occur twice a year. Type of node, representing the per node system family type. For example, 5600C or 5555H. FLOAT INTEGER DATE FLOAT

NodeType

n/a

CHAR(8)

Resource Usage Macros and Tables

85

Chapter 9: ResUsageSldv Table

Column Name VprId CtlId

Type of Data n/a n/a

Description Note: This column is obsolete in normal mode and the value is set to 65535. Represents the controller number. The value is the decimal equivalent of the three digit controller ID in the LdvId. The maximum controller ID is 255 decimal. This allows the storage devices to be grouped by CtlId for controller based summarization. If the controller information is not available, its value is set to 255. In summary mode, the CtlId is set to 255.

Data Type INTEGER INTEGER

Invalid Platform

LdvId

n/a

Represents the storage device in the Bus System where it resides. The value in LdvId is -1. Note: For Linux, the LdvId is derived from the Host, Channel, Id, and Lun information of the device. For Windows, the LdvId is derived from the Port number, path Id, target Id, and Lun information of the device. If the device address information is not available, this field contains the device major and minor number.

BYTE(4)

LdvType Secs

n/a n/a

Type of logical device. The value is either DISK for database disk or SDSK for system disk. Actual number of seconds in the log period represented by this row. Normally the same as NominalSecs, but can be different in three cases: The first interval after a log rate change A sample logged late because of load on the system System clock adjustments affect reported Secs Useful for normalizing the count statistics contained in this row, for example, to a per-second measurement.

CHAR(4) SMALLINT

CentiSecs

n/a

Number of centiseconds in the logging period. This field is useful when performing data calculations with small elapsed times where the difference between centisecond-based data and whole seconds results in a percentage error. A specified or nominal number of seconds in the logging period.

INTEGER

NominalSecs

n/a

SMALLINT

86

Resource Usage Macros and Tables

Chapter 9: ResUsageSldv Table

Column Name SummaryFlag

Type of Data n/a

Description Identifies the summarization status of this row. If the value is N, the row is a non-summary row. If the value is S, the row is a summary row. In Summary Mode, the rows are summarized into a single row. For details, see Summary Mode on page 88.

Data Type CHAR

Invalid Platform

Active

count

Controls whether or not the rows will be logged to the ResUsage tables if Active Row Filter Mode is enabled. If Active is set to: A non-zero value, then the row contains modified data columns. A zero value, then none of the data columns in the row have been updated during the logging period. For example, if Active Row Filter Mode is enabled, then the rows that have a zero Active field value will not be logged to the ResUsage tables.

FLOAT

CollectIntervals

n/a

Number of gather periods per reporting period. In the Collect Buffer and Log Buffer, the value is the number of Gather operations that have been performed during the period. This number can vary from one period to the next. STATISTICS COLUMNS LOGICAL DEVICE COLUMNS

SMALLINT

Input and Output Traffic Columns The following columns represent the number and amount, in KBs, of data read and written to the logical device. LdvReads LdvWrites LdvReadKB LdvWriteKB LdvReadRespMax count count count count max Number of reads issued. Number of writes issued. The number of KBs (1024) read from the logical device. The number of KBs (1024) written to the logical device. Contains the maximum of the total read response time in centiseconds. (Note that this is not the maximum of individual read I/O response times.) Contains the maximum of the total write response times in centiseconds (Note that this is not the maximum of individual write I/O response times.) FLOAT FLOAT FLOAT FLOAT FLOAT ALL

LdvWriteRespMax

max

FLOAT

ALL

Resource Usage Macros and Tables

87

Chapter 9: ResUsageSldv Table Summary Mode

Column Name

Type of Data

Description

Data Type

Invalid Platform

Response Time Columns The following columns represent the response time to requests given to the logical device. LdvReadRespTot count Linux: Total of individual read response times in centiseconds. Windows: 0. LdvWriteRespTot count Linux: Total of individual write response times in centiseconds. Windows: 0. ReadActiveTotal WriteActiveTotal count count Total of read I/O active time in centiseconds. Total of write I/O active time in centiseconds. FLOAT FLOAT ALL ALL FLOAT Windows FLOAT Windows

Concurrent Operations Columns The following columns represent the number of concurrent operations performed on the logical device at a time. LdvConcurrentMax max Maximum number of concurrent requests during the log period. Default value is always 0. Note: Do not use this field for any platform. Outstanding Requests Columns The following columns represent the number of outstanding operation requests and the amount of time with outstanding requests for the logical device. QReadLength QWriteLength LdvOutReqSum count count count Number of read operations in queue. Number of write operations in queue. Sum of the average of queued requests at each gather period. To estimate an average value over the report period, divide LdvOutReqSum by the CollectIntervals column. LdvOutReqAvg = LdvOutReqSum / CollectIntervals. LdvOutReqMax LdvOutReqTime max count Maximum value of the LdvOutReqSum field. Total time in centiseconds with (any) outstanding requests. The values in this field should be less than or equal to the reported logging period. FLOAT FLOAT ALL FLOAT FLOAT FLOAT ALL ALL FLOAT ALL

Summary Mode
When Summary Mode is active for the ResUsageSldv table, the following rows are written to the database for each node in the system for each log interval:

88

Resource Usage Macros and Tables

Chapter 9: ResUsageSldv Table Spare Columns

One row summarizes the system logical devices One row summarizes Teradata Database logical devices

Also, you can determine if a row is in Summary Mode by checking the SummaryFlag column for that row.
IF the SummaryFlag column value is S N THEN the data for that row is being logged in Summary Mode. normally.

Spare Columns
The ResUsageSldv table has nine spare columns (one of which is being used) as shown in the table below.
Column Name SpareCount[00-02] SpareTrack[00-02] SpareTmon00 Type of Data count track n/a Description Spare counted statistic. Spare tracked statistic. The SpareTmon00 field contains the COD value. The value represents the COD value in one tenths of a percent, so a displayed value of 500 represents a COD value of 50.0%. Note: This value is valid only on SUSE Linux Enterprise Server 10 systems and is a single value for the entire system. SpareTmon[01-02] count Spare time monitored statistic.

The spare column fields expand to values 00-02, so that column names would be SpareCount00, SpareCount01, SpareCount02, SpareTrack00, and so on.

Resource Usage Macros and Tables

89

Chapter 9: ResUsageSldv Table Spare Columns

90

Resource Usage Macros and Tables

CHAPTER 10

ResUsageSpdsk Table

The ResUsageSpdsk table: Provides pdisk level statistics. Includes resource usage logs on cylinder I/O, allocation, and migration.

Note: This table is created as a MULTISET table. For more information see Relational Primary Index on page 38. The following table describes the ResUsageSpdsk table columns.
Type of Data Invalid Platform

Column Name

Description HOUSEKEEPING COLUMNS

Data Type

RELATIONAL PRIMARY INDEX COLUMNS These columns taken together form the nonunique primary index. TheDate TheTime n/a n/a Date of the log entry. Nominal time of the log entry. Note: Under conditions of heavy system load, entries may be logged late (typically, by no more than one or two seconds), but this field will still contain the time value when the entry should have been logged. See the Secs and NominalSecs columns. NodeId n/a Identifies the Node upon which the pdisk is connected. The Node ID is formatted as CCC-MM, where CCC denotes the threedigit cabinet number and MM denotes the two-digit chassis number of the node. For example, a node in chassis 9 of cabinet 3 has a node ID of 003-09. Note: SMP nodes have a chassis and cabinet number of 1. For example, the node ID of an SMP node is 001-01. MISCELLANEOUS HOUSEKEEPING COLUMNS GmtTime n/a Greenwich Mean Time is not affected by the Daylight Savings Time adjustments that occur twice a year. FLOAT INTEGER DATE FLOAT

Resource Usage Macros and Tables

91

Chapter 10: ResUsageSpdsk Table

Column Name PdiskGlobalId

Type of Data n/a

Description Identifies the pdisk in the system. Each pdisk in the system has a global ID which uniquely identifies the pdisk in the system. If a pdisk is connected to the nodes in a clique, all the nodes in that clique see the same pdisk global ID associated with that pdisk. In Summary Mode, the pdisk global ID is -1.

Data Type INTEGER

Invalid Platform

PdiskType

n/a

Type of pdisk. The pdisk can be one of the following: DISK: This type of pdisk is a storage device. FILE: This type of pdisk is a file.

CHAR(4)

PdiskDeviceId

n/a

Identifies the local pdisk device. For DISK pdisk, the pdisk device ID can be one of the following: Linux: This is the pdisk major/minor number. The major number bit positions are 20-31 and the minor number is in bits 0-19. The format is similar to the one shown below. (MMMM MMMM MMMM mmmm mmmm mmmm mmmm mmmm) Windows: This is the pdisk physical disk/ partition number. The physical disk number is in the lower 16 bits and the partition number is in the upper 16 bits. The format is similar to the one shown below. (0000 0000 0000 PPPP DDDD DDDD DDDD DDDD) For FILE pdisk, the pdisk device ID is -1. In Summary Mode, the pdisk device ID is -1.

BYTE(4)

NodeType

n/a

Type of node, representing the per node system family type. For example, 5600C or 5555H.

CHAR(8)

92

Resource Usage Macros and Tables

Chapter 10: ResUsageSpdsk Table

Column Name Secs

Type of Data n/a

Description Actual number of seconds in the log period represented by this row. Normally the same as NominalSecs, but can be different in three cases: The first interval after a log rate change A sample logged late because of load on the system System clock adjustments affect reported Secs Useful for normalizing the count statistics contained in this row, for example, to a persecond measurement.

Data Type SMALLINT

Invalid Platform

CentiSecs

n/a

Number of centiseconds in the logging period. This field is useful when performing data calculations with small elapsed times where the difference between centisecondbased data and whole seconds results in a percentage error. A specified or nominal number of seconds in the logging period. Identifies the summarization status of this row. If the value is N, the row is a nonsummary row. If the value is S, the row is a summary row. In Summary Mode, the rows are summarized into a single row per pdisk type per node. For details, see Summary Mode on page 97.

INTEGER

NominalSecs SummaryFlag

n/a n/a

SMALLINT CHAR

Active

count

Controls whether or not the rows will be logged to the ResUsage tables if Active Row Filter Mode is enabled. If Active is set to: a non-zero value, then the row contains modified data columns. a zero value, then none of the data columns in the row have been updated during the logging period. For example, if Active Row Filter Mode is enabled, then the rows that have a zero Active field value will not be logged to the ResUsage tables.

FLOAT

Resource Usage Macros and Tables

93

Chapter 10: ResUsageSpdsk Table

Column Name CollectIntervals

Type of Data n/a

Description The number of gather periods per reporting period. In the Collect Buffer and Log Buffer, the value is the number of Gather operations that have been performed during the period. This number can vary from one period to the next. STATISTICS COLUMNS

Data Type SMALLINT

Invalid Platform

I/O Statistics Columns These columns identify the I/O statistics reported by the Extent Driver. ReadCnt WriteCnt ReadKB WriteKB ReadRespTot WriteRespTot ReadRespMax WriteRespMax ReadRespSq WriteRespSq ConcurrentReadMax ConcurrentWriteMax ConcurrentMax OutReqTime count count count count count count max max count count max max count count Number of logical device reads. Number of logical device writes. Number of KBs (1024 bytes) read from the logical device. Number of KBs (1024 bytes) written to the logical device. Total of individual read response time in centiseconds. Total of individual write response time in centiseconds. Maximum number of individual read response time in centiseconds. Maximum number of individual write response time in centiseconds. Total of squares of the individual read response time in centiseconds. Total of squares of the individual write response time in centiseconds. Maximum number of concurrent read I/O requests. Maximum number of concurrent write I/O requests. Maximum number of concurrent I/O requests. Time with outstanding requests (busy time), in centiseconds. FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT ALL

94

Resource Usage Macros and Tables

Chapter 10: ResUsageSpdsk Table

Column Name MigrationBlockedIos

Type of Data count

Description Number of inputs and outputs that are blocked due to migration request.

Data Type FLOAT

Invalid Platform

Allocation Columns These columns identify the allocation statistics reported by the Allocator process of the VSS vproc. Note: These columns are populated and used by Teradata VS, an option sold separately from Teradata Database. For detail s about these columns, see Teradata Virtual Storage. Migration Columns The following columns identify the number of cylinders that migrated to a different location on a device as well as the time, in centiseconds, of all migration I/Os used, incurred, or saved during the log period. Note: Each allocation is for a cylinder size worth of data, also known internally in the allocator as an extent. Thus the column names begin with Ext for extent. ExtMigrateFaster count Number of cylinders migrated to a faster location on a device. This count is for cylinders that were allocated on this device and migrated to a different location within the same device or migrated to a completely different device. The following formula calculates a ExtMigrateSlower value, which is the number of cylinders migrated to slower locations: Migrate Slower = ExMigrateTotal ExMigrateFaster. ExtMigrateTotal count Total number of cylinders migrated to a different physical location. For more information, see the ExtMigrateFaster field. Migration read I/O response time. Migration write I/O response time. Estimates the total cost (in centiseconds) incurred by migration I/Os completing during the log period, where cost is the extra time waited by all non-migration I/Os as a result of the migration I/O. The Migrator estimates migration costs. Note: This field is for internal use only. Do not use this field unless directed by Teradata Support Center. FLOAT FLOAT

ExtMigrateReadRespTot ExtMigrateWriteRespTot ExtMigrateIOTimeCost

count count count

FLOAT FLOAT FLOAT

Resource Usage Macros and Tables

95

Chapter 10: ResUsageSpdsk Table

Column Name ExtMigrateIOTimeBenefit

Type of Data count

Description Estimates the total I/O time savings achieved by migrations completing in the log period. The I/O time savings include the improvement in response time caused by the new data arrangement up to the time horizon. ExtMigrateIOTimeBenefit does not include the cost of the migration I/Os and is a gross benefit, not a net benefit. The Migrator estimates the migration benefit. Note: This field is for internal use only. Do not use this field unless directed by Teradata Support Center.

Data Type FLOAT

Invalid Platform

ExtMigrateIOTimeImprove

count

Estimates the percent improvement in average I/O response time due to migrations completing in the log interval. In theory, this percentage improvement is permanent. For example, if, right before a particular log interval, the average I/O response time was 10 milliseconds (ms), then the Migration logs an ExtMigrateIOTimeImprove value of 10% in this interval. The average IO response time after the log interval should be (100%10%)*10ms = 9ms. Migration then logs an ExtMigrateIOTimeImprove of 1% in the next interval. The average I/O response time in the new log interval is (100%-1%)*9ms = 8.91ms. ExtMigrateIOTimeImprove is only an estimate. Its permanent improvement remains in effect as long as the workload does not change and newer migrations do not significantly alter the data arrangement. When the workload changes or new migrations affect data arrangement, response time changes in an un-quantified way. Despite this, ExtMigrateIOTimeImprove is useful because it predicts actual system performance at least for short periods of time and can be used to understand why the migration algorithm is doing what it is doing. Note: This field is for internal use only. Do not use this field unless directed by Teradata Support Center.

FLOAT

96

Resource Usage Macros and Tables

Chapter 10: ResUsageSpdsk Table Summary Mode

Summary Mode
When Summary Mode is active for the ResUsageSpdsk table, rows are summarized into a single row for each pdisk type (for example, DISK or FILE) for each node in the system per log interval. You can determine if a row is in Summary Mode by checking the SummaryFlag column for that row.
IF the SummaryFlag column value is S N THEN the data for that row is being logged in Summary Mode. normally.

Spare Columns
The ResUsageSpdsk table has 30 spare columns (one of which is being used) as shown in the table below.
Column Name SpareCount[00-09] SpareTrack[00-09] SpareTmon00 Type of Data count track n/a Description Spare counted statistic. Spare tracked statistic. The SpareTmon00 field contains the COD value. The value represents the COD value in one tenths of a percent, so a displayed value of 500 represents a COD value of 50.0%. Note: This value is valid only on SUSE Linux Enterprise Server 10 systems and is a single value for the entire system. SpareTmon[01-09] count Spare time monitored statistic.

The spare column fields expand to values 0009, so that column names would be SpareCount00, SpareTrack02, SpareTmon05 and so on.

Resource Usage Macros and Tables

97

Chapter 10: ResUsageSpdsk Table Spare Columns

98

Resource Usage Macros and Tables

CHAPTER 11

ResUsageSps Table

The ResUsageSps table contains data by Performance Group from the Priority Scheduler. It allows you to see accumulated CPU, number of active processes, and other detail by Priority Scheduler Allocation Group. The ResUsageSps table carries information that is similar to what is displayed in Priority Scheduler monitor output. Information carried in the table is organized by: Collection date/time Node Vproc Type Performance Group Performance Period/Allocation Group

For those using Teradata ASM, each Workload Definition is the equivalent of one Performance Group in ResUsageSps. For a complete description of the Priority Scheduler and its components, see "Priority Scheduler (schmon)" chapter in Utilities. If table logging is enabled on ResUsageSps, a row is written to the database once for every triplet of Vproc Type, Performance Group ID, and Performance Period ID (VprType, PGId, PPId) in the system for each log interval. Note: This table is created as a MULTISET table. The following table describes the ResUsageSps table columns.
Type of Data Invalid Platform

Column Name

Description HOUSEKEEPING COLUMNS

Data Type

RELATIONAL PRIMARY INDEX COLUMNS These columns taken together form the nonunique primary index. TheDate TheTime n/a n/a Date of the log entry. Nominal time of the log entry. Note: Under conditions of heavy system load, entries may be logged late (typically, by no more than one or two seconds), but this column will still contain the time value when the entry should have been logged. See the Secs and NominalSecs columns. DATE FLOAT

Resource Usage Macros and Tables

99

Chapter 11: ResUsageSps Table

Column Name NodeId

Type of Data n/a

Description Identifies the Node upon which the vproc resides. The Node ID is formatted as CCCMM, where CCC denotes the three-digit cabinet number and MM denotes the twodigit chassis number of the node. For example, a node in chassis 9 of cabinet 3 has a node ID of 003-09. Note: SMP nodes have a chassis and cabinet number of 1. For example, the node ID of an SMP node is 001-01.

Data Type INTEGER

Invalid Platform

MISCELLANEOUS HOUSEKEEPING COLUMNS GmtTime n/a Greenwich Mean Time is not affected by the Daylight Savings Time adjustments that occur twice a year. Type of node, representing the per node system family type. For example, 5600C or 5555H. Note: This column is obsolete. Identifies the vproc number. Multiple Vprocs contribute to each Performance Group task. The VprId value is -1. PPId n/a Identifies the performance period. The PPId is a mapping of the internal performance period value (ranges 0 to 7) to a RSS value (ranges 0 to 1). A PPId of 0 maps to the value 0, and the PPId of 1 maps to the values 1 through 7. The PPId column allows RSS to log two rows for each node, VprType, and PGId set when a PGId uses more than one AGId during a logging period. See the AGId column for more information. VprType n/a Type of vproc (for example, AMP, PE, and MISC). CHAR(4) BYTEINT FLOAT

NodeType

n/a

CHAR(8)

VprId

n/a

INTEGER

100

Resource Usage Macros and Tables

Chapter 11: ResUsageSps Table

Column Name PGId

Type of Data n/a

Description Identifies the Performance Group. There is a one to one mapping between a Performance Group ID and a Workload Definition ID at any point in time. The Performance Group ID value ranges from 0 to 250, while the value of a Workload Definition ID is not in a specific range (that is, the value is incremented and not reused). The mapping between Performance Group ID and Workload Definition ID can be determined by looking at the Teradata Viewpoint Workload Designer portlet or the TDWM.WlcPerfGroupMappings table.

Data Type SMALLINT

Invalid Platform

WDId

track

Workload Definition ID number. 0 indicates there is no WDId associated with the PG. Use this column to obtain the WD name from the WLcdefs table of the Teradata Dynamic Workload Management database by joining ResUsageSps.WDId with WLcdefs.WlcId. The resulting join table outputs the WD name from WLcdefs.WlcName field.

FLOAT

Secs

n/a

Actual number of seconds in the log period represented by this row. Normally the same as NominalSecs, but can be different in three cases: The first interval after a log rate change A sample logged late because of load on the system System clock adjustments affect reported Secs Useful for normalizing the count statistics contained in this row, for example, to a persecond measurement.

SMALLINT

CentiSecs

n/a

Number of centiseconds in the logging period. This column is useful when performing data calculations with small elapsed times where the difference between centisecond-based data and whole seconds results in a percentage error. A specified or nominal number of seconds in the logging period.

INTEGER

NominalSecs

n/a

SMALLINT

Resource Usage Macros and Tables

101

Chapter 11: ResUsageSps Table

Column Name NCPUs

Type of Data n/a

Description Number of CPUs on this node. This column is useful for normalizing the CPU utilization column values for the number of CPUs on the node. This is especially important in coexistence systems where the number of CPUs can vary across system nodes.

Data Type SMALLINT

Invalid Platform

SummaryFlag

n/a

Identifies the summarization status of this row. If the value is N, the row is a nonsummary row. If the value is S, the row is a summary row. Controls whether or not the Performance Group ID rows will be logged to the ResUsage tables when Active Row Filter Mode is enabled. If Active is set to: A non-zero value, then the Performance Group ID row contains modified data columns. A zero value, then none of the data columns in the Performance Group ID row have been updated during the logging period.

CHAR

Active

count

FLOAT

CollectIntervals

n/a

The number of gather periods per reporting period. In the Collect Buffer and Log Buffer, the value is the number of Gather operations that have been performed during the period. This number can vary from one period to the next.

SMALLINT

102

Resource Usage Macros and Tables

Chapter 11: ResUsageSps Table

Column Name

Type of Data

Description STATISTICS COLUMNS TERADATA ASM COLUMNS

Data Type

Invalid Platform

Priority Scheduler Columns The following columns provide a summary of the Priority Scheduler resource usage statistics. AGId track Identifies the current Allocation Group for the Performance Group ID that is being reported. This value can be any number from 0 to 200. Note: A value of 200 is the system Allocation Group. This value cannot be assigned for user work. For more information on the Allocation Group (AG), see "Priority Scheduler (schmon)" chapter in Utilities. RelWgt track Weight of the Allocation Group relative to the active Allocation Groups of the Resource Partition and the active Resource Partitions. Note: Allocation Groups with higher relative weights will have quicker access to system resources. For more information on allocation group weights, see the "Priority Scheduler (schmon)" chapter in Utilities. CPUTime count Milliseconds of CPU time consumed by all tasks that have the same VprType, PGId, and PPId values for a reporting period. Number of logical data blocks read or written by Performance Group, or both. Number of tasks assigned to the Performance Group at the end of the gather period. Number of Scheduling Sets per PG/PPid combination. There is one Scheduling Set per session. Number of AWT messages/requests that got assigned AWTs to them on the node. FLOAT FLOAT FLOAT

IOBlks NumProcs

count track

FLOAT FLOAT

NumSets

track

FLOAT

NumRequests

count

FLOAT

Resource Usage Macros and Tables

103

Chapter 11: ResUsageSps Table

Column Name QWaitTime

Type of Data count

Description Total time for all messages delivered in the period (if not delivered then not counted). Divide by NumRequests to obtain the average QwaitTime per Request. This column is reported in DBC.ResSpsView as QWaitTimeRequestAvg.

Data Type FLOAT

Invalid Platform

QWaitTimeMax

max

Maximum time in milliseconds that work requests waited on an input queue before being serviced. Sum of the average number of work requests waiting on the input queue for service. This value is derived each gather period from QWaitTime by dividing by the sample period and rounding the value. The values from each gather period are then summed together. To use this column, always divide QLength by the AMPcount to get the desired average Qlength per AMP. The Average number of work requests waiting on the input queue for service = QLength /(CollectIntervals * SpareTrack00).

FLOAT

QLength

count

FLOAT

QLengthMax

max

Maximum number of work requests waiting on the input queue for service. This value is derived by dividing the number of AMPs to display the maximum per AMP average number of work requests waiting on the input queue for service = QLengthMax / SpareTrack00.

FLOAT

ServiceTime

count

Time in milliseconds that work requests required for service. To calculate an approximate average ServiceTime for each request during this period, divide ServiceTime by NumRequests. The service time is the elapsed time from the time the message was received to the time the AWT was released. This is the amount of time the AWT was held through sleeps, CPU, I/O, and so on until it is released.

FLOAT

ServiceTimeMax

max

Maximum time in milliseconds that work requests required for service.

FLOAT

104

Resource Usage Macros and Tables

Chapter 11: ResUsageSps Table

Column Name

Type of Data

Description

Data Type

Invalid Platform

PROCESS SCHEDULING COLUMNS CPU Utilization Columns The following columns represent CPU activities on the node associated with the AWT, Dispatcher, Parser, or miscellaneous things. CPUUServAWT count Time in milliseconds CPUs are busy in the AWT executing user service code. This is the system level time spent on a process. Time in milliseconds CPUs are busy in the Dispatcher or Parser executing user service code. This is the system level time spent on a process. Time in milliseconds CPUs are busy in the Parser executing user service code. This is the system level time spent on a process. Time in milliseconds CPUs are busy executing miscellaneous activities for user service code. This is the system level time spent on a process. Time in milliseconds CPUs are busy in the AWT executing user execution code. This is the user level time spent on a process. Time in milliseconds CPUs are busy in the Dispatcher or Parser executing user execution code. This is the user level time spent on a process. Time in milliseconds CPUs are busy in the Parser executing user execution code. This is the user level time spent on a process. Time in milliseconds CPUs are busy executing miscellaneous activities for user execution code. This is the user level time spent on a process. FILE SYSTEM COLUMNS Cylinder Read Columns The following columns represent file system resource usage statistics. The Cylinder Read feature uses these statistics for tracking performance and utilization. FLOAT

CPUUServDisp

count

FLOAT

CPUUServPars

count

FLOAT

ALL

CPUUServMisc

count

FLOAT

CPUUExecAWT

count

FLOAT

CPUUExecDisp

count

FLOAT

CPUUExecPars

count

FLOAT

ALL

CPUUExecMisc

count

FLOAT

Resource Usage Macros and Tables

105

Chapter 11: ResUsageSps Table

Column Name FileFcrRequests

Type of Data count

Description Total number of requests for the File System to use Cylinder Read. This column is tracked and recorded by the File System. It records the number of attempts to use Cylinder Read independent of whether the request will be issued to FSG or not. A request can be denied due to insufficient data blocks or because there is insufficient space in the FSG cache. Requests can also be denied at both the user and kernel level. Each of these items is counted in other FileFcr ResUsage columns. A number of calculations can be performed using this column: Requests issued to FSG = FileFcrRequests - FileFcrDeniedUser Successful Cylinder Reads = FileFcrRequests - FileFcrDeniedUser FileFcrDeniedKern

Data Type FLOAT

Invalid Platform ALL

FileFcrRequestsAdaptive

count

Number of adaptive requests from File System. This column is tracked and recorded by the File System. It records the number of requests for adaptive-style Cylinder Reads.

FLOAT

ALL

FileFcrBlocksRead

count

Number of data blocks read in using Cylinder Read. This column is tracked and recorded by the FSG subsystem. It records the total number of data blocks read in by successful Cylinder Read operations. The average number of data blocks in a successful Cylinder read can be calculated as: Average data blocks/ Cylinder Read = FileFcrBlocksRead / (FileFcrRequests FileFcrDeniedUser - FileFcrDeniedKern)

FLOAT

ALL

106

Resource Usage Macros and Tables

Chapter 11: ResUsageSps Table

Column Name
FileFcrBlocksDeniedUser

Type of Data count

Description Number of data blocks in the Cylinder Read requests denied by the File System. This column is tracked and recorded by the File System. It records the number of Cylinder Read attempts that have been denied by the File System. A request can be denied by the File System due to insufficient number of data blocks being requested (for example, the FileFcrDeniedThreshUser column). For information, see the FileFcrDeniedThreshUser column.

Data Type FLOAT

Invalid Platform ALL

FileFcrBlocksDeniedKern

count

Number of data blocks in the Cylinder Read requests denied by the FSG subsystem. This column is tracked and recorded by the FSG subsystem. It records the number of Cylinder Read requests issued to the FSG subsystem which, for any reason, have been denied. A request can be denied due to insufficient data blocks (for example, the FileFcrDeniedThreshKern column) or because there is insufficient space in the FSG cache (for example, the FileFcrDeniedCache column). The FSG subsystem can reject a request containing insufficient data blocks that the File System thought had enough blocks because the FSG subsystem reduces the count by the number of data blocks that are already resident in the cache.

FLOAT

ALL

FileFcrBlocksDeniedCache

count

Number of data blocks in the Cylinder Read requests rejected by the FSG subsystem due to insufficient cache. This column is tracked and recorded by the FSG subsystem. It records the number of data blocks that were part of attempts to use Cylinder read that were denied by the FSG subsystem due to insufficient cache space; therefore, also incremented the FileFcrDeniedCache column.

FLOAT

ALL

Resource Usage Macros and Tables

107

Chapter 11: ResUsageSps Table

Column Name FileFcrBlocksDeniedThreshUser

Type of Data count

Description Number of data blocks in the Cylinder Read requests denied by the File System due to insufficient data blocks. This column is tracked and recorded by the File System. It records the number of Cylinder Read requests which have been denied due to the data block threshold criteria. There is a minimum threshold of data blocks for an individual Cylinder Read request. If the number of data blocks is below this threshold, the overhead of the Cylinder Read operation is considered too large and issuing individual data block reads is considered more efficient. Therefore, the Cylinder Read request is denied.

Data Type FLOAT

Invalid Platform ALL

FileFcrDeniedUser

count

Number of Cylinder Read requests denied by the File System. This column is tracked and recorded by the File System. It records the number of Cylinder Read attempts that have been denied by the File System. A request can be denied by the File System due to insufficient number of data blocks being requested (for example, the FileFcrDeniedThreshUser column). For information, see the FileFcrDeniedThreshUser column description.

FLOAT

ALL

FileFcrDeniedKern

count

Number of Cylinder Read requests denied by the FSG subsystem. This column is tracked and recorded by the FSG subsystem. It records the number of Cylinder Read requests issued to the FSG subsystem which, for any reason, have been denied. A request can be denied due to insufficient data blocks (for example, the FileFcrDeniedThreshKern column) or because there is insufficient space in the FSG cache (for example, the FileFcrDeniedCache column). The FSG subsystem can reject a request containing insufficient data blocks that the File System thought had enough blocks because the FSG subsystem reduces the count by the number of data blocks that are already resident in the cache.

FLOAT

ALL

108

Resource Usage Macros and Tables

Chapter 11: ResUsageSps Table

Column Name FileFcrDeniedCache

Type of Data count

Description Number of Cylinder Read requests denied by FSG due to insufficient cache. This column is tracked and recorded by FSG. It records the number of Cylinder Read requests which have been denied due to insufficient FSG cache space for a cylinders worth of data.

Data Type FLOAT

Invalid Platform ALL

FileFcrDeniedThreshUser

count

Number of Cylinder Read requests denied by the File System due to insufficient data blocks. This column is tracked and recorded by the File System. It records the number of Cylinder Read requests which have been denied due to the data block threshold criteria. There is a minimum threshold of data blocks for an individual Cylinder Read request. If the number of data blocks is below this threshold, the overhead of the Cylinder Read operation is considered too large and issuing individual data block reads is considered more efficient. Therefore, the Cylinder Read request is denied.

FLOAT

ALL

Segment Acquires Columns The following columns identify the total disk memory segments acquired by the file system during the log period. Logical acquires (Acqs) and the logical amount acquired (AcqKB) are described by single entries below, each of which expands into six actual columns, where [seg] is replaced as follows: PDb = Permanent data block disk segments PCi = Permanent cylinder index disk segments SDb = Regular or restartable spool data block disk segments SCi = Regular or restartable spool index disk segments Tjt = Transient journal table APt = Append table or permanent journal table data block or cylinder index disk segments File[seg]Acqs File[seg]AcqKB File[seg]AcqReads File[seg]AcqReadKB count count count count Total number of disk segments acquired. Total KBs acquired by File[seg]Acqs. Number of disk segment acquires that caused a physical read. KBs physically read by File[seg]AcqReads. FLOAT FLOAT FLOAT FLOAT

Resource Usage Macros and Tables

109

Chapter 11: ResUsageSps Table

Column Name

Type of Data

Description

Data Type

Invalid Platform

Data Block Prefetches Columns The following columns identify File Segment Prefetch activities. File segments prefetches are described by single entries below, each of which expands into six actual columns, where [seg] is replaced as follows: PDb = Permanent data block disk segments PCi = Permanent cylinder index disk segments SDb = Regular or restartable spool data block disk segments SCi = Regular or restartable spool index disk segments Tjt = Transient journal table APt = Append table or permanent journal table data block or cylinder index disk segments File[seg]Pres File[seg]PresKB File[seg]PreReads File[seg]PreReadKB count count count count Total number of disk segments prefetched. Total number of KBs prefetched by File[seg]Pres. Total number of disk segment prefetches that caused a physical read. Total number of KBs physically read by File[seg]PreReads. FLOAT FLOAT FLOAT FLOAT

Segments Released Columns The following columns identify the total disk memory segments released by the file system, as well as those segments that are dropped from memory during the log period. When a segment is release, the segment is either: Force out of memory (F) Remains resident in memory (R) Aged out of memory (A), from segments that remain resident Both the number of segments (Rels, Writes, Drps) and the size of the segments (RelKB, WriteKB, DrpKB) are counted. When a segment leaves memory, it must be written to disk only if the segment is dirty, that is, modified (Dy). Otherwise, the clean or unmodified (Cn) segment is simply dropped. (Most spool blocks are simply dropped from a task and put on the age queue. This may happen multiple times. Each of these will be counted as a resident release. If the system is low on memory and the age queue must be processed, this may also result in an age write or age drop. Forced writes are always also counted as either clean resident releases or forced drops, depending on whether age normal or age out now was specified.) Disk segment memory types are described by single entries below, each of which expands into six actual columns, where [seg] is replaced as follows: PDb = Permanent data block disk segments PCi = Permanent cylinder index disk segments SDb = Regular or restartable spool data block disk segments SCi = Regular or restartable spool cylinder index disk segments TJt = Transient journal table or WAL data block or WAL cylinder index APt = Append table or permanent journal table data block or cylinder index disk segments count Number of dirty disk segment resident releases. FLOAT

File[seg]DyRRels

110

Resource Usage Macros and Tables

Chapter 11: ResUsageSps Table

Column Name File[seg]DyRRelKB File[seg]FWrites

Type of Data count count

Description KBs released by File[seg]DyRRels. Number of disk segment forced releases or specific I/O requests causing an immediate physical write. Includes spool data that is aged out immediately and permanent data that is written immediately. KBs written by File[seg]FWrites.

Data Type FLOAT FLOAT

Invalid Platform

File[seg]FWriteKB

count

FLOAT

Cylinder Management Overhead Events Columns The following columns identify the number of times the file system software performed a cylinder management event. The table ResUsageIvpr further breaks down the I/Os associated with these events. See Appendix C: ResUsageIvpr Table. FileCylMigrs FileCylAllocs count count Number of cylinder migrations. Number of new cylinders allocated. Note: A new cylinder allocation event implies one logical cylinder index read and one logical cylinder index write. Synchronized Full File Scans Columns The following columns contain statistics relating to synchronized full-file scans. FileSyncScans FileSyncSubtables count track Number of attempts to synchronize a full file scan. Number of subtables scanned by one or more full file scanners who are willing to synchronize scans. Number of tasks involved in full file scans who are willing to synchronize with other scanners. Number of groups of scanners involved in full file scans. A group consists of scanners who are able to use the same read I/O to obtain data from disk. FLOAT FLOAT ALL ALL FLOAT FLOAT ALL ALL

FileSyncScanners

track

FLOAT

ALL

FileSyncGroups

track

FLOAT

ALL

ChnSignal Status Tracking columns The following columns track the chnsignal last done status (or track slowest vproc on the system for processing AMP steps). MsgChnLastDone count The number of last done events that occurred for this vproc. Note: The last AMP to finish an operation may send a last done broadcast message indicating the work is done for this step. This is used in tracking down the slowest AMP in the system. An AMP that has more last done messages than the others could be a bottleneck in the system performance. FLOAT ALL

Resource Usage Macros and Tables

111

Chapter 11: ResUsageSps Table

Column Name

Type of Data

Description

Data Type

Invalid Platform

Memory Allocation Columns The following columns represent the number and amount of memory allocations, subdivided into (the only applicable) generic node memory type. MemAllocs MemAllocKB MemCtxtAllocs count count count Number of successful SEG memory allocations. Total KBs attributed to SEG memory allocations. Number of successful SWAP memory allocations. Note: Only scratch pages are allocated. MemKBRes count The amount of memory resident that is specific to virtual processor activities. FLOAT ALL FLOAT FLOAT FLOAT ALL

Amp Worker Task Columns The following columns collect and report statistics about the AWTs. For more information about the ResUsageSawt table and columns, see Chapter 7: ResUsageSawt Table. Note: The system writes the data to the database once for every triplet of Vproc Type, Performance Group ID, and Performance Period ID (VprType, PGId, PPId). The data is reporting the contribution of the respective WD to the column and the values are not the same as the values reported in the ResUsageSawt table. The ResUsageSps table values should add up to the ResUsageSawt table for columns like WorkTypeInuse. The Max columns will not be able to be correlated to the ResUsageSawt table Max values in such a direct way since the ResUsageSps Max columns report the Max value of the ResUsageSps table InUse column for the WD and not the Max value of the ResUsageSawt table for all the WDs combined. FlowControlled count Number of times this log period that system entered the flow control state from a nonflow controlled state. Number of AWTs currently in flow control on the work input mailbox. Current number of AWTs in use during the log period for each work type for the WD (PGid/VprType/PPid triplet). FLOAT ALL

FlowCtlCnt WorkTypeInuse00 WorkTypeInuse15

count count

FLOAT FLOAT

ALL

112

Resource Usage Macros and Tables

Chapter 11: ResUsageSps Table

Column Name WorkTypeMax00 WorkTypeMax15

Type of Data max

Description The value reported is the maximum of the WorkTypeInuse values seen at the end of each gather period during the reporting period. If only a single gather period occurs during the reporting period, the WorkTypeMax and WorkTypeInUse columns would report the same value. When multiple gather periods occur during the reporting period the value is the maximum of the sampled values. This is therefore a maximum sampled value. The true maximum number of inuse AWTs of a WorkType may occur at a different time during the reporting period and not be seen at the end of the gather period and therefore not be reported. Maximum number of AWTs in use at one time during the log period for each work type for the WD (PGid/VprType/PPid triplet). NET COLUMNS

Data Type FLOAT

Invalid Platform

Point-to-Point Net Traffic Columns The following columns identify the number (Reads, Writes) and amount (ReadKB, WriteKB) of input and output messages passing through either Teradata Database net through point-to-point (1:1) methods (PtP). Note: The system writes the data to the database once for every triplet of Vproc Type, Performance Group ID, and Performance Period ID (VprType, PGId, PPId). NetPtPReads NetPtPWrites NetPtPReadKB NetPtPWriteKB count count count count Number of point-to-point messages input to the vproc on behalf of the WD. Number of point-to-point messages output from the vproc on behalf of the WD. Total KBs of point-to-point messages input to the vproc on behalf of the WD. Total KBs of point-to-point messages output to the vproc on behalf of the WD. FLOAT FLOAT FLOAT FLOAT

Broadcast Net Traffic Columns The following columns identify the number (Reads, Writes) and amount (ReadKB, WriteKB) of input and output messages passing through the Teradata Database nets through broadcast (1:many) methods (Brd) per net. NetBrdReads NetBrdWrites count count Number of broadcast messages input to the vproc. Number of broadcast messages output from the vproc. FLOAT FLOAT

Resource Usage Macros and Tables

113

Chapter 11: ResUsageSps Table

Column Name

Type of Data

Description

Data Type

Invalid Platform

Allocator Columns The following columns identify the number of requests or I/Os from the Allocator.
AllocatorExtentAllocReqs

count count count count

Number of cylinder allocation requests received by the allocator. Number of cylinder free requests received by the allocator. Number of map I/Os initiated by the allocator. Number of map I/Os completed by the allocator.

FLOAT FLOAT FLOAT FLOAT

ALL ALL ALL ALL

AllocatorExtentFreeReqs AllocatorMapIOsStarted AllocatorMapIOsDone

Node Agent Columns The following columns identify the migration and buffer processing statistics reported by the Node Agent. NodeAgentMigrationsStarted NodeAgentMigrationsDone
NodeAgentStatProcessed

count count count

Number of migration requests started by the Node Agent. Number of migration requests completed by the Node Agent. Number of statistics buffers processed by the Node Agent.

FLOAT FLOAT FLOAT

ALL ALL ALL

I/O Columns These columns identify the I/O statistics reported from the extent driver. Note: These columns are populated and used by Teradata VS, an option sold separately from Teradata Database. Associated configuration settings appear in the ctl utility if you purchased Teradata Virtual Storage. For details about these columns, see Teradata Virtual Storage. Write Ahead Logging Columns The following columns identify the log-based file system recovery scheme in which modifications to permanent data are written to a log file, the WAL log. FileWCylAllocs FileWCylFrees count count Number of new WAL cylinders allocated. Number of times the file system logically frees a cylinder. FLOAT FLOAT ALL ALL

114

Resource Usage Macros and Tables

Chapter 11: ResUsageSps Table

Column Name

Type of Data

Description

Data Type

Invalid Platform

Process Blocking and Waiting Columns The following columns count of blocks and wait time in milliseconds where [reason] is replaced with one of the following: SegNoVirtual FsgNIOs SegMDL MonResume NetThrottle Qnl FsgRead FsgWrite DBLock Monitor SegLock FsgLock Time FlowControla CpuLimitb Misc

For example, columns can appear as ProcBlksSegNoVirtual, ProcBlksMisc, ProcWaitSegNoVirtual, and so on. The following column definition descriptions can be found in the ResUsageSpma table descriptions of the same names except where noted. ProcBlks[reason] count Number of times processes were blocked. Note: ProcBlksDBLock is invalid on all platforms. ProcWait[reason] count Total time processes were blocked pending. Note: ProcWaitDBLock is invalid on all platforms.
a. FlowControl refers to the delays caused by the flow control conditions. b. CpuLimit refers to delays due to the Priority Scheduler CPU Limits (System Limit, AG Limit, or RP Limit).

FLOAT

FLOAT

Resource Usage Macros and Tables

115

Chapter 11: ResUsageSps Table Spare Columns

Spare Columns
The ResUsageSps table has 30 spare columns (several of which are being used) as shown in the table below.

Column Name SpareCount[00-05]

Type of Data count

Description The following SpareCount columns will be converted to the specified column names in Teradata Database 14.0: SpareCount00 = WorkMsgSendDelay. This column reports the total time in milliseconds for all messages delivered in a period (if the messages are not sent yet, then they are not counted). SpareCount01 = WorkMsgSendDelayMax. This column reports the longest time in milliseconds seen or still waiting at sample time (if the messages are not sent yet, then they are not counted). SpareCount02 = WorkMsgReceiveDelay. This column reports the time for all messages not yet delivered at the end of each gather period. This column is related to the QWaitTime column and represents a running total of delays attributed to the tasks that still have not been assigned an AWT within this interval. When the task does receive an AWT in a later interval, the time attributed here will be counted again within QWaitTime of the interval where it was assigned an AWT. SpareCount03 = WorkMsgReceiveDelayMax. This column reports the maximum delay time in milliseconds for messages that are still in the work box. SpareCount04 = WorkTimeInuse. This column reports service time consumed by a WD during the current reporting interval. It can be used to calculate the average usage of AWTs during the reporting period, for example: Average AWTs used = WorkTimeInuse/ (Centisecs*10) This value is available in the ResSpsView as AwtUsedAvg. Note: WorkTimeInUse is not the running sum of a WD that exists over multiple intervals. SpareCount05 = WorkTimeInuseMax. This column reports the maximum service time of a single task in a WD that is still running or has finished in the current reporting interval. This includes time used during previous intervals for that task. If you use the spare columns above, see ResSpsView on page 159.

116

Resource Usage Macros and Tables

Chapter 11: ResUsageSps Table Spare Columns

Column Name SpareCount[06 and 09] SpareCount[07-08]

Type of Data count count

Description Spare counted statistic. The following SpareCount columns will be converted to the specified column names in Teradata Database 14.0: SpareCount07 = WorkMsgSendDelayCnt. This column reports the number of messages that are delivered to the work box. SpareCount08 = WorkMsgReceiveDelayCnt. This column reports the number of messages that are still waiting for AWTs at the end of each gather period.

SpareTrack00

track

SpareCount00 will be converted to the column name AMPcount in Teradata Database 14.0. AMPcount is the number of AMPs on the Node. AMPcount is used to divide columns that are reporting data from all the AMPs. This allows the ResSpsView view to report the data columns on a per AMP basis. See ResSpsView on page 159 for an example of the view. Spare tracked statistic. The SpareTmon00 column contains the COD value. The value represents the COD value in one tenths of a percent, so a displayed value of 500 represents a COD value of 50.0%. Note: This value is valid only on SUSE Linux Enterprise Server 10 systems and is a single value for the entire system.

SpareTrack[01-09] SpareTmon00

track n/a

SpareTmon[01-09]

count

Spare time monitored statistic.

The spare column fields expand to values 0009, so that column names would be SpareCount00, SpareTrack09, SpareTmon03, and so on.

Resource Usage Macros and Tables

117

Chapter 11: ResUsageSps Table Spare Columns

118

Resource Usage Macros and Tables

CHAPTER 12

ResUsageSvdsk Table

The ResUsageSvdsk table: Provides AMP-level storage statistics. Includes resource usage logs on cylinder allocation, migration, and I/O statistics.

If table logging is enabled on ResUsageSvdsk, a row is written to the database once for every AMP vproc in the system for each log interval. To consolidate and summarize the total number of rows written to the database, you can enable Summary Mode. For details, see Summary Mode on page 124. Note: This table is created as a MULTISET table. The following table describes the ResUsageSvdsk table columns.
Invalid Platform

Column Name

Type of Data

Description HOUSEKEEPING COLUMNS

Data Type

RELATIONAL PRIMARY INDEX COLUMNS These columns taken together form the nonunique primary index. TheDate TheTime n/a n/a Date of the log entry. Nominal time of the log entry. Note: Under conditions of heavy system load, entries may be logged late (typically, by no more than one or two seconds), but this column will still contain the time value when the entry should have been logged. See the Secs and NominalSecs columns. NodeId n/a Identifies the Node upon which the vproc resides. The Node ID is formatted as CCCMM, where CCC denotes the three-digit cabinet number and MM denotes the two-digit chassis number of the node. For example, a node in chassis 9 of cabinet 3 has a node ID of 003-09. Note: SMP nodes have a chassis and cabinet number of 1. For example, the node ID of an SMP node is 001-01. INTEGER DATE FLOAT

Resource Usage Macros and Tables

119

Chapter 12: ResUsageSvdsk Table

Column Name

Type of Data

Description

Data Type

Invalid Platform

MISCELLANEOUS HOUSEKEEPING COLUMNS GmtTime n/a Greenwich Mean Time is not affected by the Daylight Savings Time adjustments that occur twice a year. Identifies the AMP vproc. The AMP vproc ID is numbered upward from 0. The maximum value is 8191. In Summary Mode, the value of the AMP vproc ID is -1. NodeType Secs n/a n/a Type of node, representing the per node system family type. For example, 5600C or 5555H. Actual number of seconds in the log period represented by this row. Normally the same as NominalSecs, but can be different in three cases: The first interval after a log rate change A sample logged late because of load on the system System clock adjustments affect reported Secs Useful for normalizing the count statistics contained in this row, for example, to a persecond measurement. CentiSecs n/a Number of centiseconds in the logging period. This column is useful when performing data calculations with small elapsed times where the difference between centisecond-based data and whole seconds results in a percentage error. A specified or nominal number of seconds in the logging period. Identifies the summarization status of this row. If the value is N, the row is a non-summary row. If the value is S, the row is a summary row. In Summary Mode, the rows are summarized into a single row. For details, see Summary Mode on page 124. INTEGER CHAR(8) SMALLINT FLOAT

VprId

n/a

INTEGER

NominalSecs SummaryFlag

n/a n/a

SMALLINT CHAR

120

Resource Usage Macros and Tables

Chapter 12: ResUsageSvdsk Table

Column Name Active

Type of Data count

Description Controls whether or not the rows will be logged to the ResUsage tables if Active Row Filter Mode is enabled. If Active is set to: a non-zero value, then the row contains modified data columns. a zero value, then none of the data columns in the row have been updated during the logging period. For example, if Active Row Filter Mode is enabled, then the rows that have a zero Active column value will not be logged to the ResUsage tables.

Data Type FLOAT

Invalid Platform

CollectIntervals

n/a

The number of gather periods per reporting period. In the Collect Buffer and Log Buffer, the value is the number of Gather operations that have been performed during the period. This number can vary from one period to the next. STATISTICS COLUMNS I/O Statistics Columns

SMALLINT

The following columns identify the I/O statistics reported by FSG for each AMP. ReadCnt WriteCnt ReadKB WriteKB ReadRespTot WriteRespTot ReadRespMax WriteRespMax ReadRespSq WriteRespSq count count count count count count max max count count Number of logical device reads. Number of logical device writes. Number of KBs (1024 bytes) read from the logical device. Number of KBs (1024 bytes) written to the logical device. Total of individual read response time in centiseconds. Total of individual write response time in centiseconds. Maximum number of individual read response time in centiseconds. Maximum number of individual write response time in centiseconds. Total of squares of the individual read response time in centiseconds. Total of squares of the individual write response time in centiseconds. FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT

Resource Usage Macros and Tables

121

Chapter 12: ResUsageSvdsk Table

Column Name ConcurrentReadMax ConcurrentWriteMax ConcurrentMax OutReqTime

Type of Data max max max count

Description Maximum number of concurrent read I/O requests. Maximum number of concurrent write I/O requests. Maximum number of concurrent I/O requests. Time with outstanding requests (busy time), in centiseconds. Allocation Columns

Data Type FLOAT FLOAT FLOAT FLOAT

Invalid Platform

These columns identify the allocation statistics reported by the Allocator process of the VSS vproc. Note: These columns are populated and used by Teradata VS, an option sold separately from Teradata Database. For details about these columns, see Teradata Virtual Storage. Migration Columns The following columns identify the number of cylinders that migrated to a different location on a device as well as the time, in centiseconds, of all migration I/Os used, incurred, or saved during the log period. Note: Each allocation is for a cylinder size worth of data, also known internally in the allocator as an extent. Thus the column names begin with Ext for extent. ExtMigrateFaster count Number of cylinders migrated to faster locations (that is, migrations whose gross benefits are positive) for the associated AMP. The following formula calculates a Slower Migration value, which is the number of cylinders migrated to slower locations: Slower Migration = ExtMigrateTotal ExtMigrateFaster Cylinders are migrated to slower locations to make room for hotter cylinders to replace them. ExtMigrateTotal count Total number of cylinders migrated to a different physical location. For more information, see the ExtMigrateFaster column. Migration read I/O response time. Migration write I/O response time. Estimates the total cost (in centiseconds) incurred by migration I/Os completing during the log period, where cost is the extra time waited by all non-migration I/Os as a result of the migration I/O. The Migrator estimates migration costs. Note: This column is for internal use only. Do not use this column unless directed by Teradata Support. FLOAT FLOAT

ExtMigrateReadRespTot ExtMigrateWriteRespTot ExtMigrateIOTimeCost

count count count

FLOAT FLOAT FLOAT

122

Resource Usage Macros and Tables

Chapter 12: ResUsageSvdsk Table

Column Name ExtMigrateIOTimeBenefit

Type of Data count

Description Estimates the total I/O time savings achieved by migrations completing in the log period. The I/O time savings include the improvement in response time caused by the new data arrangement up to the time horizon. This value does not include the cost of the migration I/Os and is a gross benefit, not a net benefit. The Migrator estimates the migration benefit. Note: This column is for internal use only. Do not use this column unless directed by Teradata Support.

Data Type FLOAT

Invalid Platform

ExtMigrateIOTimeImprove

count

Estimates the percent improvement in average I/O response time due to migrations completing in the log interval. In theory, this percentage improvement is permanent. For example, if, right before a particular log interval, the average I/O response time was 10 milliseconds (ms), then the Migration logs an ExtMigrateIOTimeImprove value of 10% in this interval. The average I/O response time after the log interval should be (100%10%)*10ms = 9ms. Migration then logs an ExtMigrateIOTimeImprove of 1% in the next interval. The average I/O response time in the new log interval is (100%-1%)*9ms = 8.91ms. ExtMigrateIOTimeImprove is only an estimate. Its permanent improvement remains in effect as long as the workload does not change and newer migrations do not significantly alter the data arrangement. When the workload changes or new migrations affect data arrangement, response time changes in an unquantifiable way. Despite this, ExtMigrateIOTimeImprove is useful because it predicts actual system performance at least for short periods of time and can be used to understand why the migration algorithm is doing what it is doing. Note: This column is for internal use only. Do not use this column unless directed by Teradata Support.

FLOAT

Resource Usage Macros and Tables

123

Chapter 12: ResUsageSvdsk Table Summary Mode

Summary Mode
When Summary Mode is active for the ResUsageSvdsk table, one row is written to the database for each node in the system. This row summarizes all AMP data in each node per log interval. You can determine if a row is in Summary Mode by checking the SummaryFlag column for that row.
IF the SummaryFlag column value is S N THEN the data for that row is being logged in Summary Mode. normally.

Spare Columns
The ResUsageSvdsk table has 30 spare columns (one of which is being used) as shown in the table below.
Column Name SpareCount[00-09] SpareTrack[00-09] SpareTmon00 Type of Data count track n/a Description Spare counted statistic. Spare tracked statistic. The SpareTmon00 column contains the COD value. The value represents the COD value in one tenths of a percent, so a displayed value of 500 represents a COD value of 50.0%. Note: This value is valid only on SUSE Linux Enterprise Server 10 systems and is a single value for the entire system. SpareTmon[01-09] count Spare time monitored statistic.

The spare column fields expand to values 0009, so that column names would be SpareCount00, SpareTrack02, or SpareTmon06, and so on.

124

Resource Usage Macros and Tables

CHAPTER 13

ResUsageSvpr Table

ResUsageSvpr logical table includes resource usage data for available system-wide, virtual processor information. Note: This table is created as a MULTISET table. For more information see Relational Primary Index on page 38. The following table describes the ResUsageSvpr table columns. However, always use the view ResSvprView on page 166 to access the data rather than accessing the ResUsageSvpr table directly.
Type of Data Invalid Platform

Column Name

Description HOUSEKEEPING COLUMNS

Data Type

RELATIONAL PRIMARY INDEX COLUMNS These columns taken together form the nonunique primary index. TheDate TheTime n/a n/a Date of the log entry. Nominal time of the log entry. Note: Under conditions of heavy system load, entries might be logged late (typically, by no more than one or two seconds), but this column will still contain the time value when the entry should have been logged. See the Secs and NominalSecs columns. NodeId n/a Identifies the Node upon which the vproc resides. The Node ID is formatted as CCCMM, where CCC denotes the three-digit cabinet number and MM denotes the two-digit chassis number of the node. For example, a node in chassis 9 of cabinet 3 has a node ID of 003-09. Note: SMP nodes have a chassis and cabinet number of 1. For example, the node ID of an SMP node is 001-01. MISCELLANEOUS HOUSEKEEPING COLUMNS GmtTime n/a Greenwich Mean Time is not affected by the Daylight Savings Time adjustments that occur twice a year. FLOAT INTEGER DATE FLOAT

Resource Usage Macros and Tables

125

Chapter 13: ResUsageSvpr Table

Column Name NodeType VprId

Type of Data n/a n/a

Description Type of node, representing the per node system family type. For example, 5600C or 5555H. Identifies the vproc number (non-Summary Mode) or the vproc type (Summary Mode; 0 = NODE, 1 = AMP, 2 = PE, 3=GTW, 4=RSG, 5=VSS). The VprId can be any of the following depending on the type: AMP vprocs: numbered upward from 0. PE vprocs: numbered downward from 16383. NODE vprocs: numbered upward from 16384. GTW vprocs: numbered upward from 8192. RSG vprocs: numbered downward from 9215. VSS vprocs: numbered downward from 10238. The vproc numbers within each type range are contiguous. Each existing vproc type range should not overlap into the range of another existing vproc type on the system.

Data Type CHAR(8) INTEGER

Invalid Platform

VprType

n/a

Type of vproc. The values can be NODE, AMP, PE, GTW, RSG, or TVS (see Teradata Virtual Storage). Actual number of seconds in the log period represented by this row. Normally the same as NominalSecs, but can be different in three cases: The first interval after a log rate change A sample logged late because of load on the system System clock adjustments affect reported Secs Useful for normalizing the count statistics contained in this row, for example, to a persecond measurement.

CHAR(4)

Secs

n/a

SMALLINT

CentiSecs

n/a

Number of centiseconds in the logging period. This column is useful when performing data calculations with small elapsed times where the difference between centisecond-based data and whole seconds results in a percentage error. A specified or nominal number of seconds in the logging period.

INTEGER

NominalSecs

n/a

SMALLINT

126

Resource Usage Macros and Tables

Chapter 13: ResUsageSvpr Table

Column Name NCPUs

Type of Data n/a

Description Number of CPUs on this node. This column is useful for normalizing the CPU utilization column values for the number of CPUs on the node. This is especially important in coexistence systems where the number of CPUs can vary across system nodes.

Data Type SMALLINT

Invalid Platform

SummaryFlag

n/a

Identifies the summarization status of this row. Possible values are N if the row is a nonsummary row and S if it is a summary row. Controls whether or not the rows will be logged to the ResUsage tables if Active Row Filter Mode is enabled. If Active is set to: a non-zero value, then the row contains modified data columns. a zero value, then none of the data columns in the row have been updated during the logging period. For example, if Active Row Filter Mode is enabled, then the rows that have a zero Active column value will not be logged to the ResUsage tables.

CHAR

Active

count

FLOAT

CollectIntervals

n/a

The number of gather periods per reporting period. In the Collect Buffer and Log Buffer, the value is the number of Gather operations that have been performed during the period. This number can vary from one period to the next. STATISTICS COLUMNS PROCESS SCHEDULING COLUMNS

SMALLINT

CPU Utilization Columns These columns represent CPU activities associated with this virtual processor, subdivided into 48 partitions. Partition 0 is reserved for use by PDE processes. See Appendix D: Partition Assignments for more information on the other partitions. Each entry below represents 48 columns, where [i] expands to the values 00 - 47, for example, CPUUservPart31. For definitions of user service and user execution, see "Process Scheduling Columns" in the Chapter 5: ResUsageScpu Table. CPUUServPart[i] count Time in centiseconds CPUs are busy in partition i doing user service. This is the system level time spent on a process. FLOAT

Resource Usage Macros and Tables

127

Chapter 13: ResUsageSvpr Table

Column Name CPUUExecPart[i]

Type of Data count

Description Time in centiseconds CPUs are busy in partition i doing user execution. This is the user level time spent on a process.

Data Type FLOAT

Invalid Platform

Cylinder Read Columns These columns represent file system resource usage statistics. The Cylinder Read feature uses these statistics for tracking performance and utilization. FileFcrRequests count Total number of requests for the File System to use Cylinder Read. This column is tracked and recorded by the File System. It records the number of attempts to use Cylinder Read independent of whether the request will be issued to FSG or not. A request can be denied due to insufficient data blocks or because there is insufficient space in the FSG cache. Requests can also be denied at both the user and kernel level. Each of these items is counted in other FileFcr ResUsage columns. A number of calculations can be performed using this column: Requests issued to FSG = FileFcrRequests - FileFcrDeniedUser Successful Cylinder Reads = FileFcrRequests - FileFcrDeniedUser FileFcrDeniedKern FileFcrRequestsAdaptive count Number of adaptive requests from File System. This column is tracked and recorded by the File System. It records the number of requests for adaptive-style Cylinder Reads. Note: This column is not currently used. FileFcrBlocksRead count Number of data blocks read in using Cylinder Read. This column is tracked and recorded by the FSG subsystem. It records the total number of data blocks read in by successful Cylinder Read operations. The average number of data blocks in a successful Cylinder read can be calculated as: Average data blocks/ Cylinder Read = FileFcrBlocksRead / (FileFcrRequests FileFcrDeniedUser - FileFcrDeniedKern) FLOAT FLOAT ALL FLOAT

128

Resource Usage Macros and Tables

Chapter 13: ResUsageSvpr Table

Column Name FileFcrDeniedUser

Type of Data count

Description Number of Cylinder Read requests denied by the File System. This column is tracked and recorded by the File System. It records the number of Cylinder Read attempts that have been denied by the File System. A request can be denied by the File System due to insufficient number of data blocks being requested (for example, the FileFcrDeniedThreshUser column). For information, see the FileFcrDeniedThreshUser column.

Data Type FLOAT

Invalid Platform

FileFcrBlocksDeniedUser

count

Number of data blocks contained in the rejected requests for Cylinder Read. This column is tracked and recorded by the File System. It records the number of data blocks that were part of attempts to use Cylinder Read that were denied by the File System; therefore, also incremented the FileFcrDeniedUser column.

FLOAT

FileFcrDeniedKern

count

Number of Cylinder Read requests denied by the FSG subsystem. This column is tracked and recorded by the FSG subsystem. It records the number of Cylinder Read requests issued to the FSG subsystem which, for any reason, have been denied. A request can be denied due to insufficient data blocks (for example, the FileFcrDeniedThreshKern column) or because there is insufficient space in the FSG cache (for example, the FileFcrDeniedCache column). The FSG subsystem can reject a request containing insufficient data blocks that the File System thought had enough blocks because the FSG subsystem reduces the count by the number of data blocks that are already resident in the cache.

FLOAT

FileFcrBlocksDeniedKern

count

Number of data blocks contained in the rejected requests for Cylinder Read. This column is tracked and recorded by the FSG subsystem. It records the number of data blocks that were part of attempts to use Cylinder Read that were denied by the FSG subsystem; therefore, also incremented the FileFcrDeniedKern column.

FLOAT

Resource Usage Macros and Tables

129

Chapter 13: ResUsageSvpr Table

Column Name FileFcrDeniedCache

Type of Data count

Description Number of Cylinder Read requests denied by FSG due to insufficient cache. This column is tracked and recorded by FSG. It records the number of Cylinder Read requests which have been denied due to insufficient FSG cache space for a cylinders worth of data.

Data Type FLOAT

Invalid Platform

FileFcrBlocksDeniedCache

count

Number of data blocks contained in Cylinder Read requests rejected by the FSG subsystem due to insufficient cache. This column is tracked and recorded by the FSG subsystem. It records the number of data blocks that were part of attempts to use Cylinder read that were denied by the FSG subsystem due to insufficient cache space; therefore, also incremented the FileFcrDeniedCache column.

FLOAT

FileFcrDeniedThreshUser

count

Number of Cylinder Read requests denied by the File System due to insufficient data blocks. This column is tracked and recorded by the File System. It records the number of Cylinder Read requests which have been denied due to the data block threshold criteria. There is a minimum threshold of data blocks for an individual Cylinder Read request. If the number of data blocks is below this threshold, the overhead of the Cylinder Read operation is considered too large and issuing individual data block reads is considered more efficient. Therefore, the Cylinder Read request is denied.

FLOAT

FileFcrBlocksDeniedThreshUser

count

Number of data blocks contained in Cylinder Read requests rejected for threshold by the File System. This column is tracked and recorded by the File System. It records the number of data blocks that were part of attempts to use Cylinder Read that were denied by the File System due to the number of blocks being below the threshold; therefore, also incremented the FileFcrDeniedThreshUser column.

FLOAT

130

Resource Usage Macros and Tables

Chapter 13: ResUsageSvpr Table

Column Name FileFcrDeniedThreshKern

Type of Data count

Description Number of Cylinder Read requests denied by the FSG subsystem due to insufficient data blocks. This column is tracked and recorded by the FSG subsystem. It records the number of Cylinder Read requests which have been denied due to the data block threshold criteria. There is a minimum threshold of data blocks for an individual Cylinder Read request. If the number of data blocks is below this threshold, the overhead of the Cylinder Read operation is considered too large and issuing individual data block reads is considered more efficient. Therefore, the Cylinder Read request is denied. FSG must reevaluate the threshold for a request that the File System considered valid since FSG eliminates any data blocks from the request list that are already resident in the cache. This could reduce the count that the File System thought was above the threshold to one that is now below.

Data Type FLOAT

Invalid Platform

FileFcrBlocksDeniedThreshKern

count

Number of data blocks contained in Cylinder Read requests rejected for threshold by the FSG subsystem. This column is tracked and recorded by the FSG subsystem. It records the number of data blocks that were part of attempts to use Cylinder read that were denied by the FSG subsystem due to the number of blocks being below the threshold; therefore, also incremented the FileFcrDeniedThreshKern column.

FLOAT

ChnSignal Status Tracking Columns These columns track the chnsignal last done status (or track slowest vproc on the system for processing AMP steps). MsgChnLastDone count The number of last done events that occurred for this vproc. Note: The last AMP to finish an operation may send a last done broadcast message indicating the work is done for this step. This is used in tracking down the slowest AMP in the system. An AMP that has more last done messages than the others could be a bottleneck in the system performance. FLOAT

Resource Usage Macros and Tables

131

Chapter 13: ResUsageSvpr Table

Column Name

Type of Data

Description

Data Type

Invalid Platform

Process Pending Counts and Wait Time Columns These columns identify the number of processes blocked on database locks, and how long they were blocked. ProcPendDBLock ProcBlksDBLock ProcWaitDBLock count count count Number of processes blocked pending database locks. Number of times processes blocked for database locks. Total time processes were blocked pending database locks. MEMORY COLUMNS Memory Allocations Columns These columns represent the number and amount of memory allocations specific to virtual processor activities, subdivided into segment types. The columns do not include any memory allocations specific to the node the vproc is running under. Teradata Database context amounts are not included since they can be calculated by multiplying the fixed page size by the number of page allocations. Disk segment memory types are described by single entries below, each of which expands into six actual columns, where [seg] is replaced as follows: PDb = Permanent data block disk segments PCi = Permanent cylinder index disk segments SDb = Regular or restartable spool data block disk segments SCi = Regular or restartable spool cylinder index disk segments TJt = Transient journal table or WAL data block or WAL cylinder index APt = Append table or permanent journal table data block or cylinder index disk segments For example MemPDbAlloc, MemPCiAlloc, MemSDb, and so on. Mem[seg]Allocs count Number of successful memory allocations and size-increasing memory alters on disk segments. Total KBs attributed to allocations and sizeincreasing memory alters for disk segments. Number of successful memory allocations and size-increasing memory alters on task context pages. Note: Only scratch pages will get allocated. All other task context pages will appear resident at some point soon after component restart. FLOAT ALL FLOAT FLOAT FLOAT ALL

Mem[seg]AllocKB MemCtxtAllocs

count count

FLOAT FLOAT

ALL

132

Resource Usage Macros and Tables

Chapter 13: ResUsageSvpr Table

Column Name

Type of Data

Description

Data Type

Invalid Platform

Memory Resident Columns These columns represent the amount of memory resident specific to virtual processor activities, subdivided into memory types. The columns do not include any memory allocations specific to the node the vproc is running under. Disk memory segments can be in one of four states: Clean (unmodified) and Unaccessed by any process (CU) Dirty (modified) and Unaccessed (DU) Clean and Accessed (CA) Dirty and Accessed (DA). Permanent segments for an entire table can be user-locked-in to memory. These are called frozen segments (Frz), and no state subdivision is necessary because they cannot be aged or forced out of memory. Regular disk segment memory types are described by single entries below, each of which expands into six actual columns, where [seg] is replaced as follows: PDb = Permanent data block disk segments PCi = Permanent cylinder index disk segments SDb = Regular or restartable spool data block disk segments SCi = Regular or restartable spool cylinder index disk segments TJt =Transient journal table or WAL data block or WAL cylinder index APt = Append table or permanent journal table data block or cylinder index disk segments track track track Current pages resident in memory for task context segments. Current KBs resident in memory for frozen segments. Current KBs resident in memory for regular disk segments that are currently clean and not accessed. Note: MemBaseKBResCU tracks of the sum of the data block sizes in the FSG cache (for both general purpose preloads and cylinder read preloads). Mem[seg]KBResDU track Current KBs resident in memory for regular disk segments that are currently dirty and unaccessed. Current KBs resident in memory for regular disk segments that are currently clean and accessed. Current KBs resident in memory for regular disk segments that are currently dirty and accessed. FLOAT ALL FLOAT FLOAT FLOAT ALL ALL ALL

MemCtxtRes MemPKBResFrz Mem[seg]KBResCU

Mem[seg]KBResCA

track

FLOAT

ALL

Mem[seg]KBResDA

track

FLOAT

ALL

Resource Usage Macros and Tables

133

Chapter 13: ResUsageSvpr Table

Column Name

Type of Data

Description

Data Type

Invalid Platform

Paging Columns These columns identify paging activities on pages containing Teradata Database context pages only. MemCtxtPageReads MemCtxtPageWrites count count Number of task context pages that were paged in. Number of task context pages that were paged out. FLOAT FLOAT ALL ALL

Swapping Columns These columns identify the effects on disk segments when all processes accessing them get swapped out. MemSwapDrops count Number of disk segments that were dropped from memory because all accessor processes were swapped out. KBs dropped from memory by MemSwapDrops. Number of disk segments that were re-read when they were previously dropped from memory because all accessor processes were swapped out. KBs re-read from memory by MemSwapReads. FLOAT ALL

MemSwapDropKB MemSwapReads

count count

FLOAT FLOAT

ALL ALL

MemSwapReadKB

count

FLOAT

ALL

Task Context Segment Usage Columns These columns identify the usage of task context segments and how they leave memory. MemCtxtAccesses MemCtxtAccessKB MemCtxtDeaccesses count count count Number of segments accessed. KBs of segments accessed. Number of segments deaccessed. (Deaccessed segments remain in memory until paged out through aging.) KBs of segments deaccessed. Number of segments destroyed. (Destroyed segments are immediately dropped from memory.) KBs of segments destroyed. NET COLUMNS Point-to-Point Net Traffic Columns These columns identify the number (Reads, Writes) and amount (ReadKB, WriteKB) of input and output messages passing through either Teradata Database net through point-to-point (1:1) methods (PtP) NetPtPReads count Number of point-to-point messages input to the vproc. FLOAT FLOAT FLOAT FLOAT

MemCtxtDeaccessKB MemCtxtDestroys

count count

FLOAT FLOAT

MemCtxtDestroyKB

count

FLOAT

134

Resource Usage Macros and Tables

Chapter 13: ResUsageSvpr Table

Column Name NetPtPWrites NetPtPReadKB NetPtPWriteKB

Type of Data count count count

Description Number of point-to-point messages output from the vproc. Total KBs of point-to-point messages input to the vproc. Total KBs of point-to-point messages output to the vproc.

Data Type FLOAT FLOAT FLOAT

Invalid Platform

Broadcast Net Traffic Columns These columns identify the number (Reads, Writes) and amount (ReadKB, WriteKB) of input and output messages passing through the Teradata Database nets through broadcast (1:many) methods (Brd) per net. NetBrdReads NetBrdWrites NetBrdReadKB NetBrdWriteKB count count count count Number of broadcast messages input to the vproc. Number of broadcast messages output from the vproc. Total KBs of broadcast messages input to the vproc. Total KBs of broadcast messages output from the vproc. FLOAT FLOAT FLOAT FLOAT

Work Mailbox Queue Columns These columns identify the virtual processor work mailbox queue length where requested work awaits the allocation of a process to perform the work. MsgWorkQLenSum count Total number of work requests waiting during each log interval. The Sum count tracks the current count at the end of each gather period and sums the counts over the log period. Note: To calculate the average work requests waiting, divide this value by the CollectIntervals value. The CollectIntervals value is the number of gather periods per reporting period. For more information, see the CollectIntervals column. MsgWorkQLenMax max Maximum number of work requests waiting during each log interval. The Max count, unlike the Sum count, tracks the maximum count over the log period. Therefore the Sum count can be 0 even though the Max count can be non-zero over the log period. FLOAT FLOAT

Resource Usage Macros and Tables

135

Chapter 13: ResUsageSvpr Table

Column Name

Type of Data

Description

Data Type

Invalid Platform

GENERAL CONCURRENCY CONTROL COLUMNS Database Locks Columns These columns identify database locking activities. DBLockEnters DBLockBlocks DBLockDeadlocks DBLockBlocksSum count count count count Number of times a database lock was entered for holding. Number of times a database lock was blocked. Number of times a database lock was deadlocked. Total number of requests blocked on database locks during each log interval. To calculate the average number of requests blocked, divide this value by the CollectIntervals value. The CollectIntervals value is the number of gather periods per reporting period. For more information, see the CollectIntervals column. DBLockBlocksMax DBLocksHeldSum max count Maximum number of requests blocked on database locks during each log interval. Total number of database locks held during each log interval. To calculate the average number of database locks held, divide this value by the CollectIntervals value. The CollectIntervals value is the number of gather periods per reporting period. For more information, see the CollectIntervals column. DBLocksHeldMax max Maximum number of database locks held during each log interval. FILE SYSTEM COLUMNS Segment Acquires Columns These columns identify the total disk memory segments acquired by the file system during the log period. Logical acquires (Acqs) and the logical amount acquired (AcqKB) are identified. Acquires causing physical reads (AcqReads) and the amount read (AcqReadKB) are identified as a subset of logical acquires. Disk segment memory types are described by single entries below, each of which expands into six actual columns, where [seg] is replaced as follows: PDb = Permanent data block disk segments PCi = Permanent cylinder index disk segments SDb = Regular or restartable spool data block disk segments SCi = Regular or restartable spool cylinder index disk segments TJt = Transient journal table or WAL data block or WAL cylinder index APt = Append table or permanent journal table data block or cylinder index disk segments FLOAT ALL FLOAT FLOAT ALL ALL FLOAT FLOAT FLOAT FLOAT ALL

136

Resource Usage Macros and Tables

Chapter 13: ResUsageSvpr Table

Column Name File[seg]Acqs File[seg]AcqKB File[seg]AcqReads File[seg]AcqReadKB

Type of Data count count count count

Description Total number of disk segments acquired. Total KBs acquired by File[seg]Acqs. Number of disk segment acquires that caused a physical read. KBs physically read by File[seg]AcqReads.

Data Type FLOAT FLOAT FLOAT FLOAT

Invalid Platform

Data Block Prefetches Columns These columns identify File Segment Prefetch activities. File segment prefetches are described by single entries below, each of which expands into six actual columns, where [seg] is replaced as follows: PDb = Permanent data block disk segments PCi = Permanent cylinder index disk segments SDb = Regular or restartable spool data block disk segments SCi = Regular or restartable spool cylinder index disk segments TJt = Transient journal table or WAL data block or WAL cylinder index APt = Append table or permanent journal table data block or cylinder index disk segments Note: A prefetch is either a cylinder read operation or an individual block read operation. Either of these operations are generically called a prefetch. File[seg]Pres count Total number of times a logical data prefetch was performed (either a cylinder read or an individual block read). Total number of KBs logically prefetched (either a cylinder read or an individual block read) by File[seg]Pres. For cylinder reads, this column does not include the disk sectors in between the loaded data blocks. File[seg]PreReads count Total number of disk segment prefetches (either a cylinder read or an individual block read) that caused a logical read. Total number of KBs physically read by File[seg]PreReads. For cylinder reads, this column includes the disk sectors in between the loaded data blocks. FLOAT FLOAT

File[seg]PresKB

count

FLOAT

File[seg]PreReadKB

count

FLOAT

Resource Usage Macros and Tables

137

Chapter 13: ResUsageSvpr Table

Column Name

Type of Data

Description

Data Type

Invalid Platform

Segments Released Columns These columns identify the total disk memory segments released by the file system, as well as those segments that are dropped from memory during the log period. When a segment is released, the segment is either: Forced (F) Remains resident in memory (R) Aged out of memory (A), from segments that are currently resident Both the number of segments (Rels, Writes, Drps) and the size of the segments (RelKB,WriteKB, DrpKB) are counted. When a segment leaves memory, it must be written to disk only if the segment is dirty (Dy), that is, modified. Otherwise, the clean (Cn), that is, unmodified segment is simply dropped. Most spool blocks for a small table remain resident when they are created and age there. Each of these will be counted as a dirty resident release (DyRRel fields). If a block survives in the cache, it would be reacquired (whenever the system creates spool data, a subsequent step will read it) and released again. The release will still be counted as a dirty resident release, since the block survived in a modified state. On the other hand, if there is contention for room in the FSG cache, the segment might be removed from memory. Because it is a modified segment, it must be written out first. This is counted as a dirty age write (DyAWrite fields). When it is reacquired it will no longer be modified, so the subsequent release will be counted as a clean resident release (CnRRel fields). Full table modification operations make one pass on the table and modify each block only once. Since these operations do not access a block multiple times, there is no point keeping them in the cache. If a block that was examined did not contain any rows that qualify for the modification, when the block is released it will be dropped from memory immediately (FDrp fields). However if the block was modified, when it is released the system issues the write as part of the release so it is counted as a forced write (FWrite fields). Since the system also drops the block from memory as soon as the write is complete, this release is also counted as a forced drop (FDrp fields). Disk segment memory types are described by single entries below, each of which expands into six actual columns, where [seg] is replaced as follows: PDb = Permanent data block disk segments PCi = Permanent cylinder index disk segments SDb = Regular or restartable spool data block disk segments SCi = Regular or restartable spool cylinder index disk segments TJt = Transient journal table or WAL data block or WAL cylinder index APt = Append table or permanent journal table data block or cylinder index disk segments count count count Number of dirty disk segment resident releases. KBs released by File[seg]DyRRels. Number of disk segment forced releases or specific I/O requests causing an immediate physical write. Includes spool data that is aged out immediately and permanent data that is written immediately. KBs written by File[seg]FWrites. Number of dirty disk segments aged out of memory causing a delayed physical write. If the segment is unmodified, only CnADrps is incremented. If the segment is modified, both DyAWrites and CnADrps are incremented. FLOAT FLOAT FLOAT

File[seg]DyRRels File[seg]DyRRelKB File[seg]FWrites

File[seg]FWriteKB File[seg]DyAWrites

count count

FLOAT FLOAT

138

Resource Usage Macros and Tables

Chapter 13: ResUsageSvpr Table

Column Name File[seg]DyAWriteKB

Type of Data count

Description KBs written by File[seg]DyAWrites. If the segment is unmodified, only CnADrpKB is incremented. If the segment is modified, both DyAWriteKB and CnADrpKB are incremented.

Data Type FLOAT

Invalid Platform

File[seg]CnRRels File[seg]CnRRelKB File[seg]FDrps

count count count

Number of clean disk segment resident releases. KBs released by File[seg]CnRRels. Number of disk segment forced releases causing an immediate memory drop. Segments that are never to be part of the memory cache (the age queue) are counted as forced drops. KBs dropped by File[seg]FDrps. Number of clean disk segments aged out of memory. If the segment is unmodified, only CnADrps is incremented. If the segment is modified, both DyAWrites and CnADrps are incremented. Note: CnADrps counts includes the DyAWrites counts. To calculate the clean segments that aged out of memory, subtract the DyAWrites value from the CnADrps value.

FLOAT FLOAT FLOAT

File[seg]FDrpKB File[seg]CnADrps

count count

FLOAT FLOAT

File[seg]CnADrpKB

count

KBs dropped by File[seg]CnADrps. If the segment is unmodified, only CnADrpKB is incremented. If the segment is modified, both DyAWriteKB and CnADrpKB are incremented. Note: CnADrpKB counts includes the DyAWriteKB counts. To calculate the KBs of clean segments that aged out of memory, subtract the DyAWriteKB value from the CnADrpKB value.

FLOAT

Data Segment Lock Requests Columns These columns identify the number of lock requests, blocks, and deadlocks on a disk segment, including those implied for segment acquires. FileLockEnters FileLockBlocks count count Number of lock requests on disk segments. Number of lock requests that were blocked. (Total locks - locks blocked = locks with immediate grants.) Number of deadlocks detected on lock requests. FLOAT FLOAT

FileLockDeadlocks

count

FLOAT

Resource Usage Macros and Tables

139

Chapter 13: ResUsageSvpr Table

Column Name

Type of Data

Description

Data Type

Invalid Platform

Cylinder Management Overhead Events Columns These columns identify the number of times the file system software performed a cylinder management event. The table ResUsageIvpr further breaks down the I/Os associated with these events. See Appendix C: ResUsageIvpr Table. FileCylAllocs FileCylFrees FileCylMigrs FileMCylPacks FileCylDefrags count count count count count Number of new cylinders allocated. Number of logical or physical cylinders freed. Number of cylinder migrations. Number of MiniCylPacks performed. Number of cylinder defragments performed. FLOAT FLOAT FLOAT FLOAT FLOAT

Synchronized Full Table Scans Columns These columns contain statistics relating to synchronized full table scans. Note: The following columns have been moved from ResUsageIvpr to ResUsageSvpr to avoid costly joins. FileSyncScans FileSyncSubtables count track Number of attempts to synchronize a full table scan. Number of subtables scanned by one or more full table scanners who are willing to synchronize scans. Number of tasks involved in full table scans who are willing to synchronize with other scanners. Number of groups of scanners involved in full table scans. A group consists of scanners who are able to use the same read I/O to obtain data from disk. FLOAT FLOAT

FileSyncScanners

track

FLOAT

FileSyncGroups

track

FLOAT

Write Ahead Logging Columns These columns identify the number of times the file system software performed a cylinder management event associated with the WAL log. FileWCylAllocs FileWCylFrees count count Number of new WAL cylinders allocated. Number of times the file system logically frees a cylinder. FLOAT FLOAT

Allocation Columns These columns identify the allocation statistics reported by the Allocator. AllocatorExtentAllocReqs AllocatorExtentFreeReqs AllocatorMapIOsStarted count count count Number of cylinder allocation requests received by the allocator. Number of cylinder free requests received by the allocator. Number of map I/Os initiated by the allocator. FLOAT FLOAT FLOAT

140

Resource Usage Macros and Tables

Chapter 13: ResUsageSvpr Table

Column Name AllocatorMapIOsDone

Type of Data count

Description Number of map I/Os completed by the allocator.

Data Type FLOAT

Invalid Platform

Node Agent Columns These columns identify the migration and buffer processing statistics reported by the Node Agent. NodeAgentMigrationsStarted NodeAgentMigrationsDone NodeAgentStatProcessed count count count Number of migration requests started by the Node Agent. Number of migration requests completed by the Node Agent. Number of statistics buffers processed by the Node Agent. FLOAT FLOAT FLOAT

Extent Driver I/O Columns These columns identify the I/O statistics reported from the extent driver. Note: These columns are populated and used by Teradata VS, an option sold separately from Teradata Database. Associated configuration settings appear in the ctl utility if you have purchased Teradata VS. For details about these columns, see Teradata Virtual Storage. FSG I/O Columns These columns identify the I/O statistics reported from the FSG. IoRespMax IoGapMax max max Maximum I/O response time in milliseconds on an AMP. Maximum time gap between I/O completions in milliseconds on an AMP. Master Index Columns MIWriteLocks MIWriteLockTime MIWriteLockTimeMax MIWrites MIWriteTime count count max count count Number of write locks acquired on a MI. MI write lock hold time in milliseconds. Maximum MI write lock hold time in milliseconds. Number of writes while holding a MI no modification (nomod) write lock. Total write time while holding MI no modification (nomod) write lock in milliseconds. Maximum write time while holding a MI no modification (nomod) write lock in milliseconds. Number of times spent waiting to get a MI lock. FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT ALL

MIWriteTimeMax

max

FLOAT

MISleeps

count

FLOAT

Resource Usage Macros and Tables

141

Chapter 13: ResUsageSvpr Table Summary Mode

Column Name MISleepTime MISleepTimeMax

Type of Data count max

Description Total amount of time spent waiting to get a MI lock in milliseconds. Maximum amount of time spent waiting to get a MI lock.

Data Type FLOAT FLOAT

Invalid Platform

Summary Mode
When Summary Mode is active for the ResUsageSvpr table, one row is written to the database for each type of vproc on each node in the system, summarizing the vprocs of that type on that node, for each log interval. You can determine if a row is in Summary Mode by checking the SummaryFlag column for that row.
IF the SummaryFlag column value is S N THEN the data for that row is being logged in Summary Mode. normally.

142

Resource Usage Macros and Tables

Chapter 13: ResUsageSvpr Table Spare Columns

Spare Columns
The ResUsageSvpr table has 30 spare columns as shown in the table below.
Column Name SpareCount[00-07] Type of Data count Description The following SpareCount columns will be converted to the specified column names in Teradata Database 14.0: SpareCount00 = DBMergeTried. The number of times the data block being modified was attempted to be merged with some number of adjacent data blocks as part of the modification. SpareCount01 = DBMergeDone. The number of times the data block being modified has successfully merged with some number of adjacent data blocks as part of the modification. Subtracting DBMergeDone from DBMergeTried will result in the number of data block merge operations that were tried and failed. SpareCount02 = DBMergeElim. The number of data blocks eliminated due to data block merges. If n data blocks are merged into 1 large block (where n is the number of data blocks), this number is incremented by n-1. SpareCount03 = DBMergeExtrIO. The number of additional physical I/Os performed in the data block merge process over and above those that would have been done if no data block merges were attempted. This includes any extra physical I/Os that were performed regardless of whether a particular merge attempt succeeded or not. SpareCount04 = FileACPCylsSkipped. The number of cylinders AutoCylPack scanned at the MI level and decided nothing needed to be done. SpareCount05 = FileACPCylsMigr. The number of successful migrations performed by AutoCylPack.

Resource Usage Macros and Tables

143

Chapter 13: ResUsageSvpr Table Spare Columns

Column Name SpareCount[00-07] (continued)

Type of Data count

Description SpareCount06 = FileACPCylsUnFSEOnly. The number of cylinders the background task, Automatic Cylinder Packing (ACP), selected for performing a migration, but could not because of a CI that is marked down, a locking conflict, or a recently modified CI. Instead (except for the down CI case), ACP cleaned-upa the unfree sector entries (UNFSEs) on these cylinders. For more information on ACP, see Utilities or Performance Management. SpareCount07 = FileACPCylsPostponed. The number of cylinders AutoCylPack selected for performing a migration, but could not be performed at the current time. This can happen due to conflicts with foreground tasks modifying the cylinder at around the same time as AutoCylPack. AutoCylPack, therefore, postpones the work until the next time it scans the MI from the beginning. When AutoCylPack sees this cylinder again, if the cylinder still qualifies, it is selected again for processing. Spare counted statistic. Spare tracked statistic. The SpareTmon00 column contains the COD value. The value represents the COD value in one tenths of a percent, so a displayed value of 500 represents a COD value of 50.0%. Note: This value is valid only on SUSE Linux Enterprise Server 10 systems and is a single value for the entire system.

SpareCount[08-09] SpareTrack[00-09] SpareTmon00

count track n/a

144

Resource Usage Macros and Tables

Chapter 13: ResUsageSvpr Table Spare Columns

Column Name SpareTmon[01-03]

Type of Data count

Description The following SpareCount columns will be converted to the specified column names in Teradata Database 14.0: SpareTmon01= FSGCacheWaits. The number of times the file system waits for memory to become available in the file segment cache when trying to read data from disk. SpareTmon02 = FSGCacheWaitTime. The total amount of time the file system waits for memory to become available in the file segment cache when trying to read data from disk. SpareTmon03 = MAX. The maximum amount of time the file system waits for memory to become available in the file system cache when trying to read data from disk.

SpareTmon[04-09]

count

Spare time monitored statistic.

a. Unfree sectors are those that have no current data block, but cannot yet be used for a new data block. The file system cleans up the unfree sectors, which entails deleting the entries in the CI that say the sectors are unfree and creating new entries that say these sectors are free.

The spare column fields expand to values 00-09, so that column names would be SpareCount08, SpareTrack04, SpareTmon01, and so on.

Resource Usage Macros and Tables

145

Chapter 13: ResUsageSvpr Table Spare Columns

146

Resource Usage Macros and Tables

CHAPTER 14

Resource Usage Views

This chapter provides the definitions of the resource usage views. Note: Always use the views to access the data when it is available through the views rather than accessing the ResUsage table directly. To see the view definitions, execute SHOW VIEW viewname, where viewname is the name of the view whose most recent SQL create text is to be reported. For details on using the SHOW VIEW statement, see SQL Data Definition Language. The following views report the table column, GroupId. A homogenous system requires no changes to use this macro because all the nodes will be assigned to group A. For a coexisting system, however, the values need to be set up when the system is installed or reconfigured so that each type of node is assigned to a specific group ID. For the easiest setup, let the group with the fewest nodes be assigned under the WHEN clause and the group with most nodes be assigned via the ELSE clause in the case statement. Caution: Do not change or delete columns in these views. If the columns are modified, the resource usage macros that use these views may not work properly. You can, however, safely add columns.

Resource Usage Macros and Tables

147

ResGeneralInfoView
ResGeneralInfoView provides an overview of system operation. Note: The data columns in this view will change as the columns in the ResUsageSpma table change.
REPLACE VIEW DBC.ResGeneralInfoView AS SELECT /* housekeeping fields */ TheDate, TheTime, NodeId (FORMAT '999-99') AS NodeId, CASE WHEN NodeId IN ('001-01', '001-03', '001-05') THEN 'A' WHEN NodeId IN ('001-02', '001-04', '001-06') THEN 'A' ELSE 'A' END AS GroupId, GmtTime, NodeType, NodeNormFactor, NCPUs, Vproc1, VprocType1, Vproc2, VprocType2, Vproc3, VprocType3, Vproc4, VprocType4, Vproc5, VprocType5, Vproc6, VprocType6, Vproc7, VprocType7, MemSize, Secs, CentiSecs, NominalSecs, CollectIntervals, Reserved, /* transformed fields */ ( (CPUUServ + CPUUExec) / NULLIFZERO(NCPUs) ) AS CPUBusy, ( CPUUServ / NULLIFZERO(NCPUs) ) AS CPUOpSys, ( CPUUExec / NULLIFZERO(NCPUs) ) AS CPUUser, ( CPUIoWait / NULLIFZERO(NCPUs) ) AS CPUWaitIO, ( (CPUUServ + CPUUExec) * (NodeNormFactor / 100)/ NULLIFZERO(NCPUs) ) AS CPUBusyNorm, ( CPUUServ * (NodeNormFactor / 100) / NULLIFZERO(NCPUs) ) AS CPUOpSysNorm, ( CPUUExec * (NodeNormFactor / 100) / NULLIFZERO(NCPUs) ) AS CPUUserNorm, ( CPUIoWait* (NodeNormFactor / 100) / NULLIFZERO(NCPUs) ) AS CPUWaitIONorm, ( FileAcqReads + FilePreReads + FileWrites ) AS DiskSegmentIO, ( FileAcqReads + FilePreReads + FileWrites + MemTextPageReads + MemCtxtPageReads + MemCtxtPageWrites + MemSwapReads ) AS LogicalDeviceIO, ( FileAcqReads + FilePreReads + MemTextPageReads + MemCtxtPageReads + MemSwapReads ) AS LogicalDeviceReads, ( FileWrites + MemCtxtPageWrites ) AS LogicalDeviceWrites, ( FileAcqReadKB + FilePreReadKB +

148 Resource Usage Macros and Tables

Resource Usage Macros and Tables 149

/* paging or swapping count times pagesize (= 4K) */ (MemTextPageReads + MemCtxtPageReads + MemSwapReads) * 4 ) AS LogicalDeviceReadKB, ( FileWriteKB + /* paging or swapping count times pagesize (= 4K) */ MemCtxtPageWrites * 4 ) AS LogicalDeviceWriteKB, ( NetTxCircPtP + NetTxCircBrd ) (FORMAT '------9') AS NetAttempts, ( NetCircBackoffs ) (FORMAT '------9') AS NetBackoffs, 0 AS NetChannelSR, ( NetMsgBrdReads + NetMsgBrdWrites ) AS NetMultiIO, ( NetMsgPtPReads + NetMsgPtPWrites ) AS NetPtoPIO, ( NetMsgBrdReadKB + NetMsgPtPReadKB ) AS NetReadKB, ( NetMsgBrdReads + NetMsgPtPReads ) AS NetReads, ( NetMsgBrdWriteKB + NetMsgPtPWriteKB ) AS NetWriteKB, ( NetMsgBrdWrites + NetMsgPtPWrites ) AS NetWrites, ( MemTextPageReads + MemCtxtPageReads + MemCtxtPageWrites + MemSwapReads ) AS PageOrSwapIO, ( ProcBlockedSum + ProcReadySum + ProcRunningSum )/NULLIFZERO(CollectIntervals) AS ProcActiveAvg, ProcBlockedSum/NULLIFZERO(CollectIntervals) (FORMAT '------9') AS ProcBlockedAvg, ( ProcBlksDBLock + ProcBlksMemAlloc + ProcBlksMisc + ProcBlksMonitor + ProcBlksMonResume + ProcBlksNetThrottle + ProcBlksSegLock + ProcBlksFsgLock + ProcBlksFsgRead + ProcBlksFsgWrite ) (FORMAT '------9') AS ProcBlocks, ( ProcWaitDBLock + ProcWaitMemAlloc + ProcWaitMisc + ProcWaitMonitor + ProcWaitMonResume + ProcWaitNetThrottle + ProcWaitPageRead + ProcWaitSegLock + ProcWaitFsgLock + ProcWaitFsgRead + ProcWaitFsgWrite ) (FORMAT '------9') AS ProcWaits, ( CmdDDLStmts + CmdDeleteStmts + CmdInsertStmts + CmdSelectStmts + CmdUpdateStmts + CmdUtilityStmts + CmdOtherStmts ) AS UserStmtsArriving, CmdStmtsInProgCur AS UserStmtsInProgress, /* TVS Teradata Virtual Storage fields will be renamed in the table in the 14.0 release */ VssReadCnt AS TvsReadCnt, VssWriteCnt AS TvsWriteCnt, VssReadRespTot AS TvsReadRespTot, VssWriteRespTot AS TvsWriteRespTot, /* Spare Field Usage */ SpareCount00 AS TvsReadMax, SpareCount01 AS TvsWriteMax, SpareTmon00 AS COD, /* 14.0 hdr field Capacity On Demand factor */ /* SPMA table fields */ Active, ProcReadySum, ProcBlockedSum, ProcSuspendedSum, ProcRunningSum, NetSemInUseSum, NetChanInUseSum, NetGroupInUseSum, ProcReadyMax, ProcPendMemAlloc, ProcPendFsgRead, ProcPendFsgWrite, ProcPendNetThrottle, ProcPendNetRead, ProcPendMonitor, ProcPendMonResume, ProcPendDBLock,

ProcPendSegLock, ProcPendMisc, ProcPendFsgLock, ProcPendQnl, ProcBlksMemAlloc, ProcBlksFsgRead, ProcBlksFsgWrite, ProcBlksNetThrottle, ProcBlksMsgRead, ProcBlksMonitor, ProcBlksMonResume, ProcBlksDBLock, ProcBlksSegLock, ProcBlksTime, ProcBlksMisc, ProcBlksFsgLock, ProcBlksQnl, ProcWaitMemAlloc, ProcWaitPageRead, ProcWaitFsgRead, ProcWaitFsgWrite, ProcWaitNetThrottle, ProcWaitMsgRead, ProcWaitMonitor, ProcWaitMonResume, ProcWaitDBLock, ProcWaitSegLock, ProcWaitTime, ProcWaitMisc, ProcWaitFsgLock, ProcWaitQnl, CPUIdle, CPUIoWait, CPUUServ, CPUUExec, CPUIdleNorm, CPUIoWaitNorm, CPUUServNorm, CPUUExecNorm, MemTextAllocs, MemVprAllocs, MemVprAllocKB, MemTSysOhRes, MemDSysOhRes, MemTextRes, MemCtxtRes, MemPDbKBRes, MemPCiKBRes, MemSDbKBRes, MemSCiKBRes, MemTJtKBRes, MemAPtKBRes, MemFreeKB, MemFails, MemAgings, MemTextPageDrops, MemTextPageReads, MemProcSwapped, MemCtxtPageWrites, MemCtxtPageReads, MemSwapDrops, MemSwapDropKB, MemSwapReads,

150 Resource Usage Macros and Tables

Resource Usage Macros and Tables 151

MemSwapReadKB, MsgPtPReads, MsgPtPWrites, MsgPtPReadKB, MsgPtPWriteKB, MsgBrdReads, MsgBrdWrites, MsgBrdReadKB, MsgBrdWriteKB, NetTxRouting, NetTxConnected, NetRxConnected, NetTxIdle, NetRxIdle, NetSamples, NetMsgPtPWriteKB, NetMsgBrdWriteKB, NetMsgPtPReadKB, NetMsgBrdReadKB, NetMsgPtPWrites, NetMsgBrdWrites, NetMsgPtPReads, NetMsgBrdReads, NetTxCircHPBrd, NetRxCircPtP, NetTxCircHPPtP, NetRxKBPtP, NetTxKBPtP, NetRxCircBrd, NetTxCircBrd, NetRxKBBrd, NetTxKBBrd, NetCircAttempts, NetCircBackoffs, NetSemInUseMax, NetChanInUseMax, NetGroupInUseMax, NetHWBackoffs, NetMrgTxKB, NetMrgRxKB, NetMrgTxRows, NetTxCircPtP, NetMrgRxRows, HostBlockReads, HostBlockWrites, HostMessageReads, HostMessageWrites, HostReadKB, HostWriteKB, DBLockBlocks, DBLockDeadlocks, FileAcqs, FileAcqKB, FileAcqReads, FileAcqReadKB, FileRels, FileRelKB, FileWrites, FileWriteKB, FilePres, FilePreKB, FilePreReads, FilePreReadKB,

FileLockBlocks, FileLockDeadlocks, FileLockEnters, FileSmallDepotWrites, FileLargeDepotWrites, FileLargeDepotBlocks, MsgChnLastDone, CmdDDLStmts, CmdDeleteStmts, CmdInsertStmts, CmdSelectStmts, CmdUpdateStmts, CmdUtilityStmts, CmdOtherStmts, CmdStmtsInProgCur, CmdStmtSuccesses, CmdStmtFailures, CmdStmtErrors, CmdStmtTime, AwtFlowControlled, AwtFlowCtlCnt, AwtInuse, AwtInuseMax, PSNumRequests, PSQWaitTime, PSServiceTime, SpareCount00, SpareCount01, SpareCount02, SpareCount03, SpareTrack00, SpareTrack01, SpareTrack02, SpareTrack03, SpareTmon00, SpareTmon01, SpareTmon02, SpareTmon03 FROM ResUsageSpma WITH CHECK OPTION; COMMENT ON VIEW DBC.ResGeneralInfoView AS 'View of general system information';

152 Resource Usage Macros and Tables

ResCPUUsageByAMPView
ResCPUUsageByAMPView describes CPU usage per AMP.
REPLACE VIEW DBC.ResCPUUsageByAMPView ( TheDate, TheTime, Vproc, NodeId, Secs, NCPUs, GroupId, AMPWorkTaskExec, AMPWorkTaskServ, AMPMiscUserExec, AMPMiscUserServ, AMPTotalUserExec, AMPTotalUserServ ) AS SELECT TheDate, TheTime, VprId, NodeID, Secs, NCPUs, /* GroupId */

Resource Usage Macros and Tables 153

CASE WHEN NodeId IN ('001-01', '001-03', '001-05') THEN 'A ' WHEN NodeId IN ('001-02', '001-04', '001-06') THEN 'A' ELSE 'A' END, /* AMPWorkTaskExec */ CPUUExecPart11, /* AMPWorkTaskServ */ CPUUServPart11, /* AMPMiscUserExec*/ ( CPUUExecPart01+CPUUExecPart02+CPUUExecPart03 + CPUUExecPart04+CPUUExecPart05+CPUUExecPart06+CPUUExecPart07 + CPUUExecPart08+CPUUExecPart09+CPUUExecPart10 + CPUUExecPart12+CPUUExecPart13+CPUUExecPart14+CPUUExecPart15 + CPUUExecPart16+CPUUExecPart17+CPUUExecPart18+CPUUExecPart19 + CPUUExecPart20+CPUUExecPart21+CPUUExecPart22+CPUUExecPart23 + CPUUExecPart24+CPUUExecPart25+CPUUExecPart26+CPUUExecPart27 + CPUUExecPart28+CPUUExecPart29+CPUUExecPart30+CPUUExecPart31 + CPUUExecPart32+CPUUExecPart33+CPUUExecPart34+CPUUExecPart35 + CPUUExecPart36+CPUUExecPart37+CPUUExecPart38+CPUUExecPart39 + CPUUExecPart40+CPUUExecPart41+CPUUExecPart42+CPUUExecPart43 + CPUUExecPart44+CPUUExecPart45+CPUUExecPart46+CPUUExecPart47), /* AMPMiscUserServ */ ( CPUUServPart01+CPUUServPart02+CPUUServPart03 + CPUUServPart04+CPUUServPart05+CPUUServPart06+CPUUServPart07 + CPUUServPart08+CPUUServPart09+CPUUServPart10 + CPUUServPart12+CPUUServPart13+CPUUServPart14+CPUUServPart15 + CPUUServPart16+CPUUServPart17+CPUUServPart18+CPUUServPart19 + CPUUServPart20+CPUUServPart21+CPUUServPart22+CPUUServPart23 + CPUUServPart24+CPUUServPart25+CPUUServPart26+CPUUServPart27 + CPUUServPart28+CPUUServPart29+CPUUServPart30+CPUUServPart31 + CPUUServPart32+CPUUServPart33+CPUUServPart34+CPUUServPart35 + CPUUServPart36+CPUUServPart37+CPUUServPart38+CPUUServPart39 + CPUUServPart40+CPUUServPart41+CPUUServPart42+CPUUServPart43 + CPUUServPart44+CPUUServPart45+CPUUServPart46+CPUUServPart47), /* AMPTotalUserExec */ (CPUUExecPart00+CPUUExecPart01+CPUUExecPart02+CPUUExecPart03 + CPUUExecPart04+CPUUExecPart05+CPUUExecPart06+CPUUExecPart07 + CPUUExecPart08+CPUUExecPart09+CPUUExecPart10+CPUUExecPart11 + CPUUExecPart12+CPUUExecPart13+CPUUExecPart14+CPUUExecPart15 + CPUUExecPart16+CPUUExecPart17+CPUUExecPart18+CPUUExecPart19 + CPUUExecPart20+CPUUExecPart21+CPUUExecPart22+CPUUExecPart23 + CPUUExecPart24+CPUUExecPart25+CPUUExecPart26+CPUUExecPart27 + CPUUExecPart28+CPUUExecPart29+CPUUExecPart30+CPUUExecPart31 + CPUUExecPart32+CPUUExecPart33+CPUUExecPart34+CPUUExecPart35 + CPUUExecPart36+CPUUExecPart37+CPUUExecPart38+CPUUExecPart39 + CPUUExecPart40+CPUUExecPart41+CPUUExecPart42+CPUUExecPart43 + CPUUExecPart44+CPUUExecPart45+CPUUExecPart46+CPUUExecPart47), /* AMPTotalUserServ */ (CPUUServPart00+CPUUServPart01+CPUUServPart02+CPUUServPart03 + CPUUServPart04+CPUUServPart05+CPUUServPart06+CPUUServPart07 + CPUUServPart08+CPUUServPart09+CPUUServPart10+CPUUServPart11 + CPUUServPart12+CPUUServPart13+CPUUServPart14+CPUUServPart15 + CPUUServPart16+CPUUServPart17+CPUUServPart18+CPUUServPart19 + CPUUServPart20+CPUUServPart21+CPUUServPart22+CPUUServPart23 + CPUUServPart24+CPUUServPart25+CPUUServPart26+CPUUServPart27 + CPUUServPart28+CPUUServPart29+CPUUServPart30+CPUUServPart31 + CPUUServPart32+CPUUServPart33+CPUUServPart34+CPUUServPart35 + CPUUServPart36+CPUUServPart37+CPUUServPart38+CPUUServPart39 + CPUUServPart40+CPUUServPart41+CPUUServPart42+CPUUServPart43 + CPUUServPart44+CPUUServPart45+CPUUServPart46+CPUUServPart47) FROM ResUsageSvpr WHERE VprType like 'AMP%' WITH CHECK OPTION;

ResCPUUsageByPEView
ResCPUUsageByPEView describes CPU usage by each PE.
REPLACE VIEW DBC.ResCPUUsageByPEView ( TheDate, TheTime, Vproc, NodeId, Secs, NCPUs, GroupId, PEDispExec, PEDispServ, PEParsExec, PEParsServ, PESessExec, PESessServ, PEMiscUserExec, PEMiscUserServ, PETotalUserExec, PETotalUserServ ) AS SELECT TheDate, TheTime, VprId, NodeID(FORMAT'999-99'), Secs, NCPUs, /* GroupId */ CASE WHEN NodeId IN ('001-01', '001-03', '001-05') THEN 'A ' WHEN NodeId IN ('001-02', '001-04', '001-06') THEN 'A' ELSE 'A' END, /* PEDispExec */ CPUUExecPart13, /* PEDispServ */ CPUUServPart13, /* PEParsExec */ CPUUExecPart14, /* PEParsServ */ CPUUServPart14, /* PESessExec */ CPUUExecPart12, /* PESessServ */ CPUUServPart12, /* PEMiscUserExec */ ( CPUUExecPart01+CPUUExecPart02+CPUUExecPart03 + CPUUExecPart04+CPUUExecPart05+CPUUExecPart06+CPUUExecPart07 + CPUUExecPart08+CPUUExecPart09+CPUUExecPart10+CPUUExecPart11 + CPUUExecPart15 + CPUUExecPart16+CPUUExecPart17+CPUUExecPart18+CPUUExecPart19 + CPUUExecPart20+CPUUExecPart21+CPUUExecPart22+CPUUExecPart23 + CPUUExecPart24+CPUUExecPart25+CPUUExecPart26+CPUUExecPart27 + CPUUExecPart28+CPUUExecPart29+CPUUExecPart30+CPUUExecPart31 + CPUUExecPart32+CPUUExecPart33+CPUUExecPart34+CPUUExecPart35 + CPUUExecPart36+CPUUExecPart37+CPUUExecPart38+CPUUExecPart39 + CPUUExecPart40+CPUUExecPart41+CPUUExecPart42+CPUUExecPart43 + CPUUExecPart44+CPUUExecPart45+CPUUExecPart46+CPUUExecPart47), /* PEMiscUserServ */ ( CPUUServPart01+CPUUServPart02+CPUUServPart03 + CPUUServPart04+CPUUServPart05+CPUUServPart06+CPUUServPart07 + CPUUServPart08+CPUUServPart09+CPUUServPart10+CPUUServPart11 + CPUUServPart15 + CPUUServPart16+CPUUServPart17+CPUUServPart18+CPUUServPart19 + CPUUServPart20+CPUUServPart21+CPUUServPart22+CPUUServPart23 + CPUUServPart24+CPUUServPart25+CPUUServPart26+CPUUServPart27 + CPUUServPart28+CPUUServPart29+CPUUServPart30+CPUUServPart31 + CPUUServPart32+CPUUServPart33+CPUUServPart34+CPUUServPart35 + CPUUServPart36+CPUUServPart37+CPUUServPart38+CPUUServPart39 + CPUUServPart40+CPUUServPart41+CPUUServPart42+CPUUServPart43 + CPUUServPart44+CPUUServPart45+CPUUServPart46+CPUUServPart47), /* PETotalUserExec */ (CPUUExecPart00+CPUUExecPart01+CPUUExecPart02+CPUUExecPart03 + CPUUExecPart04+CPUUExecPart05+CPUUExecPart06+CPUUExecPart07 + CPUUExecPart08+CPUUExecPart09+CPUUExecPart10+CPUUExecPart11 + CPUUExecPart12+CPUUExecPart13+CPUUExecPart14+CPUUExecPart15 +

154 Resource Usage Macros and Tables

Resource Usage Macros and Tables 155

CPUUExecPart16+CPUUExecPart17+CPUUExecPart18+CPUUExecPart19 + CPUUExecPart20+CPUUExecPart21+CPUUExecPart22+CPUUExecPart23 + CPUUExecPart24+CPUUExecPart25+CPUUExecPart26+CPUUExecPart27 + CPUUExecPart28+CPUUExecPart29+CPUUExecPart30+CPUUExecPart31 + CPUUExecPart32+CPUUExecPart33+CPUUExecPart34+CPUUExecPart35 + CPUUExecPart36+CPUUExecPart37+CPUUExecPart38+CPUUExecPart39 + CPUUExecPart40+CPUUExecPart41+CPUUExecPart42+CPUUExecPart43 + CPUUExecPart44+CPUUExecPart45+CPUUExecPart46+CPUUExecPart47), /* PETotalUserServ */ (CPUUServPart00+CPUUServPart01+CPUUServPart02+CPUUServPart03 + CPUUServPart04+CPUUServPart05+CPUUServPart06+CPUUServPart07 + CPUUServPart08+CPUUServPart09+CPUUServPart10+CPUUServPart11 + CPUUServPart12+CPUUServPart13+CPUUServPart14+CPUUServPart15 + CPUUServPart16+CPUUServPart17+CPUUServPart18+CPUUServPart19 + CPUUServPart20+CPUUServPart21+CPUUServPart22+CPUUServPart23 + CPUUServPart24+CPUUServPart25+CPUUServPart26+CPUUServPart27 + CPUUServPart28+CPUUServPart29+CPUUServPart30+CPUUServPart31 + CPUUServPart32+CPUUServPart33+CPUUServPart34+CPUUServPart35 + CPUUServPart36+CPUUServPart37+CPUUServPart38+CPUUServPart39 + CPUUServPart40+CPUUServPart41+CPUUServPart42+CPUUServPart43 + CPUUServPart44+CPUUServPart45+CPUUServPart46+CPUUServPart47) FROM ResUsageSvpr WHERE VprType like 'PE%' WITH CHECK OPTION;

ResSawtView
ResSawtView is based on the ResUsageSawt table.
REPLACE VIEW DBC.ResSawtView AS SELECT /* housekeeping fields */ TheDate, TheTime, NodeId (FORMAT '999-99') AS NodeId, CASE /* Coexistence reporting support */ WHEN NodeId IN ('001-01', '001-03', '001-05') THEN 'A' WHEN NodeId IN ('001-02', '001-04', '001-06') THEN 'A' ELSE 'A' END AS GroupId, NodeType, GmtTime, Secs, CentiSecs, NominalSecs, CollectIntervals, VprId, SummaryFlag, Reserved, /* Spare Field usage */ SpareCount02 AS SpareCount03 AS SpareTmon00 AS Available, AvailableMin, COD, /* Capacity On Demand */ AS MailBoxDepthAvg,

/* transformed fields */ MailBoxDepth/CollectIntervals

156 Resource Usage Macros and Tables

( WorkTypeInuse00 WorkTypeInuse04 WorkTypeInuse08 WorkTypeInuse12

+ + + +

WorkTypeInuse01 WorkTypeInuse05 WorkTypeInuse09 WorkTypeInuse13 AS AS AS AS AS AS AS AS AS AS AS AS AS AS AS AS AS

+ WorkTypeInuse02 + WorkTypeInuse06 + WorkTypeInuse10 + WorkTypeInuse14 WorkTypeInuseAvg,

+ + + +

WorkTypeInuse03 WorkTypeInuse07 WorkTypeInuse11 WorkTypeInuse15

+ + + ) / CollectIntervals

WorkTypeInuse00/CollectIntervals WorkTypeInuse01/CollectIntervals WorkTypeInuse02/CollectIntervals WorkTypeInuse03/CollectIntervals WorkTypeInuse04/CollectIntervals WorkTypeInuse05/CollectIntervals WorkTypeInuse06/CollectIntervals WorkTypeInuse07/CollectIntervals WorkTypeInuse08/CollectIntervals WorkTypeInuse09/CollectIntervals WorkTypeInuse10/CollectIntervals WorkTypeInuse11/CollectIntervals WorkTypeInuse12/CollectIntervals WorkTypeInuse13/CollectIntervals WorkTypeInuse14/CollectIntervals WorkTypeInuse15/CollectIntervals /* Remaining table fields */ Active, MailBoxDepth, FlowControlled, FlowCtlCnt, FlowCtlTime, InuseMax, WorkTypeInuse00, WorkTypeInuse01, WorkTypeInuse02, WorkTypeInuse03, WorkTypeInuse04, WorkTypeInuse05, WorkTypeInuse06, WorkTypeInuse07, WorkTypeInuse08, WorkTypeInuse09, WorkTypeInuse10, WorkTypeInuse11, WorkTypeInuse12, WorkTypeInuse13, WorkTypeInuse14, WorkTypeInuse15, WorkTypeMax00, WorkTypeMax01, WorkTypeMax02, WorkTypeMax03, WorkTypeMax04, WorkTypeMax05, WorkTypeMax06, WorkTypeMax07, WorkTypeMax08, WorkTypeMax09, WorkTypeMax10, WorkTypeMax11, WorkTypeMax12, WorkTypeMax13, WorkTypeMax14, WorkTypeMax15,

WorkTypeInuse00Avg, WorkTypeInuse01Avg, WorkTypeInuse02Avg, WorkTypeInuse03Avg, WorkTypeInuse04Avg, WorkTypeInuse05Avg, WorkTypeInuse06Avg, WorkTypeInuse07Avg, WorkTypeInuse08Avg, WorkTypeInuse09Avg, WorkTypeInuse10Avg, WorkTypeInuse11Avg, WorkTypeInuse12Avg, WorkTypeInuse13Avg, WorkTypeInuse14Avg, WorkTypeInuse15Avg,

Resource Usage Macros and Tables 157

SpareCount00, SpareCount01, SpareCount02, SpareCount03, SpareCount04, SpareCount05, SpareCount06, SpareCount07, SpareCount08, SpareCount09, SpareTrack00, SpareTrack01, SpareTrack02, SpareTrack03, SpareTrack04, SpareTrack05, SpareTrack06, SpareTrack07, SpareTrack08, SpareTrack09, SpareTmon00, SpareTmon01, SpareTmon02, SpareTmon03, SpareTmon04, SpareTmon05, SpareTmon06, SpareTmon07, SpareTmon08, SpareTmon09 FROM ResUsageSawt WITH CHECK OPTION; COMMENT ON VIEW DBC.ResSawtView AS 'View of Sawt table data';

ResShstGroupView
ResShstGroupView is based on the ResUsageShst table.
REPLACE VIEW DBC.ResShstGroupView ( TheDate, TheTime, NodeId, VprId, HstId, HstType, Secs, NominalSecs, GroupId, CollectIntervals, HostBlockReads, HostBlockWrites, HostMessageReads, HostMessageWrites, HostReadKB, HostWriteKB, HostQLenSum, HostQLenMax, HostReadFails, HostWriteFails ) AS SELECT TheDate, TheTime, NodeId, VprId, HstId, HstType, Secs, /* GroupId */ CASE WHEN NodeId IN ('001-01', '001-03', '001-05') THEN 'A ' WHEN NodeId IN ('001-02', '001-04', '001-06') THEN 'A' ELSE 'A' END, NominalSecs,

CollectIntervals, HostBlockReads, HostBlockWrites, HostMessageReads, HostMessageWrites, HostReadKB, HostWriteKB, HostQLenSum, HostQLenMax, HostReadFails, HostWriteFails FROM ResUsageShst WITH CHECK OPTION;

158 Resource Usage Macros and Tables

ResSldvGroupView
ResSldvGroupView is based on the ResUsageSldv table.
REPLACE VIEW DBC.ResSldvGroupView ( TheDate, TheTime, NodeId, VprId, LdvId, LdvType, Secs, NominalSecs, GroupId, CollectIntervals, LdvOutReqSum, LdvReads, LdvWrites, LdvReadKB, LdvWriteKB, LdvReadRespTot, LdvWriteRespTot, LdvReadRespMax, LdvWriteRespMax, LdvConcurrentMax, LdvOutReqMax, LdvOutReqTime ) AS SELECT TheDate, TheTime, NodeId, VprId, LdvId, LdvType, Secs, NominalSecs, /* GroupId */ CASE WHEN NodeId IN ('001-01', '001-03', '001-05') THEN 'A' WHEN NodeId IN ('001-02', '001-04', '001-06') THEN 'A' ELSE 'A' END, CollectIntervals, LdvOutReqSum, LdvReads, LdvWrites, LdvReadKB, LdvWriteKB, LdvReadRespTot, LdvWriteRespTot, LdvReadRespMax, LdvWriteRespMax, LdvConcurrentMax, LdvOutReqMax, LdvOutReqTime FROM ResUsageSldv WITH CHECK OPTION;

ResSpsView
ResSpsView is based on the ResUsageSps table.
show view ResSpsView; REPLACE VIEW DBC.ResSpsView AS SELECT /* housekeeping fields */ TheDate, TheTime, NodeId (FORMAT '999-99') AS NodeId, CASE /* Coexistence reporting support */ WHEN NodeId IN ('001-01', '001-03', '001-05') THEN 'A' WHEN NodeId IN ('001-02', '001-04', '001-06') THEN 'A' ELSE 'A' END AS GroupId, NodeType, NCPUs, GmtTime, Secs, CentiSecs, NominalSecs, CollectIntervals, PGid, PPid, VprId, VprType, SummaryFlag, /* Spare Field usage */ /* * WorkTimeInuse reports the service time consummed by a WD during the current * reporting interval. This is not the running sum of a WD that * exists over multiple intervals. * Average AWTs used = WorkTimeInuse/(Centisecs*10) * WorkTimeInuseMax reports the maximum service time of a single task in a WD * that is still running or has finished in the current reporting * interval. This includes time used during previous intervals for * that task. This value may be much larger than the reporting period. * ServiceTime reports the time it took a WD to be serviced and is * reported when the AWT is released (task is done). * ServiceTimeMax reports the maximum time it took a single task in a WD * to be serviced that has completed in this reporting interval. * AwtReleases reports the number of AWTs released (completed requests) * while NumRequests reports number that arrived. */ /* Total delay time of messages successfully sent to the workbox */ SpareCount00 AS WorkMsgSendDelay, /* Longest delay of messages successfully sent to the workbox */ SpareCount01 AS WorkMsgSendDelayMax, /* be the total delay time of messages still waiting for AWTs.*/ /* So that would be SpareCount02 */ SpareCount02 AS WorkMsgReceiveDelay, SpareCount03 AS WorkMsgReceiveDelayMax, SpareCount04 AS WorkTimeInuse, /* Average number of AWTs used based on WorkTimeInuse */ SpareCount04/(Centisecs*10) AS AwtUsedAvg, SpareCount05 AS WorkTimeInuseMax,

Resource Usage Macros and Tables 159

/* 13.1 AwtReleases */ SpareCount06 AS AwtReleases, /* number of messages accumulating the send side delay time */ SpareCount07 AS WorkMsgSendDelayCnt, /* number of messages accumulating the receive side delay time */ SpareCount08 AS WorkMsgReceiveDelayCnt, SpareTrack00 AS AMPcount, /* housekeeping field in 14.0 */ /* Capacity On Demand factor. housekeeping field in 14.0 */ SpareTmon00 AS COD, /* transformed fields */ (CpuTime * 10)/(CentiSecs * NCPUs) AS CpuPct,

160 Resource Usage Macros and Tables

/* report average wait time per request for messages */ /* already delivered to AWTs */ QWaitTime / NULLIFZERO(NumRequests) AS QWaitTimeRequestAvg, QLength / ( SpareTrack00 * CollectIntervals ) AS QLengthAmpAvg, /* Avg delay for msgs delivered in period per Request */ WorkMsgSendDelay / NULLIFZERO(WorkMsgSendDelayCnt) AS WorkMsgSendDelayRequestAvg, /* requested by Anita Richards to match WorkMsgSendDelayRequestAvg */ /* avg delay per request on receive side for messages not */ /* yet delivered to AWTs */ WorkMsgReceiveDelay / NULLIFZERO(WorkMsgReceiveDelayCnt) AS WorkMsgReceiveDelayRequestAvg, /* report average service time per request */ ServiceTime / NULLIFZERO(AwtReleases) AS ServiceTimeRequestAvg, (CPUUServAWT + CPUUServDisp + CPUUServMisc) AS CPUUServ, (CPUUExecAWT + CPUUExecDisp + CPUUExecMisc) AS CPUUExec, /* All WorkTypes in use, averaged per AMP */ (WorkTypeInuse00 + WorkTypeInuse01 + WorkTypeInuse02 + WorkTypeInuse03 + WorkTypeInuse04 + WorkTypeInuse05 + WorkTypeInuse06 + WorkTypeInuse07 + WorkTypeInuse08 + WorkTypeInuse09 + WorkTypeInuse10 + WorkTypeInuse11 + WorkTypeInuse12 + WorkTypeInuse13 + WorkTypeInuse14 + WorkTypeInuse15) / ( SpareTrack00 * CollectIntervals ) AS WorkTypeInuseAmp, /* Max of (WorkTypesInuse for all AMPs (NOT per AMP) */ /* Can NOT divide by AMPs. MAX(SUM(AWT[AMP])) */ (WorkTypeMax00 + WorkTypeMax01 + WorkTypeMax02 + WorkTypeMax03 + WorkTypeMax04 + WorkTypeMax05 + WorkTypeMax06 + WorkTypeMax07 + WorkTypeMax08 + WorkTypeMax09 + WorkTypeMax10 + WorkTypeMax11 + WorkTypeMax12 + WorkTypeMax13 + WorkTypeMax14 + WorkTypeMax15) AS WorkTypeInuseMax, (ProcBlksFsgRead + ProcBlksFsgWrite + ProcBlksFsgNIOs) AS IODelay, (ProcWaitFsgRead + ProcWaitFsgWrite + ProcWaitFsgNIOs) AS IODelayTime, (FilePDbAcqs + FilePDbPres) AS LogicalReadPerm, FilePDbDyRRels AS LogicalWritePerm, (FilePDbAcqReads + FilePDbPreReads) AS PhysicalReadPerm, FilePDbFWrites AS PhysicalWritePerm, FilePDbFWriteKB AS PhysicalWritePermKB, (NetPtPReads + NetBrdReads) AS NetReads, (NetPtPWrites + NetBrdWrites) AS NetWrites, (FilePCiAcqs + FileSDbAcqs + FileSCiAcqs + FileTJtAcqs + FileAPtAcqs + FilePCiPres + FileSDbPres + FileSCiPres + FileTJtPres + FileAPtPres) AS LogicalReadOther, (FilePCiAcqReads + FileSDbAcqReads + FileSCiAcqReads + FileTJtAcqReads + FileAPtAcqReads + FilePCiPreReads + FileSDbPreReads + FileSCiPreReads + FileTJtPreReads + FileAPtPreReads) AS PhysicalReadOther, (FilePCiDyRRels + FileSDbDyRRels + FileSCiDyRRels + FileTJtDyRRels + FileAPtDyRRels)

Resource Usage Macros and Tables


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

AS LogicalWriteOther, + FileSCiFWrites + FileTJtFWrites + FileAPtFWrites) AS PhysicalWriteOther, (FilePCiFWriteKB + FileSDbFWriteKB + FileSCiFWriteKB + FileTJtFWriteKB + FileAPtFWriteKB) AS PhysicalWriteOtherKB, (FilePCiFWrites + FileSDbFWrites ( FilePDbAcqKB ( FileSDbAcqKB FilePCiAcqKB FilePCiPresKB ) AS LogicalReadPermKB, + + FileTJtAcqKB + FileAPtAcqKB + + FileTJtPresKB + FileAPtPresKB) AS LogicalReadOtherKB, ( FilePDbPreReadKB + FilePDbAcqReadKB ) AS PhysicalReadPermKB, ( FilePCiAcqReadKB + FileSDbAcqReadKB + FileSCiAcqReadKB + FileTJtAcqReadKB + FileAPtAcqReadKB + FilePCiPreReadKB + FileSDbPreReadKB + FileSCiPreReadKB + FileTJtPreReadKB + FileAPtPreReadKB) AS PhysicalReadOtherKB, FilePDbDyRRelKB AS LogicalWritePermKB, ( FileSDbDyRRelKB + FilePCiDyRRelKB + FileSCiDyRRelKB + FileTJtDyRRelKB + FileAPtDyRRelKB) AS LogicalWriteOtherKB, (ProcBlksSegNoVirtual + ProcBlksSegMDL + ProcBlksSegLock) AS ProcBlksSeg, (ProcWaitSegNoVirtual + ProcWaitSegMDL + ProcWaitSegLock) AS ProcWaitSeg, (ProcBlksMisc + ProcBlksNetThrottle + ProcBlksQnl +ProcBlksTime + ProcBlksFlowControl) AS ProcBlksMisc, /* ProcBlksMonResume = covered by DBLocks */ (ProcWaitMisc + ProcWaitMonResume + ProcWaitNetThrottle +ProcWaitQnl + ProcWaitTime + ProcWaitFlowControl) AS ProcWaitMisc, obsolete Sps table fields removed in 14.0 CPUUServPars, CPUUExecPars, FileFcrRequests, FileFcrRequestsAdaptive, FileFcrBlocksRead, FileFcrBlocksDeniedUser, FileFcrBlocksDeniedKern, FileFcrBlocksDeniedCache, FileFcrBlocksDeniedThreshUser, FileFcrDeniedUser, FileFcrDeniedKern, FileFcrDeniedCache, FileFcrDeniedThreshUser, FileCylMigrs, FileCylAllocs, FileSyncScans, FileSyncSubtables, FileSyncScanners, FileSyncGroups, FileWCylAllocs, FileWCylFrees, MsgChnLastDone, MemCtxtAllocs, MemKBRes, FlowControlled, FlowCtlCnt, AllocatorExtentAllocReqs, AllocatorExtentFreeReqs, AllocatorMapIOsStarted, AllocatorMapIOsDone, NodeAgentMigrationsStarted, NodeAgentMigrationsDone, NodeAgentStatProcessed, + + + + FilePDbPresKB FileSDbPresKB FileSCiAcqKB FileSCiPresKB

161

162 Resource Usage Macros and Tables

/* Remaining table fields */ Active, WDid, AGid, RelWgt, CpuTime, IOBlks, NumProcs, NumSets, NumRequests, QWaitTime,

QWaitTimeMax, QLength, QLengthMax, ServiceTime, ServiceTimeMax, SpareCount00, SpareCount01, SpareCount02, SpareCount03, SpareCount04, SpareCount05, SpareCount06, SpareCount07, SpareCount08, SpareCount09, SpareTrack00, SpareTrack01, SpareTrack02, SpareTrack03, SpareTrack04, SpareTrack05, SpareTrack06, SpareTrack07, SpareTrack08, SpareTrack09, SpareTmon00, SpareTmon01, SpareTmon02, SpareTmon03, SpareTmon04, SpareTmon05, SpareTmon06, SpareTmon07, SpareTmon08, SpareTmon09, CPUUServAWT, CPUUServDisp, CPUUServMisc, CPUUExecAWT, CPUUExecDisp, CPUUExecMisc, MemAllocs, MemAllocKB,

/* QWaitTime = wait time of messages delivered. */ /* WorkMsgReceiveDelay in SpareCount02 is wait time of /* messages still waiting for AWTs. */

*/

/* /* /* /* /* /* /* /* /*

13.1 13.1 13.1 13.1 13.1 13.1 13.1 13.1 13.1

WorkMsgSendDelay WorkMsgSendDelayMax WorkMsgReceiveDelay WorkMsgReceiveDelayMax WorkTimeInuse WorkTimeInuseMax AwtReleases WorkMsgSendDelayCnt WorkMsgReceiveDelayCnt

*/ */ */ */ */ */ */ */

*/ */

/* 13.1 AMPcount

/* 14.0:hdr COD: CodFactor */

Resource Usage Macros and Tables 163

/* AWT fields */ WorkTypeInuse00, WorkTypeInuse01, WorkTypeInuse02, WorkTypeInuse03, WorkTypeInuse04, WorkTypeInuse05, WorkTypeInuse06, WorkTypeInuse07, WorkTypeInuse08, WorkTypeInuse09, WorkTypeInuse10, WorkTypeInuse11, WorkTypeInuse12, WorkTypeInuse13, WorkTypeInuse14, WorkTypeInuse15, WorkTypeMax00, WorkTypeMax01, WorkTypeMax02, WorkTypeMax03, WorkTypeMax04, WorkTypeMax05, WorkTypeMax06, WorkTypeMax07, WorkTypeMax08, WorkTypeMax09, WorkTypeMax10, WorkTypeMax11, WorkTypeMax12, WorkTypeMax13, WorkTypeMax14, WorkTypeMax15, FilePDbAcqs, FilePCiAcqs, FileSDbAcqs, FileSCiAcqs, FileTJtAcqs, FileAPtAcqs, FilePDbAcqKB, FilePCiAcqKB, FileSDbAcqKB, FileSCiAcqKB, FileTJtAcqKB, FileAPtAcqKB, FilePDbAcqReads, FilePCiAcqReads, FileSDbAcqReads, FileSCiAcqReads, FileTJtAcqReads, FileAPtAcqReads, FilePDbAcqReadKB, FilePCiAcqReadKB, FileSDbAcqReadKB, FileSCiAcqReadKB, FileTJtAcqReadKB, FileAPtAcqReadKB,

164 Resource Usage Macros and Tables

FilePDbPres, FilePCiPres, FileSDbPres, FileSCiPres, FileTJtPres, FileAPtPres, FilePDbPresKB, FilePCiPresKB, FileSDbPresKB, FileSCiPresKB, FileTJtPresKB, FileAPtPresKB, FilePDbPreReads, FilePCiPreReads, FileSDbPreReads, FileSCiPreReads, FileTJtPreReads, FileAPtPreReads, FilePDbPreReadKB, FilePCiPreReadKB, FileSDbPreReadKB, FileSCiPreReadKB, FileTJtPreReadKB, FileAPtPreReadKB, FilePDbDyRRels, FilePCiDyRRels, FileSDbDyRRels, FileSCiDyRRels, FileTJtDyRRels, FileAPtDyRRels, FilePDbDyRRelKB, FilePCiDyRRelKB, FileSDbDyRRelKB, FileSCiDyRRelKB, FileTJtDyRRelKB, FileAPtDyRRelKB, FilePDbFWrites, FilePCiFWrites, FileSDbFWrites, FileSCiFWrites, FileTJtFWrites, FileAPtFWrites, FilePDbFWriteKB, FilePCiFWriteKB, FileSDbFWriteKB, FileSCiFWriteKB, FileTJtFWriteKB, FileAPtFWriteKB, NetPtPReads, NetPtPWrites, NetPtPReadKB, NetPtPWriteKB, NetBrdReads, NetBrdWrites,

Resource Usage Macros and Tables 165

/* TVSA fields */ ReadsHot, ReadsWarm, ReadsCold, WritesHot, WritesWarm, WritesCold, /* Process blocking reasons: ProcBlks count of blocks */ ProcBlksSegNoVirtual, ProcBlksFsgNIOs, ProcBlksSegMDL, ProcBlksMonResume, ProcBlksNetThrottle, ProcBlksQnl, ProcBlksFsgRead, ProcBlksFsgWrite, ProcBlksDBLock, ProcBlksMonitor, ProcBlksSegLock, ProcBlksFsgLock, ProcBlksTime, ProcBlksFlowControl, ProcBlksCpuLimit, /* Process blocking reasons: ProcWait time in milliseconds */ ProcWaitSegNoVirtual, ProcWaitFsgNIOs, ProcWaitSegMDL, ProcWaitMonResume, ProcWaitNetThrottle, ProcWaitQnl, ProcWaitFsgRead, ProcWaitFsgWrite, ProcWaitDBLock, ProcWaitMonitor, ProcWaitSegLock, ProcWaitFsgLock, ProcWaitTime, ProcWaitFlowControl, ProcWaitCpuLimit FROM ResUsageSps WITH CHECK OPTION;

ResSvprView
Use the ResSvprView to access the ResUsageSvpr table data. This view allows data to be properly presented and reports all the columns available from the ResUsageSvpr table. Note: The data columns in this view will change as the columns in the ResUsageSvpr table change.
REPLACE VIEW DBC.ResSvprView AS SELECT /* housekeeping fields */ NodeID, thedate, thetime, GmtTime, vprid, VprType, NodeType, NCPUs, Secs, CentiSecs, NominalSecs, CollectIntervals, SummaryFlag, Reserved, /* transformed fields */ /* user defined co-existence system node groupings */ CASE WHEN NodeId IN ('001-01', '001-03', '001-05') THEN 'A' WHEN NodeId IN ('001-02', '001-04', '001-06') THEN 'A' ELSE 'A' END AS GroupId, /* Spare field usage */ SpareCount00 AS DBMergeTried, SpareCount01 AS DBMergeDone, SpareCount02 AS DBMergeElim, SpareCount03 AS DBMergeExtrIO, SpareCount04 AS FileACPCylsSkipped, SpareCount05 AS FileACPCylsMigr, SpareCount06 AS FileACPCylsUnFSEOnly, SpareCount07 AS FileACPCylsPostponed, SpareTmon00 SpareTmon01 SpareTmon02 SpareTmon03 AS AS AS AS COD, FSGCacheWaits, FSGCacheWaitTime, FSGCacheWaitTimeMax,

166 Resource Usage Macros and Tables

/* SVpr table fields (remaining) */ Active, ProcPendDBLock, ProcBlksDBLock, ProcWaitDBLock, MemPDbAllocs, MemPCiAllocs, MemSDbAllocs, MemSCiAllocs,

Resource Usage Macros and Tables 167

MemTJtAllocs, MemAPtAllocs, MemPDbAllocKB, MemPCiAllocKB, MemSDbAllocKB, MemSCiAllocKB, MemTJtAllocKB, MemAPtAllocKB, MemCtxtAllocs, MemCtxtRes, MemPKBResFrz, MemPDbKBResCU, MemPCiKBResCU, MemSDbKBResCU, MemSCiKBResCU, MemTJtKBResCU, MemAPtKBResCU, MemPDbKBResDU, MemPCiKBResDU, MemSDbKBResDU, MemSCiKBResDU, MemTJtKBResDU, MemAPtKBResDU, MemPDbKBResCA, MemPCiKBResCA, MemSDbKBResCA, MemSCiKBResCA, MemTJtKBResCA, MemAPtKBResCA, MemPDbKBResDA, MemPCiKBResDA, MemSDbKBResDA, MemSCiKBResDA, MemTJtKBResDA, MemAPtKBResDA, MemCtxtPageReads, MemCtxtPageWrites, MemSwapDrops, MemSwapDropKB, MemSwapReads, MemSwapReadKB, MemCtxtAccesses, MemCtxtAccessKB, MemCtxtDeaccesses, MemCtxtDeaccessKB, MemCtxtDestroys, MemCtxtDestroyKB, NetPtPReads, NetPtPWrites, NetPtPReadKB, NetPtPWriteKB, NetBrdReads, NetBrdWrites, NetBrdReadKB, NetBrdWriteKB, MsgWorkQLenMax, DBLockEnters, DBLockBlocks, DBLockDeadlocks, DBLockBlocksMax, DBLocksHeldMax, FilePDbAcqs,

FilePCiAcqs, FileSDbAcqs, FileSCiAcqs, FileTJtAcqs, FileAPtAcqs, FilePDbAcqKB, FileSDbAcqKB, FilePCiAcqKB, FileSCiAcqKB, FileTJtAcqKB, FileAPtAcqKB, FilePDbAcqReads, FilePCiAcqReads, FileSDbAcqReads, FileSCiAcqReads, FileTJtAcqReads, FileAPtAcqReads, FilePDbAcqReadKB, FilePCiAcqReadKB, FileSDbAcqReadKB, FileSCiAcqReadKB, FileTJtAcqReadKB, FileAPtAcqReadKB, FilePDbPres, FilePCiPres, FileSDbPres, FileSCiPres, FileTJtPres, FileAPtPres, FilePDbPresKB, FileSDbPresKB, FilePCiPresKB, FileSCiPresKB, FileTJtPresKB, FileAPtPresKB, FilePDbPreReads, FilePCiPreReads, FileSDbPreReads, FileSCiPreReads, FileTJtPreReads, FileAPtPreReads, FilePDbPreReadKB, FileSDbPreReadKB, FilePCiPreReadKB, FileSCiPreReadKB, FileTJtPreReadKB, FileAPtPreReadKB, FilePDbDyRRels, FilePCiDyRRels, FileSDbDyRRels, FileSCiDyRRels, FileTJtDyRRels, FileAPtDyRRels, FilePDbDyRRelKB, FileSDbDyRRelKB, FilePCiDyRRelKB, FileSCiDyRRelKB, FileTJtDyRRelKB, FileAPtDyRRelKB, FilePDbFWrites, FilePCiFWrites, FileSDbFWrites, FileSCiFWrites,

168 Resource Usage Macros and Tables

Resource Usage Macros and Tables 169

FileTJtFWrites, FileAPtFWrites, FilePDbFWriteKB, FilePCiFWriteKB, FileSDbFWriteKB, FileSCiFWriteKB, FileTJtFWriteKB, FileAPtFWriteKB, FilePDbDyAWrites, FilePCiDyAWrites, FileSDbDyAWrites, FileSCiDyAWrites, FileTJtDyAWrites, FileAPtDyAWrites, FilePDbDyAWriteKB, FilePCiDyAWriteKB, FileSDbDyAWriteKB, FileSCiDyAWriteKB, FileTJtDyAWriteKB, FileAPtDyAWriteKB, FilePDbCnRRels, FilePCiCnRRels, FileSDbCnRRels, FileSCiCnRRels, FileTJtCnRRels, FileAPtCnRRels, FilePDbCnRRelKB, FileSDbCnRRelKB, FilePCiCnRRelKB, FileSCiCnRRelKB, FileTJtCnRRelKB, FileAPtCnRRelKB, FilePDbFDrps, FilePCiFDrps, FileSDbFDrps, FileSCiFDrps, FileTJtFDrps, FileAPtFDrps, FilePDbFDrpKB, FileSDbFDrpKB, FilePCiFDrpKB, FileSCiFDrpKB, FileTJtFDrpKB, FileAPtFDrpKB, FilePDbCnADrps, FilePCiCnADrps, FileSDbCnADrps, FileSCiCnADrps, FileTJtCnADrps, FileAPtCnADrps, FilePDbCnADrpKB, FilePCiCnADrpKB, FileSDbCnADrpKB, FileSCiCnADrpKB, FileTJtCnADrpKB, FileAPtCnADrpKB, FileLockEnters, FileLockBlocks, FileLockDeadlocks, FileCylMigrs, FileCylAllocs, FileCylFrees, FileMCylPacks,

FileCylDefrags, FileWCylAllocs, FileWCylFrees, FileFcrRequests, FileFcrRequestsAdaptive, FileFcrDeniedUser, FileFcrDeniedCache, FileFcrDeniedThreshUser, FileFcrBlocksRead, FileFcrBlocksDeniedUser, FileFcrBlocksDeniedCache, FileFcrBlocksDeniedThreshUser, FileFcrDeniedKern, FileFcrDeniedThreshKern, FileFcrBlocksDeniedKern, FileFcrBlocksDeniedThreshKern, FileSyncScans, FileSyncSubtables, FileSyncScanners, FileSyncGroups, MsgChnLastDone, MsgWorkQLenSum, DBLockBlocksSum, DBLocksHeldSum, CPUUServPart00, CPUUServPart01, CPUUServPart02, CPUUServPart03, CPUUServPart04, CPUUServPart05, CPUUServPart06, CPUUServPart07, CPUUServPart08, CPUUServPart09, CPUUServPart10, CPUUServPart11, CPUUServPart12, CPUUServPart13, CPUUServPart14, CPUUServPart15, CPUUServPart16, CPUUServPart17, CPUUServPart18, CPUUServPart19, CPUUServPart20, CPUUServPart21, CPUUServPart22, CPUUServPart23, CPUUServPart24, CPUUServPart25, CPUUServPart26, CPUUServPart27, CPUUServPart28, CPUUServPart29, CPUUServPart30, CPUUServPart31, CPUUServPart32, CPUUServPart33, CPUUServPart34, CPUUServPart35, CPUUServPart36, CPUUServPart37, CPUUServPart38,

170 Resource Usage Macros and Tables

Resource Usage Macros and Tables 171

CPUUServPart39, CPUUServPart40, CPUUServPart41, CPUUServPart42, CPUUServPart43, CPUUServPart44, CPUUServPart45, CPUUServPart46, CPUUServPart47, CPUUExecPart00, CPUUExecPart01, CPUUExecPart02, CPUUExecPart03, CPUUExecPart04, CPUUExecPart05, CPUUExecPart06, CPUUExecPart07, CPUUExecPart08, CPUUExecPart09, CPUUExecPart10, CPUUExecPart11, CPUUExecPart12, CPUUExecPart13, CPUUExecPart14, CPUUExecPart15, CPUUExecPart16, CPUUExecPart17, CPUUExecPart18, CPUUExecPart19, CPUUExecPart20, CPUUExecPart21, CPUUExecPart22, CPUUExecPart23, CPUUExecPart24, CPUUExecPart25, CPUUExecPart26, CPUUExecPart27, CPUUExecPart28, CPUUExecPart29, CPUUExecPart30, CPUUExecPart31, CPUUExecPart32, CPUUExecPart33, CPUUExecPart34, CPUUExecPart35, CPUUExecPart36, CPUUExecPart37, CPUUExecPart38, CPUUExecPart39, CPUUExecPart40, CPUUExecPart41, CPUUExecPart42, CPUUExecPart43, CPUUExecPart44, CPUUExecPart45, CPUUExecPart46, CPUUExecPart47, AllocatorExtentAllocReqs, AllocatorExtentFreeReqs, AllocatorMapIOsStarted, AllocatorMapIOsDone, NodeAgentMigrationsStarted, NodeAgentMigrationsDone,

NodeAgentStatProcessed, ReadResponseHotTotal, ReadResponseWarmTotal, ReadResponseColdTotal, WriteResponseHotTotal, WriteResponseWarmTotal, WriteResponseColdTotal, ReadsHot, ReadsWarm, ReadsCold, WritesHot, WritesWarm, WritesCold, ReadResponseHotMax, ReadResponseWarmMax, ReadResponseColdMax, ReadResponseHotMin, ReadResponseWarmMin, ReadResponseColdMin, WriteResponseHotMax, WriteResponseWarmMax, WriteResponseColdMax, WriteResponseHotMin, WriteResponseWarmMin, WriteResponseColdMin, IoRespMax, IoGapMax, MIWrites, MIWriteTime, MIWriteTimeMax, MIWriteLocks, MIWriteLockTime, MIWriteLockTimeMax, MISleeps, MISleepTime, MISleepTimeMax, SpareCount00, SpareCount01, SpareCount02, SpareCount03, SpareCount04, SpareCount05, SpareCount06, SpareCount07, SpareCount08, SpareCount09, SpareTrack00, SpareTrack01, SpareTrack02, SpareTrack03, SpareTrack04, SpareTrack05, SpareTrack06, SpareTrack07, SpareTrack08, SpareTrack09, SpareTmon00, SpareTmon01, SpareTmon02, SpareTmon03, SpareTmon04, SpareTmon05, SpareTmon06,

172 Resource Usage Macros and Tables

Resource Usage Macros and Tables 173

SpareTmon07, SpareTmon08, SpareTmon09 FROM ResUsageSvpr WITH CHECK OPTION; COMMENT ON VIEW DBC.ResSvprView AS 'View of ResUsageSvpr (per Vproc) table data';

Chapter 14: Resource Usage Views ResSvprView

174

Resource Usage Macros and Tables

Chapter 15: Resource Usage Macros Macro Output Format

CHAPTER 15

Resource Usage Macros

This chapter describes the output format of the resource usage macros and each macro.

Macro Output Format


Resource usage macros provide output in the following general format.
<Report Date> <Title of Report> --------------1st 2nd 1st Date Time Type Id Id Stat -------- -------- ---- ------ ------ ------99/99/99 99:99:99 AAAA 999-99 999-99 999.99% 999.99% ........... AAAA 999-99 999-99 999.99% 999-99 999-99 999.99% 99:99:99 AAAA 999-99 999-99 999.99% ........... Page <num> 2nd 3rd Stat Stat ... -------- -------99999.99 99999.99 99999.99 99999.99 99999.99 99999.99 99999.99 99999.99 99999.99 99999.99

where:
Column Date Time Type 1st ID, 2nd ID, and so on Description The date at the end of a log interval. The time at the end of a log interval. Statistics on each line cover the time period ending at the indicated time. A virtual processor type, logical device type, host type, or a special type for certain reports. The appropriate identifier, which varies, depending on the macro. It is one or more of the following: 1st Stat, 2nd Stat, and so on NodeID VprocID HostID GroupID

The appropriate statistics. Details are given with the descriptions of each macro in this chapter. Numbers are generally displayed with the appropriate fixed format (for example, 'zzzz9.99') unless the number represents a percentage or sum of percentages. Percentages are displayed with the appropriate format (for example, 'zz9.9%', 'zz9' or 'zz9.99').

Resource Usage Macros and Tables

175

Chapter 15: Resource Usage Macros Macro Output Format

Unless otherwise specified, all statistical numbers are expressed as either: Percentage Milliseconds (ms) Kilobytes (KBs)

Columns whose values depend on the logging rate are never reported as raw data. Instead, they are converted to a normalized value, such as per second. All reports are ordered by date, time, type, 1st ID, 2nd ID, and so on. Repeated date, time, type, and ID column values are suppressed until a new row presents a different value.

Question Marks
Question marks used as values in the output examples are generated when a division by zero is made. It represents data that is not available. The numbers in the columns are calculated, for example, by dividing KBs by number of blocks read. When there are no blocks read, KB is divided by zero. A question mark does not mean there is an error, but indicates that there is no information to report for this time period.

Usage Notes
To get current data, logging must be enabled on the ResUsage table used by the view or macro.

176

Resource Usage Macros and Tables

Chapter 15: Resource Usage Macros ResAWT Macros

ResAWT Macros
Function
Macro... ResAWT ResAWTByAMP ResAWTByNode Collects and reports the average AWT... in use for all AMPs in the system. in use for each AMP. on all AMPs in each node.

Input Format Examples


The input forms of these three macros are described below.
EXEC ResAWT (FromDate,ToDate,FromTime,ToTime); EXEC ResAWTByAMP (FromDate,ToDate,FromTime,ToTime); EXEC ResAWTByNode (FromDate,ToDate,FromTime,ToTime,FromNode,ToNode);

See Executing Macros on page 32 for a description of the FromDate, ToDate, FromTime, ToTime, FromNode, ToNode and Node parameters.

Usage Notes
For any of these macros the following usage notes apply: Logging must be enabled on ResUsageSawt. Name the node log rate.

Output Examples
The reports in the following sections are sample output reports from the ResAWT, ResAWTByAMP, and ResAWTByNode macros. In the ResAWT output report, the 22 statistics columns, after the Date and Time columns, provide a summary of the AWTs resource usage. The following table describes the 24 statistics columns, after the Date and Time columns, in the ResAWTByAMP output.
Statistics columns 1 2 3 through 24 Description Node ID. AMP ID. Summary of AWTs resource usage.

Resource Usage Macros and Tables

177

Chapter 15: Resource Usage Macros ResAWT Macros

The following table describes the 23 statistics columns, after the Date and Time columns, in the ResAWTByNode output report.
Statistics columns 1 2 through 23 Description Node ID. Summary of AWTs resource usage.

The following table describes the columns in all output reports (with the exception of ResAWTByNode, which has the NodeId column, and ResAWTByAMP, which has the Node ID and AMP ID columns).
Column... Mail box Depth In Flow Ctl? Flow Ctls Per Sec Work Type In Use Work New AWTs Work One AWTs New + One AWTs Work Two AWTs Work 3 AWTs Work Abrt AWTs Work Spwn AWTs Work Norm AWTs Reports the... current depth of the AMP work mailbox. AMP that is or is not in flow control. number of times during the log period that the system entered the flow control state from a non-flow controlled state. current number of AWTs in use during the log period for each new work type for the VprId vproc. current number of AWTs in use during the log period for each new first-level secondary work type for the VprId vproc. current number of AWTs in use during the log period for each first-level secondary work type for the VprId vproc. summary of the previous two columns: Work New AWTs and Work One AWTs. current number of AWTs in use during the log period for each second-level secondary work type for the VprId vproc. current number of AWTs in use during the log period for each third-level secondary work type for the VprId vproc. current number of AWTs in use during the log period for each transaction abort request for the VprId vproc. current number of AWTs in use during the log period for each spawned abort request for the VprId vproc. current number of AWTs in use during the log period for each message that does not fall within the standard work type hierarchy for the VprId vproc. Note: This column is not currently used.

Work Ctl AWTs

178

Resource Usage Macros and Tables

Chapter 15: Resource Usage Macros ResAWT Macros

Column... Work Exp AWTs

Reports the... current number of AWTs in use during the log period for each expedited Allocation Groups for the VprId vproc. (Expedited Allocation Groups exist when using the reserved AWT pool. See the "Priority Scheduler (schmon) chapter in Utilities for details.) the maximum number of AWTs in use at one time during the log period for each new work type for the VprId vproc. the maximum number of AWTs in use at one time during the log period for each first-level secondary work type for the VprId vproc. the maximum number of AWTs in use at one time during the log period for each second-level secondary work type for the VprId vproc. the maximum number of AWTs in use at one time during the log period for each third-level secondary work type for the VprId vproc. the maximum number of AWTs in use at one time during the log period for each transaction abort request for the VprId vproc. the maximum number of AWTs in use at one time during the log period for each spawned abort request for the VprId vproc. the maximum number of AWTs in use at one time during the log period for each message that does not fall within the standard work type hierarchy for the VprId vproc. Note: This column is not currently used. the maximum number of AWTs in use at one time during the log period for each expedited Allocation Groups for the VprId vproc. (Expedited Allocation Groups exist when using the reserved AWT pool. See the "Priority Scheduler (schmon)" chapter in Utilities for details.)

Max Work New AWTs Max Work One AWTs

Max Work Two AWTs

Max Work 3 AWTs

Max Work Abrt AWTs Max Work Spwn AWTs Max Work Norm AWTs

Max Work Ctl AWTs Max Work Exp AWTs

For a complete description of the columns above, see Chapter 7: ResUsageSawt Table.

Resource Usage Macros and Tables

179

ResAWT Sample Output


07/08/17 AMP Worker Task Summary Average Usage per AMP Across System Max Work Abrt AWTs ---1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Max Work Spwn AWTs ---0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Max Max Max Work Work Work Norm Ctl Exp AWTs AWTs AWTs ---- ---- --0 0 3 0 0 2 0 0 2 0 0 3 0 0 3 0 0 4 0 0 3 0 0 3 0 0 3 0 0 4 0 0 3 0 0 3 0 0 3 0 0 4 0 0 3 0 0 3 0 0 4 0 0 4 0 0 4 0 0 3 0 0 4 0 0 3 0 0 3 Page 1 Max Max Max Max Mail In Flow Work Work New+ Work Work Work Work Work Work Work Work Work Work Work Box Flow Ctls New One One Two 3 Abrt Spwn Norm Ctl Exp New One Two 3 Date Time Depth Ctl? PerSec AWTs AWTs AWTs AWTs AWTs AWTs AWTs AWTs AWTs AWTs AWTs AWTs AWTs AWTs -------- -------- ------ ----- ------ ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---07/08/12 23:00:00 8 1.00 0.01 31 22 54 0 0 0 0 0 0 0 35 25 2 1 23:01:00 9 0.00 0.02 28 25 54 0 0 0 0 0 0 0 33 27 1 1 23:02:00 6 0.00 0.00 31 22 54 0 0 0 0 0 0 0 35 26 1 1 23:03:00 3 0.00 0.00 31 22 53 0 0 0 0 0 0 0 35 26 1 1 23:04:00 2 0.00 0.00 31 22 52 0 0 0 0 0 0 0 36 27 1 1 23:05:00 5 0.00 0.00 31 22 53 0 0 0 0 0 0 0 36 26 1 1 23:06:00 3 0.00 0.00 27 24 51 0 0 0 0 0 0 0 34 27 1 1 23:07:00 1 0.00 0.00 21 19 40 0 0 0 0 0 0 1 35 29 1 1 23:08:00 1 0.00 0.00 26 20 46 0 0 0 0 0 0 0 35 29 1 1 23:09:00 2 0.00 0.00 30 20 50 0 0 0 0 0 0 0 37 26 1 1 23:10:00 1 0.00 0.00 29 16 46 0 0 0 0 0 0 0 38 25 2 1 23:11:00 2 0.00 0.00 30 19 49 0 0 0 0 0 0 0 38 27 1 1 23:12:00 2 0.00 0.00 31 21 52 0 0 0 0 0 0 0 37 26 1 1 23:13:00 1 0.00 0.00 29 19 49 0 0 0 0 0 0 0 36 26 1 1 23:14:00 1 0.00 0.00 29 18 47 0 0 0 0 0 0 0 36 25 1 1 23:15:00 2 0.00 0.00 29 19 48 0 0 0 0 0 0 0 37 25 2 1 23:16:00 3 0.00 0.00 34 18 52 0 0 0 0 0 0 0 37 25 1 1 23:17:00 6 0.00 0.00 35 19 54 0 0 0 0 0 0 0 40 22 1 1 23:18:00 8 0.00 0.00 30 23 53 0 0 0 0 0 0 0 37 24 1 1 23:19:00 1 0.00 0.01 25 24 49 0 0 0 0 0 0 0 36 30 1 1 23:20:00 1 0.00 0.00 28 18 46 0 0 0 0 0 0 0 36 30 2 2 23:21:00 7 0.00 0.01 34 20 54 0 0 0 0 0 0 0 36 26 1 1 23:22:00 2 0.00 0.01 30 22 53 0 0 0 0 0 0 0 36 27 1 1

180 Resource Usage Macros and Tables

ResAWTByAMP Sample Output


07/08/17 AMP Worker Task Summary Usage per AMP Max Work New AWTs ---33 34 34 34 34 35 35 34 34 33 34 34 34 33 34 34 34 34 33 34 32 33 33 33 Max Work One AWTs ---24 24 24 24 25 23 24 23 23 25 24 24 24 24 24 24 24 24 25 24 26 26 25 26 Max Work Two AWTs ---2 1 1 1 1 1 1 1 2 0 1 1 0 0 1 1 1 1 1 0 0 0 0 0 Max Max Max Max Work Work Work Work 3 Abrt Spwn Norm AWTs AWTs AWTs AWTs ---- ---- ---- ---1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 Max Work Ctl AWTs ---0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Max Work Exp AWTs ---3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 2 1 1 1 Page 1

Mail In Flow Work AMP Box Flow Ctls New Date Time ID Depth Ctl? PerSec AWTs -------- -------- ------ ------ ----- -----07/08/12 23:00:00 0 3 0.00 0.00 31 1 1 0.00 0.00 32 2 12 0.00 0.00 31 3 14 0.00 0.00 32 4 4 0.00 0.00 32 5 11 0.00 0.00 32 6 12 0.00 0.00 30 7 17 0.00 0.00 32 8 5 0.00 0.00 31 9 4 0.00 0.00 32 10 1 0.00 0.00 30 15 0.00 0.00 32 12 7 0.00 0.00 32 13 1 0.00 0.00 29 14 1 0.00 0.00 31 15 4 0.00 0.00 32 16 27 1.00 0.22 31 17 5 0.00 0.00 32 18 1 0.00 0.00 29 19 11 0.00 0.02 32 23:01:00 0 1 2 3 14 11 19 12 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 28 29 29 28

Work One AWTs ---22 22 23 22 22 22 24 22 23 22 23 22 22 24 23 22 23 22 23 22 25 25 25 26

New+ One AWTs ---53 54 54 54 54 54 54 54 54 54 53 54 54 53 54 54 54 54 52 54 53 54 54 54

Work Work Work Work Work Two 3 Abrt Spwn Norm AWTs AWTs AWTs AWTs AWTs ---- ---- ---- ---- ---0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0

Work Ctl AWTs ---0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Work Exp AWTs ---0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Resource Usage Macros and Tables


07/08/17

4 5 6 7 8 9 10 11 12 13 14 15 16 23:02:00 0 1 2

3 13 19 8 12 3 4 13 3 1 1 11 10 9 6 1

0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00

0.00 0.00 0.13 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.17 0.00 0.00 0.00

29 29 28 29 29 28 29 29 30 26 26 28 29 31 31 31

25 25 26 25 25 26 25 25 24 26 25 26 25 22 23 23

54 54 54 54 54 54 54 54 54 52 51 54 54 53 54 54

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

33 32 32 32 33 33 33 32 32 31 33 32 32 33 32 34

26 25 26 26 26 26 26 25 25 26 26 26 27 25 26 25

0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0

0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

1 1 1 1 1 2 1 2 2 2 1 1 2 2 2 2

ResAWTByNode Sample Output


AMP Worker Task Summary Average Usage per AMP By Node Page Max Work New AWTs ---35 33 35 35 36 36 34 35 35 37 38 38 37 36 36 37 37 40 37 36 36 Max Work One AWTs ---25 27 26 26 27 26 27 29 29 26 25 27 26 26 25 25 25 22 24 30 30 Max Work Two AWTs ---2 1 1 1 1 1 1 1 1 1 2 1 1 1 1 2 1 1 1 1 2 1 Max Work Ctl AWTs ---0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Max Work Exp AWTs ---3 2 2 3 3 4 3 3 3 4 3 3 3 4 3 3 4 4 4 3 4 Max Max Max Max Work Work Work Work 3 Abrt Spwn Norm AWTs AWTs AWTs AWTs ---- ---- ---- ---1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 2 1 0 0

Mail In Node Box Flow Date Time ID Depth Ctl? -------- -------- ------ ------ ----07/08/12 23:00:00 1-04 8 1.00 23:01:00 1-04 9 0.00 23:02:00 1-04 6 0.00 23:03:00 1-04 3 0.00 23:04:00 1-04 2 0.00 23:05:00 1-04 5 0.00 23:06:00 1-04 3 0.00 23:07:00 1-04 1 0.00 23:08:00 1-04 1 0.00 23:09:00 1-04 2 0.00 23:10:00 1-04 1 0.00 23:11:00 1-04 2 0.00 23:12:00 1-04 2 0.00 23:13:00 1-04 1 0.00 23:14:00 1-04 1 0.00 23:15:00 1-04 2 0.00 23:16:00 1-04 3 0.00 23:17:00 1-04 6 0.00 23:18:00 1-04 8 0.00 23:19:00 1-04 1 0.00 23:20:00 1-04 1 0.00

Flow Ctls PerSec -----0.01 0.02 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.01 0.00

Work New AWTs ---31 28 31 31 31 31 27 21 26 30 29 30 31 29 29 29 34 35 30 25 28

Work One AWTs ---22 25 22 22 22 22 24 19 20 20 16 19 21 19 18 19 18 19 23 24 18

New+ One AWTs ---54 54 54 53 52 53 51 40 46 50 46 49 52 49 47 48 52 54 53 49 46

Work Work Work Work Work Two 3 Abrt Spwn Norm AWTs AWTs AWTs AWTs AWTs ---- ---- ---- ---- ---0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Work Ctl AWTs ---0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Work Exp AWTs ---0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0

181

Chapter 15: Resource Usage Macros ResCPUByAMP Macros

ResCPUByAMP Macros
Function
Macro... ResCPUByAMP ResCPUByAMPOneNode ResAmpCpuByGroup Reports the following... how each AMP on each node utilizes the CPUs. how each AMP on a specific node utilizes the CPUs. the summary of AMP CPU usage by node grouping.

Input Format Examples


The input forms of these three macros are described below.
EXECUTE ResCPUByAMP (FromDate,ToDate,FromTime,ToTime,FromNode,ToNode); EXECUTE ResCPUByAMPOneNode (FromDate,ToDate,FromTime,ToTime,Node); EXECUTE ResAmpCpuByGroup (FromDate,ToDate,FromTime,ToTime);

See Executing Macros on page 32 for a description of the FromDate, ToDate, FromTime, ToTime, FromNode, ToNode and Node parameters.

Usage Notes
For any of these macros the following usage notes apply: Logging must have been enabled on ResUsageSvpr at some time before macro execution. See Chapter 2: Planning Your Resource Usage Data for an explanation of how to enable/ disable logging. Name the node log rate. Note: It is not necessary that logging for the table and the rate be enabled at the moment the macro is executed. For a description of partitions and partition assignments in Teradata Database, see Appendix D: Partition Assignments.

Output Examples
The reports in the following sections are sample output reports from the ResCPUByAMP, the ResCPUByAMPOneNode, and the ResAmpCpuByGroup macros, respectively, where:
Column... Awt User Serv% Reports the percent of time AMPs were busy doing user... service for the AMP Worker Task (Awt) partition.

182

Resource Usage Macros and Tables

Chapter 15: Resource Usage Macros ResCPUByAMP Macros

Column... Misc User Serv% Awt User Exec% Misc User Exec% Total User Serv% Total User Exec% Total Busy%

Reports the percent of time AMPs were busy doing user... service for miscellaneous (all other except Partition 0) AMP partitions. execution within the AMP Worker Task (Awt) partition. execution within miscellaneous (all other except Partition 0) AMP partitions. servicea work. This is the sum of the Awt User Serv%, the Misc User Serv%, and AMP Partition 0 user service%.a executionb work. This is the sum of the Awt User Exec%, Misc User Exec%, and AMP Partition 0 user execution.b service and execution work. This is the sum of the Total User Serv% and the Total User Exec% columns.

a. Service is the time that a CPU is busy executing user service code, which is privileged work performing system-level services on behalf of user execution processes that do not have root privileges. b. Execution is the time a CPU is busy executing user execution code, which is the time spent in a user state on behalf of a process.

Note: The above CPU statistics represent the aggregate of all time spent in the indicated way by all CPUs on the node. Because there are multiple CPUs, the Total Busy % should be compared to a theoretical maximum of 100% times the number of CPUs on the node. The Node CPU column in the following sample outputs reports the number of CPUs (NCPUs). For more information on how to monitor busy AMP Worker Tasks (AWTs), see "AWT Monitor (awtmon)" in Utilities.

ResCPUByAMP Sample Output


01/07/12 Vproc Id ----0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 Node Id -----001-01 001-01 001-01 001-01 001-01 001-01 001-01 001-01 001-01 001-01 001-01 001-01 001-01 001-01 001-01 001-01 001-01 001-01 Node CPUs -------4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 CPU USAGE BY AMP Awt User Serv% ------0.36% 0.26% 0.41% 0.34% 0.25% 0.19% 0.38% 0.31% 0.31% 0.36% 0.39% 0.32% 0.29% 0.21% 0.30% 0.30% 0.40% 0.26% Misc User Serv% ------0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% Awt User Exec% ------0.05% 0.12% 0.12% 0.05% 0.18% 0.06% 0.08% 0.09% 0.08% 0.09% 0.11% 0.12% 0.11% 0.09% 0.06% 0.19% 0.09% 0.08% Misc User Exec% ------0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% Page Total User Serv% ------0.36% 0.30% 0.45% 0.38% 0.28% 0.29% 0.45% 0.34% 0.34% 0.40% 0.41% 0.36% 0.30% 0.22% 0.31% 0.32% 0.46% 0.38% 1 Total User Exec% ------0.05% 0.12% 0.12% 0.05% 0.18% 0.06% 0.08% 0.09% 0.08% 0.09% 0.11% 0.12% 0.11% 0.09% 0.06% 0.19% 0.09% 0.08% Total Busy % ------0.41% 0.42% 0.58% 0.42% 0.45% 0.35% 0.52% 0.42% 0.41% 0.49% 0.52% 0.49% 0.41% 0.31% 0.38% 0.51% 0.55% 0.45%

Date -------01/07/12

Time -------09:57:00 09:57:20 09:57:40 09:58:00 09:58:20 09:58:40 09:59:00 09:59:20 09:59:40

Resource Usage Macros and Tables

183

Chapter 15: Resource Usage Macros ResCPUByAMP Macros

10:00:00

0 1

001-01 001-01

4 4

0.32% 0.28%

0.00% 0.00%

0.08% 0.09%

0.00% 0.00%

0.34% 0.31%

0.08% 0.09%

0.41% 0.40%

Note: The NodeID column only appears in the ResCPUByAMP output report.

ResCPUByAMPOneNode Sample Output


01/07/12 CPU Usage by AMP for Node 001-01 (4 CPUs) Vproc Id ----0 1 0 1 0 1 0 1 0 1 0 1 0 1 Awt User Serv% ------0.36% 0.26% 0.41% 0.34% 0.25% 0.19% 0.38% 0.31% 0.31% 0.36% 0.39% 0.32% 0.29% 0.21% Misc User Serv% ------0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% Awt User Exec% ------0.05% 0.12% 0.12% 0.05% 0.18% 0.06% 0.08% 0.09% 0.08% 0.09% 0.11% 0.12% 0.11% 0.09% Misc User Exec% ------0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% Total User Serv% ------0.36% 0.30% 0.45% 0.38% 0.28% 0.29% 0.45% 0.34% 0.34% 0.40% 0.41% 0.36% 0.30% 0.22% Page Total User Exec% ------0.05% 0.12% 0.12% 0.05% 0.18% 0.06% 0.08% 0.09% 0.08% 0.09% 0.11% 0.12% 0.11% 0.09% 68 Total Busy % ------0.41% 0.42% 0.58% 0.42% 0.45% 0.35% 0.52% 0.42% 0.41% 0.49% 0.52% 0.49% 0.41% 0.31%

Date -------01/07/12

Time -------09:57:00 09:57:20 09:57:40 09:58:00 09:58:20 09:58:40 09:59:00

NCPUs ----4 4 4 4 4 4 4 4 4 4 4 4 4 4

ResAmpCpuByGroup Sample Output


01/07/12 Group Id ----A A A A A A A A A A A A A A Node CPUs -------4 4 4 4 4 4 4 4 4 4 4 4 4 4 AMP CPU USAGE BY GROUP Awt User Serv% ------0.32% 0.33% 0.35% 0.36% 0.27% 0.29% 0.36% 0.35% 0.34% 0.41% 0.28% 0.35% 0.34% 0.26% Misc User Serv% ------0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% Awt User Exec% ------0.07% 0.08% 0.07% 0.09% 0.09% 0.06% 0.06% 0.11% 0.07% 0.04% 0.09% 0.09% 0.06% 0.08% Misc User Exec% ------0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% Total User Serv% ------0.36% 0.36% 0.37% 0.39% 0.28% 0.34% 0.40% 0.38% 0.36% 0.43% 0.28% 0.43% 0.42% 0.29% Page Total User Exec% ------0.07% 0.08% 0.07% 0.09% 0.09% 0.06% 0.06% 0.11% 0.07% 0.04% 0.09% 0.09% 0.06% 0.08% 45 Total Busy % ------0.43% 0.44% 0.44% 0.48% 0.37% 0.40% 0.46% 0.49% 0.43% 0.47% 0.37% 0.53% 0.48% 0.37%

Date -------01/07/12

Time -------09:51:40 09:52:00 09:52:20 09:52:40 09:53:00 09:53:20 09:53:40 09:54:00 09:54:20 09:54:40 09:55:00 09:55:20 09:55:40 09:56:00

Note: The GroupID column only appears in the ResAmpCpuByGroup output report.

Normalized Viewing of CPU Usage by AMP


Some users may prefer to view CPU usage by AMP in a normalized fashion. Conceptually, this restates each of the above statistics in terms of percentage of total CPU capacity of the node.

184

Resource Usage Macros and Tables

Chapter 15: Resource Usage Macros ResCPUByAMP Macros

The following SQL example shows how to perform this normalization for the Total Busy % statistic.
SEL TheDate, TheTime, Vproc, NodeId, (AmpTotalUserExec+AmpTotalUserServ) /Secs/NCPUs (FORMAT zz9%,TITLE Total// Busy// %) FROM ResCpuUsageByAMPView WHERE TheDate = CURRENT_DATE AND TheTime>080000 ORDER BY 1,2,3;

Resource Usage Macros and Tables

185

Chapter 15: Resource Usage Macros ResCPUByPE Macros

ResCPUByPE Macros
Function
Macro... ResCPUByPE ResCPUByPEOneNode ResPeCpuByGroup Reports... how each PE on each node is utilizing the CPUs. how each PE on a specific node is utilizing the CPUs. the PE CPU utilization summarized by a node grouping.

Input Format Examples


The input forms of the these three macros are described below.
EXEC ResCPUByPE (FromDate,ToDate,FromTime,ToTime,FromNode,ToNode); EXEC ResCPUByPEOneNode (FromDate,ToDate,FromTime,ToTime,Node); EXEC ResPeCpuByGroup (FromDate,ToDate,FromTime,ToTime);

See Executing Macros on page 32 for a description of the FromDate, ToDate, FromTime, ToTime, FromNode, ToNode and Node parameters.

Usage Notes
For any of these macros the following usage notes apply: Logging must be enabled on ResUsageSvpr. Name the node log rate.

Output Examples
The reports in the following sections are sample output reports from the ResCPUByPE, ResCPUByPEOneNode, and ResPeCPUByGroup macros, respectively, where:
Column... Pars User Serv% Disp User Serv% Ses User Serv% Misc User Serv% Pars User Exec% Disp User Exec% Reports the percent of time PEs are busy doing user... servicea for the Parser partition of the PE.a service for the Dispatcher partition of the PE. service for the Session Control partition of the PE. service for miscellaneous (all other, except Partition 0) PE partitions. execution bwithin the Parser partition of the PE.b execution within the Dispatcher partition of the PE.

186

Resource Usage Macros and Tables

Chapter 15: Resource Usage Macros ResCPUByPE Macros

Column... Ses User Exec% Misc User Exec% Total User Serv% Total User Exec% Total Busy%

Reports the percent of time PEs are busy doing user... execution within the Session Control partition of the PE. execution within miscellaneous (all other, except Partition 0) PE partitions. service work. This is the sum of the four user service columns above plus PE Partition 0 user service. execution work. This is the sum of the four user execution columns above plus PE Partition 0 user execution. service and execution work. This is the sum of the Total User Serv% and the Total User Exec% columns.

a. Service is the time that a CPU is busy executing user service code, which is privileged work performing system-level services on behalf of user execution processes that do not have root privileges. b. Execution is the time a CPU is busy executing user execution code, which is the time spent in a user state on behalf of a process.

Note: The above CPU statistics represent the aggregate of all time spent in the indicated way by all CPUs on the node. Because there are multiple CPUs, the Total Busy % should be compared to a theoretical maximum of 100% times the number of CPUs on the node. The Node CPU column in the following sample outputs reports the number of CPUs (NCPUs).

ResCPUByPE Sample Output


01/07/12 CPU USAGE BY PE Misc User Exec% ------0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% Page 1 Total Total Total User User Busy Serv% Exec% % ------ ------ ------0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% Pars Disp Ses Misc Pars Disp Ses Vproc Node Node User User User User User User User Date Time Id Id CPUs Serv% Serv% Serv% Serv% Exec% Exec% Exec% -------- -------- ----- ------ ---- ------- ------- ------- ------- ------- ------- ------01/07/12 09:57:00 16382 001-01 4 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 16383 001-01 4 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 09:57:20 16382 001-01 16383 001-01 09:57:40 16382 001-01 16383 001-01 09:58:00 16382 001-01 16383 001-01 09:58:20 16382 001-01 16383 001-01 09:58:40 16382 001-01 16383 001-01 09:59:00 16382 001-01 16383 001-01 09:59:20 16382 001-01 16383 001-01 09:59:40 16382 001-01 16383 001-01 10:00:00 16382 001-01 16383 001-01 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00%

Note: The NodeId column only appears in the ResCPUByPE output report.

Resource Usage Macros and Tables

187

Chapter 15: Resource Usage Macros ResCPUByPE Macros

ResCPUByPEOneNode Sample Output


01/09/13 Vproc Node Time Id CPUs ------- ----- ---15:41:00 2 4 15:42:00 15:43:00 15:44:00 15:45:00 15:46:00 01/08/27 16:21:00 2 2 2 2 2 2 4 4 4 4 4 4 Pars User Serv% -----0.02% 0.01% 0.02% 0.03% 0.02% 0.03% 0.05% CPU Usage by PE for Node 001-01 (4 CPUs) Disp Ses Misc Pars User User User User Serv% Serv% Serv% Exec% ------ ------ ------ ----0.05% 0.00% 0.00% 0.56% 0.01% 0.02% 0.02% 0.01% 0.02% 0.08% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.18% 0.20% 0.55% 0.18% 0.58% 0.69% Disp User Exec% -----0.01% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% Ses User Exec% -----0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% Misc User Exec% -----0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% Total User Serv% -----0.08% 0.02% 0.04% 0.05% 0.02% 0.05% 0.13% Total User Exec% -----0.58% 0.18% 0.20% 0.56% 0.18% 0.58% 0.70% Page 4 Total Busy % -----0.7% 0.2% 0.2% 0.6% 0.2% 0.6% 0.8%

Date -----01/08/21

ResPeCpuByGroup Sample Output


01/07/12 Pars Group Node User Date Time Id CPUs Serv% ----------- ----- ---- ------01/07/12 04:55:40 A 4 0.00% 04:56:00 04:56:20 04:56:40 04:57:00 04:57:20 04:57:40 04:58:00 04:58:20 A A A A A A A A 4 4 4 4 4 4 4 4 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% Disp User Serv% -----0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% PE CPU USAGE BY GROUP Ses User Serv% ------0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% Misc User Serv% -----0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% Pars User Exec% -----0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% Disp User Exec% -----0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 Ses User Exec% -----0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% Misc User Exec% ------0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% Total User Serv% -----0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% Total User Exec% ----0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% Page 8 Total Busy % ----0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00%

Note: The GroupID column only appears in the ResPeCpuByGroup output report.

Normalized Viewing of CPU Usage by PE


Some users may prefer to view CPU usage by PEs in a normalized fashion. Conceptually, this restates each of the above statistics in terms of percentage of total CPU capacity of the node. The following SQL example shows how to perform this normalization for the Total Busy % statistic.
SEL TheDate, TheTime,Vproc,NodeId, (PETotalUserExec+PETotalUserServ) /Secs/NCPUs (FORMAT zz9%,TITLE Total// Busy// %) FROM ResCpuUsageByPEView WHERE TheDate = CURRENT_DATE AND TheTime>080000 ORDER BY 1,2,3;

188

Resource Usage Macros and Tables

Chapter 15: Resource Usage Macros ResCPUByNode Macros

ResCPUByNode Macros
Function
Macro... ResCPUByNode ResCPUOneNode ResCPUByGroup Reports how... each individual node is utilizing its CPUs. a specific node is utilizing its CPUs. a specified Node Group is utilizing the system CPUs.

Input Format Examples


The input forms of these three macros are described below.
EXEC ResCPUByNode (FromDate,ToDate,FromTime,ToTime,FromNode,ToNode); EXEC ResCPUOneNode (FromDate,ToDate,FromTime,ToTime,Node); EXEC ResCPUByGroup (FromDate,ToDate,FromTime,ToTime);

See Executing Macros on page 32 for a description of the FromDate, ToDate, FromTime, ToTime, FromNode, ToNode and Node parameters.

Usage Notes
For any of these macros the following usage notes apply: Logging must be enabled on ResUsageSpma. Name the node log rate.

Output Examples
The reports in the following sections are sample output reports from the ResCPUByNode, the ResCPUOneNode macro, and the ResCPUByGroup. The following columns are the averages for all CPUs on the node.

Resource Usage Macros and Tables

189

Chapter 15: Resource Usage Macros ResCPUByNode Macros

This column ... I/O Wait % Total User Serv % Total User Exec % Total Busy %

Lists percentage of time spent ... idle and waiting for I/O completion. busy doing user service work. busy doing user execution work. busy doing user service and execution work. This is the sum of Total User Serv % and the Total User Exec % columns.

where:
This variable User service User execution Describes the time a CPU is busy executing user service code, which is privileged work performing system-level services on behalf of user execution process that do not have root privileges. user execution code, which is the time spent in a user state on behalf of a process.

ResCPUByNode Sample Output


01/07/12 CPU USAGE BY NODE Node Id -----001-01 001-01 001-01 001-01 001-01 001-01 I/O Wait % -----16.2% 17.2% 15.5% 16.1% 15.8% 15.5% Total User Serv% -----1.4% 1.3% 1.6% 1.5% 1.0% 1.5% Total User Exec% -----0.1% 0.2% 0.2% 0.2% 0.2% 0.2% Total Busy % -----1.5% 1.5% 1.8% 1.7% 1.2% 1.7% Page 45

Date -------01/07/12

Time -------09:51:40 09:52:00 09:52:20 09:52:40 09:53:00 09:53:20

Note: The NodeId column only appears in the ResCPUByNode output report.

ResCPUOneNode Sample Output


01/07/12 CPU Usage for Node 001-01 I/O Wait % -----16.2% 16.9% 16.5% 17.0% 17.4% 16.6% 16.2% Total Total Total User User Busy Serv% Exec% % ------ ------ -----1.6% 0.2% 1.9% 1.3% 0.2% 1.5% 1.1% 0.1% 1.2% 1.7% 0.2% 1.9% 1.1% 0.2% 1.3% 1.3% 0.2% 1.5% 1.6% 0.2% 1.8% Page 01

Date -------01/07/12

Time -------09:44:20 09:44:40 09:45:00 09:45:20 09:45:40 09:46:00 09:46:20

190

Resource Usage Macros and Tables

Chapter 15: Resource Usage Macros ResCPUByNode Macros

ResCPUByGroup Sample Output


00/10/16 CPU USAGE BY Group I/O Total Total Group Wait User User Id % Serv% Exec% ----- ------ ------ -----A 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% A B A B A B A B A B A B A B A B A B A B A B A B A B A B 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.6% 0.3% 1.3% 1.1% 0.6% 0.3% 0.6% 0.6% 1.5% 1.6% 0.5% 0.7% 1.2% 0.6% 0.6% 1.1% 0.6% 0.5% 1.4% 1.1% 0.9% 0.9% 0.6% 0.6% 1.6% 1.3% 0.0% 0.0% 0.6% 0.4% 0.9% 0.9% 0.9% 1.0% 0.6% 0.8% 1.1% 1.0% 0.8% 0.9% 0.7% 0.5% 0.9% 1.2% 0.8% 0.7% 0.8% 0.8% 1.0% 0.9% 0.6% 0.8% 1.1% 0.9% Total Busy % -----0.0% 0.0% 0.0% 1.1% 0.7% 2.2% 2.0% 1.5% 1.3% 1.2% 1.3% 2.6% 2.6% 1.3% 1.6% 1.8% 1.1% 1.6% 2.2% 1.4% 1.2% 2.2% 1.9% 1.9% 1.8% 1.2% 1.4% 2.7% 2.2% Page 2

Date -------00/10/16

Time -------11:25:00 B 11:30:00 11:35:00 11:40:00 11:45:00 11:50:00 11:55:00 12:00:00 12:05:00 12:10:00 12:15:00 12:20:00 12:25:00 12:30:00 12:35:00

Note: The GroupID column only appears in the ResCpuByGroup output report.

Resource Usage Macros and Tables

191

Chapter 15: Resource Usage Macros ResHostByLink Macros

ResHostByLink Macros
Function
Macro... ResHostByLink ResHostOneNode ResHostByGroup Reports the host traffic for... every communication link in the system. the communication links of a specific node. the communication links of a node grouping.

Input Format Examples


The input forms of these three macros are described below.
EXEC ResHostByLink (FromDate,ToDate,FromTime,ToTime);

Note: The ResHostByLink macro syntax does not include the FromNode and ToNode parameters to specify a range of nodes.
EXEC ResHostOneNode (FromDate,ToDate,FromTime,ToTime,Node); EXEC ResHostByGroup (FromDate,ToDate,FromTime,ToTime);

See Executing Macros on page 32 for a description of the FromDate, FromTime, ToDate, ToTime, and Node parameters.

Usage Notes
The ResHostByLink macros help you answer the following questions: Is my set up correct? Am I making good use of the channels? If not, how high are they? If not high, then there may not be enough host resources.

Study the incoming traffic. Problems with incoming traffic may be simply caused by an incorrect configuration. Once configured correctly, if there is still a traffic problem, consider studying the LAN traffic, for example, when doing an export, the ResUsageSpma table may show 30 million rows/log period. For any of these macros the following usage notes apply: Logging must be enabled on ResUsageShst. Name the node log rate.

192

Resource Usage Macros and Tables

Chapter 15: Resource Usage Macros ResHostByLink Macros

Output Examples
The reports in the following sections are sample output reports from the ResHostByLink, the ResHostOneNode macros, and the ResHostByGroup, respectively, where:
Column... Host Type Reports the... type of host connection: NETWORK, for LAN-connected hosts IBMMUX, for channel-connected hosts KBs Read/ Sec KBs Write/ Sec Blks Read/ Sec Blks Write/ Sec Blk Read Fail % Blk Write Fail % KBs/Blk Read KBs/Blk Write Msgs/Blk Read Msgs/Blk Write Avg ReqQ Len Max ReqQ Len number of KBs read per second. number of KBs written per second. number of successful blocks read per second. number of successful blocks written per second. percentage of block read attempts that failed. percentage of block write attempts that failed. average number of KBs per block read. average number of KBs per block written. average number of messages per block read. average number of messages per block written. average number of messages queued for output to the host. maximum number of messages queued for output to the host.

Resource Usage Macros and Tables

193

ResHostByLink Sample Output


00/10/16 HOST COMMUNICATIONS BY COMMUNICATION LINK Blks Blks Read Write /Sec /Sec ----- ----0.1 0.1 0.0 0.0 0.0 0.0 0.0 0.1 0.0 0.0 0.0 0.1 Blk Read Fail% ----0.0% ? ? ? ? 0.0% 0.0% 0.0% ? 0.0% ? ? 0.0% 0.0% 0.0% ? ? ? ? ? 0.0% 0.0% ? 0.0% ? ? 0.0% 0.0% Blk Write Fail% ----0.0% ? ? ? ? 0.0% 0.0% 0.0% ? 0.0% ? ? 0.0% 0.0% 0.0% ? ? ? ? ? 0.0% 0.0% ? 0.0% ? ? 0.0% 0.0% KBs KBs Msgs Msgs /Blk /Blk /Blk /Blk Read Write Read Write ------ ------ ----- ----350.5 186.2 0.8 0.8 ? ? ? ? ? ? ? 398.4 86.0 1721.2 ? 391.8 ? ? 85.3 97.3 1722.0 ? ? ? ? ? 385.4 1720.4 ? 86.5 ? ? 407.6 408.8 ? ? ? 198.8 1097.7 5317.6 ? 206.5 ? ? 1037.5 917.2 5276.5 ? ? ? ? ? 200.3 5148.5 ? 84.7 ? ? 215.8 205.9 ? ? ? 0.9 1.0 1.0 ? 0.9 ? ? 1.0 0.9 1.0 ? ? ? ? ? 0.9 1.0 ? 0.5 ? ? 0.9 0.9 ? ? ? 0.9 1.0 1.0 ? 0.9 ? ? 1.0 0.9 1.0 ? ? ? ? ? 0.9 1.0 ? 0.3 ? ? 0.9 0.9 Avg ReqQ Len ----0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 Page Max ReqQ Len ---0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1

194 Resource Usage Macros and Tables

KBs KBs Node Vproc Host Host Read Write Date Time Id Id Type Id /Sec /Sec ------- ------- ------ ----- ------- ----- ----- -----00/10/16 11:07:00 105-04 65535 NETWORK 0 24.0 13.3 IBMMUX 101 0.0 0.0 105-05 65535 NETWORK 0 IBMMUX 202 IBMMUX 304 106-04 65535 NETWORK 0 0.0 0.0 0.0 22.6 0.0 0.0 0.0 11.3

106-05 65535 NETWORK 0 7.5 97.0 0.1 0.1 11:22:42 105-04 65535 NETWORK 0 81105.0 250605.8 47.1 47.1 IBMMUX 101 0.0 0.0 0.0 0.0 105-05 65535 NETWORK 0 IBMMUX 202 IBMMUX 304 106-04 65535 NETWORK 106-05 65535 NETWORK 0 0 44.1 0.0 0.0 31.9 8.3 22.6 0.0 0.0 391.0 81.8 0.1 0.0 0.0 0.4 0.1 0.1 0.0 0.0 0.4 0.1

11:32:42 105-04 65535 NETWORK 0 IBMMUX 101 105-05 65535 NETWORK 0 IBMMUX 202 IBMMUX 304 106-04 65535 NETWORK 106-05 65535 NETWORK 0 0

80303.8 246270.046.6 46.7 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 46.2 0.0 0.0 0.0 0.0 23.7 0.0 0.0 0.0 0.0 0.1 0.0 0.0 0.0 0.0 0.1

11:42:42 105-04 65535 NETWORK 0 59002.2 176635.3 34.3 34.3 IBMMUX 101 0.0 0.0 0.0 0.0 105-05 65535 NETWORK 0 IBMMUX 202 IBMMUX 304 106-04 65535 NETWORK 106-05 65535 NETWORK 0 0 0.3 0.0 0.0 23.1 22.5 0.4 0.0 0.0 11.9 11.0 0.0 0.0 0.0 0.1 0.1 0.0 0.0 0.0 0.1 0.1

0.0 0.0 0.0 0.0

Note: The NodeId column only appears in the ResHostByLink output report.

ResHostOneNode Sample Output


00/10/16 Vproc Host Host Date Time Id Type Id -------- -------- ----- -------- ----00/10/16 11:07:00 65535 NETWORK 0 IBMMUX 202 IBMMUX 304 11:22:42 65535 NETWORK IBMMUX IBMMUX 11:32:42 65535 NETWORK IBMMUX IBMMUX 11:42:42 65535 NETWORK IBMMUX IBMMUX 0 202 304 0 202 304 0 202 304 Host Communications for Node 105-05 KBs KBs Read Write /Sec /Sec -------- -------0.0 0.0 0.0 0.0 0.0 0.0 44.1 0.0 0.0 0.0 0.0 0.0 0.3 0.0 0.0 22.6 0.0 0.0 0.0 0.0 0.0 0.4 0.0 0.0 Blks Blks Blk Blk KBs Read Write Read Write /Blk /Sec /Sec Fail% Fail% Read ------ ------ ----- ----- ----0.0 0.0 ? ? ? 0.0 0.0 ? ? ? 0.0 0.0 ? ? ? 0.1 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.1 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0% ? ? ? ? ? 0.0% ? ? 0.0% ? ? ? ? ? 0.0% ? ? 391.8 ? ? ? ? ? 86.5 ? ? KBs /Blk Write ------? ? ? 206.5 ? ? ? ? ? 84.7 ? ? Msgs /Blk Read ----? ? ? 0.9 ? ? ? ? ? 0.5 ? ? Page Msgs /Blk Write ----? ? ? 0.9 ? ? ? ? ? 0.3 ? ? 1 Avg ReqQ Len ---0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 Max ReqQ Len ---0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0

Resource Usage Macros and Tables 195

ResHostByGroup Sample Output


Date -------00/10/16 00/10/16 00/10/16 00/10/16 00/10/16 00/10/16 00/10/16 00/10/16 00/10/16 00/10/16 00/10/16 00/10/16 00/10/16 00/10/16 00/10/16 00/10/16 00/10/16 00/10/16 00/10/16 00/10/16 00/10/16 00/10/16 00/10/16 00/10/16 00/10/16 Time -------11:30:00 11:30:00 11:35:00 11:35:00 11:40:00 11:40:00 11:45:00 11:45:00 11:50:00 11:50:00 11:55:00 11:55:00 12:00:00 12:00:00 12:05:00 12:05:00 12:10:00 12:10:00 12:15:00 12:15:00 12:20:00 12:20:00 12:25:00 12:25:00 12:30:00 Group Id -----A B A B A B A B A B A B A B A B A B A B A B A B A Host Type -------NETWORK NETWORK NETWORK NETWORK NETWORK NETWORK NETWORK NETWORK NETWORK NETWORK NETWORK NETWORK NETWORK NETWORK NETWORK NETWORK NETWORK NETWORK NETWORK NETWORK NETWORK NETWORK NETWORK NETWORK NETWORK KBs Read /Sec -------0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 KBs Write /Sec -------0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 Blks Read /Sec ----0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 Blks Write /Sec ----0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 Blk Read Fail% ----? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Blk Write Fail% ----? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? KBs /Blk Read ------? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? KBs /Blk Write ------? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Msgs /Blk Read ----? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Msgs /Blk Write ----? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Avg ReqQ Len ----0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 Max ReqQ Len ----0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0

Note: The GroupID column only appears in the ResHostByGroup output report.

Chapter 15: Resource Usage Macros ResLdvByNode Macros

ResLdvByNode Macros
Function
Macro... ResLdvByNode ResLdvOneNode ResLdvByGroup Reports the logical device traffic channeled through... each node by totaling its controller links into one summarized node output line. a specific node by totaling all its controller links into one summarized node output line. a node grouping.

Input Format Examples


The input forms of these three macros are described below.
EXEC ResLdvByNode (FromDate,ToDate,FromTime,ToTime,FromNode,ToNode); EXEC ResLdvOneNode (FromDate,ToDate,FromTime,ToTime,Node); EXEC ResLdvByGroup (FromDate,ToDate,FromTime,ToTime);

See Executing Macros on page 32 for a description of the FromDate, FromTime, ToDate, ToTime, FromNode, ToNode and Node parameters.

Usage Notes
For any of these macros the following usage notes apply: Logging must be enabled on ResUsageSldv. Name the node log rate.

Output Examples
The reports in the following sections are sample output reports from the ResLdvByNode, the ResLdvOneNode, and the ResLdvByGroup macros, respectively, where:
Column... Reads / Sec Writes / Sec Rd KB / I/O Wrt KB / I/O Avg I/O Resp Reports the... average number of logical device reads per second. average number of logical device writes per second. average number of KBs per logical device read. average number of KBs per logical device write. average response time for a logical device read or write in seconds.

196

Resource Usage Macros and Tables

Chapter 15: Resource Usage Macros ResLdvByNode Macros

Column... Max Concur Rqsts Avg Out Rqsts Out Rqst Time %

Reports the... maximum number of concurrent requests during the log period. average number of outstanding requests. percent of time there are outstanding requests.

ResLdvByNode Sample Output


06/09/26 Avg Avg Ldv Node Reads Writes KB Date Type Time Id / Sec / Sec / I/O -------- ---- -------- ------ -------- -------- -----06/09/26 DISK 10:09:45 001-01 0.00 2.00 4.20 10:10:00 001-01 0.00 1.27 5.89 10:10:15 001-01 0.00 2.20 5.88 10:10:30 001-01 0.00 1.20 6.22 10:10:45 001-01 0.00 3.53 3.96 10:11:00 001-01 0.00 1.33 5.85 10:11:15 001-01 0.00 2.00 4.30 10:11:30 001-01 0.00 1.33 5.65 10:11:45 001-01 0.00 1.87 8.71 10:12:00 001-01 0.00 40.67 31.27 10:12:15 001-01 0.00 3.40 16.57 10:12:30 001-01 0.00 5.40 7.44 10:12:45 001-01 0.00 1.87 14.29 SDSK 10:09:45 001-01 10:10:00 001-01 10:10:15 001-01 10:10:30 001-01 10:10:45 001-01 10:11:00 001-01 10:11:15 001-01 10:11:30 001-01 10:11:45 001-01 10:12:00 001-01 0.13 0.07 0.00 0.44 0.50 0.48 0.51 0.88 0.97 0.98 1.00 7.98 9.21 8.73 9.01 8.45 8.85 2.72 0.34 0.28 55.42 109.53 111.57 107.32 98.02 100.64 100.83 410.24 ****** ****** LOGICAL DEVICE TRAFFIC BY NODE Out I/O Resp ------0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 Page Out Rqsts ----0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 4.0 0.0 0.0 0.0 0.0 1.2 1.3 1.1 1.1 1.0 1.0 0.3 0.1 0.0 1 Rqst Time % -----1.3% 0.6% 1.3% 0.8% 2.5% 1.0% 1.3% 0.7% 1.0% 100.0% 1.4% 5.2% 0.9% 3.2% 9.1% 9.1% 9.1% 11.2% 9.1% 9.1% 9.1% 9.2% 8.6%

Note: The NodeId column only appears in the ResLdvByNode output report.

ResLdvOneNode Sample Output


06/09/26 LOGICAL DEVICE TRAFFIC FOR NODE 001-01 Avg I/O Resp ------0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 Avg Out Rqsts ----0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 4.0 0.0 0.0 0.0 0.0 1.2 1.3 1.1 1.1 1.0 1.0 Out Rqst Time % -----1.3% 0.6% 1.3% 0.8% 2.5% 1.0% 1.3% 0.7% 1.0% 100.0% 1.4% 5.2% 0.9% 3.2% 9.1% 9.1% 9.1% 11.2% 9.1% 9.1%

Date -------06/09/26

Ldv Type ---DISK

Time -------10:09:45 10:10:00 10:10:15 10:10:30 10:10:45 10:11:00 10:11:15 10:11:30 10:11:45 10:12:00 10:12:15 10:12:30 10:12:45 10:09:45 10:10:00 10:10:15 10:10:30 10:10:45 10:11:00 10:11:15

Reads / Sec -------0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.13 0.07 0.00 0.44 0.50 0.48 0.51

Writes / Sec -------2.00 1.27 2.20 1.20 3.53 1.33 2.00 1.33 1.87 40.67 3.40 5.40 1.87 1.00 7.98 9.21 8.73 9.01 8.45 8.85

KB / I/O -----4.20 5.89 5.88 6.22 3.96 5.85 4.30 5.65 8.71 31.27 16.57 7.44 14.29 55.42 109.53 111.57 107.32 98.02 100.64 100.83

SDSK

Resource Usage Macros and Tables

197

Chapter 15: Resource Usage Macros ResLdvByNode Macros


10:11:30 10:11:45 10:12:00 10:12:15 10:12:30 10:12:45 0.88 0.97 0.98 0.59 0.08 0.00 2.72 0.34 0.28 3.14 4.15 0.39 410.24 ****** ****** 285.78 16.99 32.94 0.000 0.000 0.000 0.000 0.000 0.000 0.3 0.1 0.0 0.1 0.1 0.0 9.1% 9.2% 8.6% 9.1% 9.2% 1.0%

ResLdvByGroup Sample Output


06/09/26 LOGICAL DEVICE TRAFFIC BY GROUP Page 1 Max Concur Rqsts ----0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 Out Rqst Time % -----1.3% 0.6% 1.3% 0.8% 2.5% 1.0% 1.3% 0.7% 1.0% 100.0% 1.4% 5.2% 0.9% 3.2% 9.1% 9.1% 9.1% 11.2% 9.1% 9.1% 9.1% 9.2% 8.6% 9.1% 9.2% 1.0%

Grp Ldv Date Id Type -------- --- ---06/09/26 A DISK

Time --------10:09:45 10:10:00 10:10:15 10:10:30 10:10:45 10:11:00 10:11:15 10:11:30 10:11:45 10:12:00 10:12:15 10:12:30 10:12:45 10:09:45 10:10:00 10:10:15 10:10:30 10:10:45 10:11:00 10:11:15 10:11:30 10:11:45 10:12:00 10:12:15 10:12:30 10:12:45

Reads / Sec -------0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.13 0.07 0.00 0.44 0.50 0.48 0.51 0.88 0.97 0.98 0.59 0.08 0.00

Writes / Sec -------2.00 1.27 2.20 1.20 3.53 1.33 2.00 1.33 1.87 40.67 3.40 5.40 1.87 1.00 7.98 9.21 8.73 9.01 8.45 8.85 2.72 0.34 0.28 3.14 4.15 0.39

Rd KB Wrt KB / I/O / I/O ------- -----? 4.20 ? 5.89 ? 5.88 ? 6.22 ? 3.96 ? 5.85 ? 4.30 ? 5.65 ? 8.71 ? 31.27 ? 16.57 ? 7.44 ? 14.29 121.27 139.00 ? 113.33 12.12 12.01 12.08 ****** ****** ****** ****** 295.14 ? 46.64 109.28 111.57 107.02 102.76 105.72 105.93 94.90 39.43 50.13 9.85 11.29 32.94

Avg I/O Resp ------0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000

SDSK

Note: The GroupID column only appears in the ResLdvByGroup output report.

198

Resource Usage Macros and Tables

Chapter 15: Resource Usage Macros ResPdskByNode Macros: Pdisk Device Traffic

ResPdskByNode Macros: Pdisk Device Traffic


Function
Macro... ResPdskByNode ResPdskOneNode ResPdskByGroup Reports the device traffic... by a physical node. for a specified node. node grouping.

Input Format Examples


The input forms of these three macros are described below.
EXEC ResPdskByNode (FromDate,ToDate,FromTime,ToTime,FromNode,ToNode); EXEC ResPdskOneNode (FromDate,ToDate,FromTime,ToTime,Node); EXEC ResPdskByGroup (FromDate,ToDate,FromTime,ToTime);

See Executing Macros on page 32 for a description of the FromDate, FromTime, ToDate, ToTime, FromNode, ToNode and Node parameters.

Usage Notes
For any of these macros the following usage notes apply: Logging must be enabled on ResUsageSpdsk. Name the node log rate.

Output Examples
The following table describes the statistics columns in all output reports (with the exception of ResPdiskByNode, which reports by NodeId columns, and ResPdiskByGroup, which reports by NodeType column).
Column... ReadCnt/Sec WriteCnt/Sec Rd KB/ I/O Wrt KB/ I/O Avg I/O Resp Reports the... average number of device reads per second. average number of device writes per second. average number of KBs per device read. average number of KBs per device write. average response time for a device read or write in seconds.

Resource Usage Macros and Tables

199

Chapter 15: Resource Usage Macros ResPdskByNode Macros: Pdisk Device Traffic

Column... Max Concur Rqsts Out Rqst Time %

Reports the... maximum number of concurrent requests during the log period. percent of time there are outstanding requests.

ResPdskByNode Sample Output


07/11/28 PDISK TRAFFIC BY NODE Avg I/O Resp ------0.004 0.002 0.001 0.002 0.001 0.001 0.001 0.003 0.002 0.000 0.001 0.002 0.002 0.001 0.001 0.001 0.002 0.001 0.002 0.001 0.002 0.002 Page Out Rqst Time % -----0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 1

Date -------07/11/28

Pdisk Type -----DISK

Time -------13:20:00 13:21:00 13:22:00 13:24:00 13:25:00 13:26:00 13:28:00 13:29:00 13:30:00 13:32:00 13:33:00 13:34:00 13:36:00 13:37:00 13:38:00 13:39:00 13:41:00 13:42:00 13:43:00 13:45:00 13:46:00 13:47:00

Node Id -----001-01 001-01 001-01 001-01 001-01 001-01 001-01 001-01 001-01 001-01 001-01 001-01 001-01 001-01 001-01 001-01 001-01 001-01 001-01 001-01 001-01 001-01

Reads / Sec -------0.10 0.12 0.13 0.05 0.07 0.11 0.06 0.14 0.12 0.07 0.17 0.11 0.05 0.18 0.11 0.14 0.05 0.11 0.14 0.06 0.07 0.13

Writes / Sec -------0.23 0.41 0.49 0.20 0.35 0.42 0.19 0.45 0.40 0.18 0.53 0.38 0.17 0.51 0.37 0.42 0.17 0.28 0.41 0.19 0.34 0.38

Rd KB / I/O ------******* ******* ******* 4717.71 2560.00 6537.85 3396.27 3602.29 5961.14 3990.59 4532.71 5730.46 5218.46 3990.59 5218.46 3990.59 5139.69 5017.60 6731.29 4176.00 2523.43 6192.00

Wrt KB / I/O ------******* 4202.15 3623.05 5262.77 4637.26 4485.12 4785.63 4943.64 5274.67 3856.34 5745.23 4975.30 5677.51 5125.33 4846.55 4758.59 4660.36 5546.67 5616.33 4874.04 6260.36 5990.40

Note: The NodeId column only appears in the ResPdskByNode output report.

200

Resource Usage Macros and Tables

Chapter 15: Resource Usage Macros ResPdskByNode Macros: Pdisk Device Traffic

ResPdskOneNode Sample Output


07/11/28 PDISK Traffic for Node 001-01 Avg I/O Resp ------0.004 0.002 0.001 0.002 0.001 0.001 0.001 0.003 0.002 0.000 0.001 0.002 0.002 0.001 0.001 0.001 0.002 0.001 0.002 0.001 0.002 0.002 0.002 Out Rqst Time % -----0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% Page 1

Date -------07/11/28

Pdisk Type -----DISK

Time -------13:20:00 13:21:00 13:22:00 13:24:00 13:25:00 13:26:00 13:28:00 13:29:00 13:30:00 13:32:00 13:33:00 13:34:00 13:36:00 13:37:00 13:38:00 13:39:00 13:41:00 13:42:00 13:43:00 13:45:00 13:46:00 13:47:00 13:49:00

Reads / Sec -------0.10 0.12 0.13 0.05 0.07 0.11 0.06 0.14 0.12 0.07 0.17 0.11 0.05 0.18 0.11 0.14 0.05 0.11 0.14 0.06 0.07 0.13 0.05

Writes / Sec -------0.23 0.41 0.49 0.20 0.35 0.42 0.19 0.45 0.40 0.18 0.53 0.38 0.17 0.51 0.37 0.42 0.17 0.28 0.41 0.19 0.34 0.38 0.21

Rd KB / I/O ------******* ******* ******* 4717.71 2560.00 6537.85 3396.27 3602.29 5961.14 3990.59 4532.71 5730.46 5218.46 3990.59 5218.46 3990.59 5139.69 5017.60 6731.29 4176.00 2523.43 6192.00 3693.71

Wrt KB / I/O ------******* 4202.15 3623.05 5262.77 4637.26 4485.12 4785.63 4943.64 5274.67 3856.34 5745.23 4975.30 5677.51 5125.33 4846.55 4758.59 4660.36 5546.67 5616.33 4874.04 6260.36 5990.40 5878.52

Note: The NodeId column only appears in the ResPdskOneNode output report.

ResPdskByGroup Sample Output


06/09/26 PDISK TRAFFIC BY GROUP Avg I/O Resp ------? ? ? ? ? ? ? ? ? ? ? ? ? Page 1

Node Pdisk Date Type Type -------- ---- -----06/09/26 4400 DISK

Time -------10:09:45 10:10:00 10:10:15 10:10:30 10:10:45 10:11:00 10:11:15 10:11:30 10:11:45 10:12:00 10:12:15 10:12:30 10:12:45

ReadCnt WriteCnt Rd KB Wrt KB / Sec / Sec / I/O / I/O -------- -------- ------- ------0.00 0.00 ? ? 0.00 0.00 ? ? 0.00 0.00 ? ? 0.00 0.00 ? ? 0.00 0.00 ? ? 0.00 0.00 ? ? 0.00 0.00 ? ? 0.00 0.00 ? ? 0.00 0.00 ? ? 0.00 0.00 ? ? 0.00 0.00 ? ? 0.00 0.00 ? ? 0.00 0.00 ? ?

Max Out Concur Rqst Rqsts Time % ------ -----0.0 0.0% 0.0 0.0% 0.0 0.0% 0.0 0.0% 0.0 0.0% 0.0 0.0% 0.0 0.0% 0.0 0.0% 0.0 0.0% 0.0 0.0% 0.0 0.0% 0.0 0.0% 0.0 0.0%

Note: The GroupID column only appears in the ResPdskByGroup output report.

Resource Usage Macros and Tables

201

Chapter 15: Resource Usage Macros ResMemMgmtByNode Macros

ResMemMgmtByNode Macros
Function
Macro... ResMemMgmtByNode ResMemMgmtOneNode ResMemByGroup Reports memory management activity for... each individual node. a specific node. a node grouping.

Input Format Examples


The input forms of these three macros are described below.
EXEC ResMemMgmtByNode (FromDate,ToDate,FromTime,ToTime,FromNode,ToNode); EXEC ResMemMgmtOneNode (FromDate,ToDate,FromTime,ToTime,Node); EXEC ResMemByGroup (FromDate,ToDate,FromTime,ToTime);

See Executing Macros on page 32 for a description of the FromDate, FromTime, ToDate, ToTime, FromNode, ToNode and Node parameters.

Usage Notes
For any of these macros the following usage notes apply: Logging must be enabled on ResUsageSpma. Name the node log rate.

Output Examples
The reports in the following sections are sample output reports from the ResMemMgmtByNode, the ResMemMgmtOneNode macros, and the ResMemByGroup, respectively, where:
Column... % Mem Free Text Alocs/ Sec Reports the... current snapshot of the percent of memory that is unused. average number of text page allocations per second. text pages are allocations of memory for code that is not associated with system-level overhead tasks. VPR Alocs/ Sec average number of vproc-specific page and segment allocations per second on a node.

202

Resource Usage Macros and Tables

Chapter 15: Resource Usage Macros ResMemMgmtByNode Macros

Column... KB/ VPR Aloc Aloc Fail % Ages/ Sec # Proc Swp Page Drops/ Sec

Reports the... average KBs per vproc-specific page and segment allocation on a node. percent of memory allocation attempts that failed. average number of times memory pages were aged out per second. current number of processes that are swapped out. average number of text pages dropped from memory per second. Page drops are text pages that are dropped from memory to increase the amount of available memory.

Page Reads/ Sec

average number of memory pages read from disk per second. Page reads include both memory text pages and task context pages, such as scratch, stack, and so on.

Page Writes/ Sec

average number of memory pages written to disk per second. Page writes include only task context pages.

Swap Drops/ Sec

average number of disk segments dropped from memory per second. Swap drops include all disk segments dropped from memory because their ancestor processes were swapped out.

Swap Reads/ Sec

average number of disk segments reread back into memory, after being swapped, out per second. Swap reads include all reread disk segments that had been previously dropped from memory because their ancestor processes were swapped out.

KB/Swp Drp KB/Swp Rd

average size, in KBs, of disk segments dropped from memory because their ancestor processes were swapped out. average size, in KBs, of reread disk segments that had been previously dropped from memory because their ancestor processes were swapped out. average number of paged, swapped page, or segment drops per second. This statistic includes both the memory text pages (Pg Drps/ Sec), and the disk segments (Swp Drps/ Sec), that were dropped.

P+S Drops/ Sec

P+S Reads/ Sec

average number of paged, swapped page, or segment reads per second. Includes both the memory text pages and task context pages (Pg Rds/ Sec), and the disk segments (Swp Rds/ Sec), reread back into memory after being swapped out. average total number of paged, swapped page, or segment writes per second. percent of total logical device inputs and outputs that are paging or swapping inputs and outputs.

P+S Writes/ Sec P+S IO %

Resource Usage Macros and Tables

203

ResMemMgmtByNode Sample Output


08/09/29 MEMORY MANAGEMENT ACTIVITY BY NODE Page 1 % Text VPR KB Aloc # Page Page Page Swap Swap KB KB P+S P+S P+S Node Mem Alocs Alocs /VPR Fail Ages Proc Drops Reads Wrts Drops Reads /Swp /Swp Drops Reads Writes P+S Id Free /Sec /Sec Aloc % /Sec Swap /Sec /Sec /Sec /Sec /Sec Drp Rd /Sec /Sec /Sec IO % ------ ---- ------ ------ ---- ---- ---- ---- ----- ------ ----- ----- ----- ---- ---- ------- ------ ------- ---001-01 15% 0.0 0.0 ? ? 0.0 0 0.0 53 1.8 0.0 0.0 ? ? 0.0 53 1.8 97% 001-01 15% 0.0 0.0 ? ? 0.0 0 0.0 2 0.0 0.0 0.0 ? ? 0.0 2 0.0 50% 001-01 16% 0.0 0.0 ? ? 0.0 0 0.0 90 46.4 0.0 0.0 ? ? 0.0 90 46.4 97%

204 Resource Usage Macros and Tables

Date Time -------- -------08/09/29 11:35:00 11:36:00 11:37:00

Note: The NodeId column only appears in the ResMemMgmtByNode output report.

ResMemMgmtOneNode Sample Output


08/09/29 Memory Management Activity for Node 001-01 Page 1 % Text VPR KB Aloc # Page Page Page Swap Swap KB KB P+S P+S P+S Mem Alocs Alocs /VPR Fail Ages Proc Drops Reads Wrts Drops Reads /Swp /Swp Drops Reads Writes P+S Free /Sec /Sec Aloc % /Sec Swap /Sec /Sec /Sec /Sec /Sec Drp Rd /Sec /Sec /Sec IO % ---- ------ ------ ---- ---- ---- ---- ----- ------ ----- ----- ----- ---- ---- ------ ------ ------ ---15% 0.0 0.0 ? ? 0.0 0 0.0 53 1.8 0.0 0.0 ? ? 0 53 2 97% 15% 0.0 0.0 ? ? 0.0 0 0.0 2 0.0 0.0 0.0 ? ? 0 2 0 50% 16% 0.0 0.0 ? ? 0.0 0 0.0 90 46.4 0.0 0.0 ? ? 0 90 46 97% 16% 0.0 0.0 ? ? 0.0 0 0.0 10 3.4 0.0 0.0 ? ? 0 10 3 92% 16% 0.0 0.0 ? ? 0.0 0 0.0 1 0.0 0.0 0.0 ? ? 0 1 0 45% 16% 0.0 0.0 ? ? 0.0 0 0.0 5 2.0 0.0 0.0 ? ? 0 5 2 73%

Date Time -------- -------08/09/29 11:35:00 11:36:00 11:37:00 11:38:00 11:40:00 11:41:00

ResMemByGroup Sample Output


08/09/29 MEMORY MGMT ACTIVITY BY GROUP Page 1 % Text VPR KB Aloc # Page Page Page Swap Swap KB KB P+S P+S P+S Group Mem Alocs Alocs /VPR Fail Ages Proc Drops Reads Wrts Drops Reads /Swp /Swp Drops Reads Writes P+S Id Free /Sec /Sec Aloc % /Sec Swap /Sec /Sec /Sec /Sec /Sec Drp Rd /Sec /Sec /Sec IO % ----- ---- ------ ------ ---- ---- ---- ---- ----- ----- ----- ----- ----- ---- ---- ------- ------- ------ ---A 15% 0.0 0.0 ? ? 0.0 0 0.0 52.6 1.8 0.0 0.0 ? ? 0.0 52.6 1.8 97% A 15% 0.0 0.0 ? ? 0.0 0 0.0 2.1 0.0 0.0 0.0 ? ? 0.0 2.1 0.0 50% A 16% 0.0 0.0 ? ? 0.0 0 0.0 89.8 46.4 0.0 0.0 ? ? 0.0 89.8 46.4 97% A 16% 0.0 0.0 ? ? 0.0 0 0.0 10.3 3.5 0.0 0.0 ? ? 0.0 10.3 3.5 92%

Date Time -------- -------08/09/29 11:35:00 11:36:00 11:37:00 11:38:00

Note: The GroupID column only appears in the ResMemByGroup output report.

Chapter 15: Resource Usage Macros ResNetByNode Macros

ResNetByNode Macros
Function
Macro... ResNetByNode ResNetOneNode ResNetByGroup Reports net traffic for... each node. a specific node. nodes summarized by node groups.

Input Format Examples


The input forms of these three macros are described below.
EXEC ResNetByNode (FromDate,ToDate,FromTime,ToTime,FromNode,ToNode); EXEC ResNetOneNode (FromDate,ToDate,FromTime,ToTime,Node); EXEC ResNetByGroup (FromDate,ToDate,FromTime,ToTime);

See Executing Macros on page 32 for a description of the FromDate, FromTime, ToDate, ToTime, FromNode, ToNode and Node parameters.

Usage Notes
For any of these macros the following usage notes apply: Logging must be enabled on ResUsageSpma. Name the node log rate.

Output Examples
The reports in the following sections are sample output reports from the ResNetByNode, the ResNetOneNode, and the ResNetByGroup macros, respectively, where:
Column... % Retries Reports the... percent of total net circuit attempts that caused software backoffs (BNS service-blocked occurrences). Note: This value reflects how many times the hardware backed off a connection because the switch nodes could not route to the end point. That implies that the end point was busy or, in switch node terms, the routing path was busy. A value over 100% does not imply a problem, but shows that there were multiple attempts to send new messages while the Bynet path was busy. On a busy system, this can be a normal level of activity. Total Reads/ Sec average number of net reads per second.

Resource Usage Macros and Tables

205

Chapter 15: Resource Usage Macros ResNetByNode Macros

Column... Total Writes/ Sec Total IOs/ Sec KB/ IO % PtP % Brd

Reports the... average number of net writes per second. average number of net reads and writes per second. average KBs per net read or write. percent of total net reads and writes that are point-to-point reads and writes. percent of total net reads and writes that are broadcast reads and writes.

Note: In the following examples, the NodeId column appears only in the ResNetByNode output report. The GroupID column only appears in the ResNetByGroup output report. For all the examples, the values in the Total Reads/ Sec and Total Writes/ Sec are expected to be equal on SMP (single-node, vnet) systems.

ResNetByNode Sample Output


00/10/16 NET ACTIVITY BY NODE Total Total Total Node % ReReads Writes IOs KB Id tries /Sec /Sec /Sec /IO ------ ------ ------- ------- ------- -----001-03 0.0% 0.46 0.39 0.85 0.4 001-04 0.0% 0.55 0.47 1.02 0.4 001-03 001-04 001-03 001-04 001-03 001-04 001-03 001-04 001-03 001-04 001-03 001-04 0.0% 0.0% 0.0% 0.0% 2.5% 2.5% 24.7% 20.6% 15.9% 28.1% 3.3% 4.1% 0.39 0.39 0.44 0.55 20.84 23.07 35.44 37.16 13.47 11.79 18.92 22.77 0.33 0.32 0.37 0.47 12.53 15.51 35.56 38.87 10.71 12.63 14.18 20.97 0.72 0.71 0.81 1.02 33.37 38.58 71.00 76.03 24.18 24.42 33.11 43.74 0.4 0.4 0.4 0.4 1.8 1.8 17.4 13.8 8.3 12.8 1.3 1.9 Page 2

Date Time ---------- -------2000/10/16 11:20:00 11:25:00 11:30:00 11:35:00 11:40:00 11:45:00 11:50:00

% PtP --92 93 90 90 91 92 73 74 93 93 76 83 77 75

% Brd --8 7 10 10 9 8 27 26 7 7 24 17 23 25

ResNetOneNode Sample Output


00/10/16 Net Activity for Node 001-03 % Retries -----0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% Total Reads /Sec ------0.78 2.87 3.08 2.13 2.23 0.25 0.53 0.51 0.48 0.52 0.46 0.58 0.57 0.54 Total Writes /Sec ------0.07 2.65 2.07 2.07 2.17 0.18 0.47 0.44 0.42 0.45 0.39 0.51 0.38 0.47 Total IOs /Sec ------0.85 5.52 5.15 4.20 4.40 0.43 1.00 0.95 0.90 0.97 0.85 1.09 0.95 1.01 KB /IO -----1.1 0.5 0.6 0.5 0.5 0.4 0.4 0.5 0.4 0.5 0.4 0.4 0.5 0.4 Page 1 % PtP --8 96 80 98 98 84 93 93 92 93 92 94 79 93 % Brd --92 4 20 2 2 16 7 7 8 7 8 6 21 7

Date -------00/10/16

Time -------10:19:00 10:20:00 10:21:00 10:22:00 10:23:00 10:30:00 10:35:00 10:40:00 10:45:00 10:50:00 10:55:00 11:00:00 11:05:00 11:10:00

206

Resource Usage Macros and Tables

Chapter 15: Resource Usage Macros ResNetByNode Macros


11:15:00 11:20:00 0.0% 0.0% 0.46 0.46 0.40 0.39 0.86 0.85 0.5 0.4 92 92 8 8

ResNetByGroup Sample Output


00/10/16 NET ACTIVITY BY Group Group % ReTime Id tries -------- ------ -----11:20:00 B 0.0% 11:25:00 11:30:00 11:35:00 11:40:00 11:45:00 11:50:00 11:55:00 12:00:00 12:05:00 12:10:00 12:15:00 12:20:00 A B A B A B A B A B A B A B A B A B A B A B A B 0.0% 0.0% 0.0% 0.0% 2.5% 2.5% 24.7% 20.6% 15.9% 28.1% 3.3% 4.1% 55.8% 41.1% 5.1% 5.8% 24.2% 10.6% 73.8% 57.4% 3.9% 6.3% 48.7% 34.9% Reads Writes /Sec /Sec ------- ------0.55 0.47 0.39 0.39 0.44 0.55 20.84 23.07 35.44 37.16 13.47 11.79 18.92 22.77 40.01 44.35 19.11 22.13 33.09 26.97 17.33 28.12 21.02 22.13 36.18 38.16 0.33 0.32 0.37 0.47 12.53 15.51 35.56 38.87 10.71 12.63 14.18 20.97 33.45 44.37 13.16 11.03 28.57 25.97 14.01 26.65 16.10 14.70 34.65 33.70 IOs /Sec ------1.02 0.72 0.71 0.81 1.02 33.37 38.58 71.00 76.03 24.18 24.42 33.11 43.74 73.46 88.72 32.27 33.16 61.67 52.94 31.34 54.77 37.12 36.83 70.83 71.86 Page 2 KB % % /IO PtP Brd ------ --- --0.4 93 7 0.4 0.4 0.4 0.4 1.8 1.8 17.4 13.8 8.3 12.8 1.3 1.9 22.3 17.7 2.0 1.7 14.6 5.5 23.2 23.0 2.0 1.8 18.0 13.2 90 90 91 92 73 74 93 93 76 83 77 75 95 96 73 70 90 91 91 93 73 73 95 93 10 10 9 8 27 26 7 7 24 17 23 25 5 4 27 30 10 9 9 7 27 27 5 7

Date ---------2000/10/16

Resource Usage Macros and Tables

207

Chapter 15: Resource Usage Macros ResNode Macros

ResNode Macros
Function
Macro... ResNode ResOneNode ResNodeByNode ResNodeByGroup Provides a summary of resource usage... averaged across all nodes. for a specific node. node by node. for a node grouping.

Input Format Examples


The input forms of these four macros are described below.
EXEC ResNode (FromDate,ToDate,FromTime,ToTime);

Note: The ResNode macro syntax does not include the FromNode and ToNode parameters to specify a range of nodes.
EXEC ResOneNode (FromDate,ToDate,FromTime,ToTime,Node); EXEC ResNodeByNode (FromDate,ToDate,FromTime,ToTime,FromNode,ToNode); EXEC ResNodeByGroup (FromDate,ToDate,FromTime,ToTime);

See Executing Macros on page 32 for a description of the FromDate, ToDate, FromTime, ToTime, FromNode, ToNode, and Node parameters.

Usage Notes
For any of these macros the following usage notes apply: Logging must be enabled on ResUsageSpma. Name the node log rate.

Output Examples
The reports in the following sections are sample output reports from the ResNode, the ResOneNode, the ResNodebyNode, and the ResNodeByGroup macros, respectively. The following table describes the 19 statistics columns, after the Date and Time columns, in the ResNode output report.

208

Resource Usage Macros and Tables

Chapter 15: Resource Usage Macros ResNode Macros

Statistics columns 1 through 3 4 through 8 9 through 14 15 through 17 18 and 19

Description CPU usage. Logical device interface. Memory interface. Net interface. General node process scheduling.

The following table describes the 16 statistics columns, after the Date and Time columns, in the ResOneNode output report.
Statistics columns 1 and 2 3 through 6 7 through 11 12 through 14 15 and 16 Description CPU usage. Logical device interface. Memory interface. Net interface. General node process scheduling.

The following table describes the 17 statistics columns, after the Date and Time columns, in the ResNodebyNode output report.
Statistics columns 1 and 2 3 through 6 7 through 12 13 through 15 16 and 17 Description CPU usage. Logical device interface. Memory interface. Net interface. General node process scheduling.

The following table describes the 17 statistics columns, after the Date and Time columns, in the ResNodeByGroup output report.
Statistics columns 1 2 and 3 Description GroupId as defined in the associated view as a grouping of one or more nodes. CPU usage.

Resource Usage Macros and Tables

209

Chapter 15: Resource Usage Macros ResNode Macros

Statistics columns 4 through 7 8 through 12 13 through 15 16 and 17

Description Logical device interface. Memory interface. Net interface. General node process scheduling.

The following table describes the statistics columns in all output reports (with the exception of ResNodeByNode, which has a NodeId column, and ResNodeByGroup, which has a GroupId column).
Column CPU Bsy % CPU Eff % (ResNode report) Reports the percent of time the CPUs are busy, based on average CPU usage per node. parallel efficiency of node CPU usage. Parallel efficiency is the total percent of time nodes are busy. It is the average for all nodes of total busy divided by the total busy time of the busiest node. WIO % Ldv IOs /Sec Ldv Eff % (ResNode report) P+S % of IOs Read % of IOs Ldv KB / IO Fre Mem % Mem Aloc / Sec Mem Fai % Mem Age /Sc A+R % of IOs TPtP IOs /Sec TMlt IOs /Sec percent of time the CPUs are idle and waiting for completion of an I/O operation. average number of logical device reads and writes per second for each node. parallel efficiency of the logical device (disk) I/Os. It is the average number of I/Os per node divided by the number of I/Os performed by the node with the most I/Os. percent of logical device reads and writes that are for paging or swapping purposes. percent of logical device reads and writes that are reads. average size of a logical device read or write. percent of memory that is unused. average number of memory allocations per second, per node. percent of memory allocation attempts that failed. Average number of times memory pages were aged out per second, per node. percent of logical device reads and writes that are disk segment reads and writes. total point-to-point net reads and writes per second, per node. total multicast (broadcast or merge) net reads and writes per second, per node.

210

Resource Usage Macros and Tables

Chapter 15: Resource Usage Macros ResNode Macros

Column Net Rtry % Prc Blks / Sec ms /Blk Net Rx Bsy % Net Tx Bsy %

Reports the percent of transmission attempts that resulted in retries. number of times per second, per node, that processes other than message and timer waits are blocked. average time, in milliseconds, spent waiting for a blocked process other than message and timer waits. percent of time the network was busy either receiving. percent of time the network was busy transmitting.

ResNode Sample Output


01/07/12 CPU CPU Bsy Eff Date Time % % ------- -------- --- --01/07/12 04:45:40 2 100 04:46:00 2 100 04:46:20 1 100 04:46:40 2 100 04:47:00 2 100 04:47:20 1 100 04:47:40 1 100 04:48:00 2 100 04:48:20 1 100 04:48:40 2 100 04:49:00 2 100 04:49:20 2 100 04:49:40 2 100 04:50:00 2 100 04:50:20 1 100 04:50:40 1 100 04:51:00 2 100 04:51:20 1 100 04:51:40 2 100 04:52:00 2 100 04:52:20 1 100 04:52:40 1 100 04:53:00 2 100 04:53:20 1 100 04:53:40 2 100 04:54:00 2 100 04:54:20 1 100 GENERAL RESUSAGE SUMMARY Page 4 Average across all nodes Ldv Ldv P+S Rd Ldv Fre Mem Mem Mem A+R TPtP TMlt Net Prc WIO IOs Eff %of %of KB Mem Aloc Fai Age %of IOs IOs Rty Blks % /Sec % IOs IOs /IO % /Sec % /Sec IOs /Sec /Sec % /Sec --- ----- --- --- --- --- --- ---- --- ---- --- ----- ----- --- ----15 16 100 0 0 22 1 1 0 0 100 0 0 0 40 16 16 100 0 0 23 1 1 0 0 100 0 0 0 39 16 16 100 0 0 19 1 1 0 0 100 0 0 0 39 17 16 100 0 0 24 1 1 0 0 100 0 0 0 40 16 16 100 0 0 22 1 1 0 0 100 0 0 0 39 16 16 100 0 0 22 1 1 0 0 100 0 0 0 40 17 17 100 0 0 22 1 1 0 0 100 0 0 0 41 15 16 100 0 0 24 1 1 0 0 100 0 0 0 39 14 16 100 0 0 24 1 1 0 0 100 0 0 0 40 16 17 100 0 0 23 1 1 0 0 100 0 0 0 41 16 16 100 0 0 22 1 1 0 0 100 0 0 0 39 17 17 100 0 0 23 1 1 0 0 100 0 0 0 41 16 17 100 0 0 22 1 1 0 0 100 0 0 0 41 16 16 100 0 0 23 1 3 0 0 100 0 0 0 42 15 16 100 0 0 18 1 1 0 0 100 0 0 0 39 16 16 100 0 0 20 1 1 0 0 100 0 0 0 40 16 16 100 0 0 21 1 1 0 0 100 0 0 0 39 16 16 100 0 0 19 1 1 0 0 100 0 0 0 40 16 17 100 0 0 23 1 1 0 0 100 0 0 0 42 15 16 100 0 0 19 1 1 0 0 100 0 0 0 39 16 16 100 0 0 22 1 1 0 0 100 0 0 0 40 15 16 100 0 0 19 1 1 0 0 100 0 0 0 40 15 16 100 0 0 18 1 1 0 0 100 0 0 0 39 15 16 100 0 0 20 1 1 0 0 100 0 0 0 40 16 16 100 0 0 22 1 1 0 0 100 0 0 0 40 16 16 100 0 0 22 1 1 0 0 100 0 0 0 40 16 17 100 0 0 19 1 1 0 0 100 0 0 0 40 ms Net Net / Rx Tx Blk Bsy% Bsy% ----- --- ---386 ? ? 561 ? ? 383 ? ? 437 ? ? 532 ? ? 383 ? ? 417 ? ? 446 ? ? 426 ? ? 1173 ? ? 456 ? ? 416 ? ? 395 ? ? 2481 ? ? 463 ? ? 353 ? ? 662 ? ? 505 ? ? 341 ? ? 537 ? ? 480 ? ? 395 ? ? 491 ? ? 461 ? ? 1093 ? ? 442 ? ? 450 ? ?

ResOneNode Sample Output


01/07/12 CPU Bsy WIO Date Time % % ------- ------- --- --1/07/12 09:44:20 2 16 09:44:40 1 17 09:45:00 1 16 09:45:20 2 17 09:45:40 1 17 09:46:00 2 17 09:46:20 2 16 09:46:40 1 16 09:47:00 2 16 09:47:20 2 16 09:47:40 2 17 09:48:00 1 15 09:48:20 2 16 09:48:40 2 16 09:49:00 1 16 General Resource Usage Summary for Node 001-01 Ldv P+S Rd IOs %of %of /Sec IOs IOs ----- --- --17 0 0 16 0 0 16 0 0 16 0 0 16 0 0 16 0 0 17 0 0 16 0 0 17 0 0 16 0 0 16 0 0 16 0 0 16 0 0 17 0 0 16 0 0 Ldv Fre Mem KB Mem Aloc /IO % /Sec --- --- ----21 1 1 20 1 1 21 1 1 22 1 1 19 1 1 23 1 1 22 1 1 20 1 1 24 1 1 21 1 1 20 1 1 23 1 1 21 1 1 24 1 1 22 1 1 Mem Fai % --0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Mem A+R TPtP TMlt Net Prc Age %of IOs IOs Rtry Blks /Sc IOs /Sec /Sec % /Sec --- ------- ----- --- --0 100 0 0 0 41 0 100 0 0 0 41 0 100 0 0 0 39 0 100 0 0 0 40 0 100 0 0 0 40 0 100 0 0 0 40 0 100 0 0 0 40 0 100 0 0 0 40 0 100 0 0 0 40 0 100 0 0 0 40 0 100 0 0 0 40 0 100 0 0 0 40 0 100 0 0 0 40 0 100 0 0 0 41 0 100 0 0 0 39 ms / Blk ---477 371 2810 540 362 371 555 390 366 520 439 433 499 1142 378 Page 01 Net Net Rx Tx Bsy% Bsy% --- ---? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?

Resource Usage Macros and Tables

211

Chapter 15: Resource Usage Macros ResNode Macros


09:49:20 09:49:40 09:50:00 09:50:20 2 2 1 2 16 17 16 17 17 16 16 16 0 0 0 0 0 0 0 0 20 20 19 20 1 1 1 1 1 1 3 1 0 0 0 0 0 0 0 0 100 100 100 100 0 0 0 0 0 0 0 0 0 0 0 0 41 41 40 40 543 363 2598 506 ? ? ? ? ? ? ? ?

ResNodeByNode Sample Output


01/07/12 Node by Node General Resource Usage Summary Page 8
Mem A+R TPtP TMlt Net Prc ms Net Net Age %of IOs IOs Rty Blks / Rx Tx /Sc IOs /Sec /Sec % /Sec Blk Bsy% Bsy% ---- --- ----- ----- ---- ----- ------ ---- ---0 100 0 0 0 42 442 ? ? 0 100 0 0 0 41 4887 ? ? 0 100 0 0 0 41 3844 ? ? 0 100 0 0 0 43 402 ? ? 0 100 0 0 0 40 521 ? ? 0 100 0 0 0 40 529 ? ? 0 100 0 0 0 40 387 ? ? 0 100 0 0 0 39 452 ? ? 0 100 0 0 0 40 381 ? ? 0 100 0 0 0 40 1281 ? ? 0 100 0 0 0 39 452 ? ? CPU Ldv P+S Rd Ldv Fre Mem Mem Bsy WIO IOs %of %of KB Mem Aloc Fai Date Time NodeId % % /Sec IOs IOs /IO % /Sec % ------ -------- ------ --- --- ----- --- --- --- --- ----- --01/07/12 04:55:40 001-01 2 17 17 0 0 26 1 1 0 04:56:00 001-01 2 15 16 0 0 22 1 3 0 04:56:20 001-01 2 14 16 0 0 22 1 7 0 04:56:40 001-01 2 16 17 0 0 23 1 6 0 04:57:00 001-01 2 16 16 0 0 23 1 1 0 04:57:20 001-01 1 16 16 0 0 24 1 1 0 04:57:40 001-01 1 15 16 0 0 22 1 1 0 04:58:00 001-01 1 16 16 0 0 22 1 1 0 04:58:20 001-01 1 15 16 0 0 22 1 1 0 04:58:40 001-01 1 16 16 0 0 22 1 1 0 04:59:00 001-01 2 16 16 0 0 21 1 1 0

ResNodeByGroup Sample Output


01/07/12 GENERAL RESOURCE USAGE SUMMARY BY GROUP Page 8 ms Net Net / Rx Tx Blk Bsy Bsy% ------ ---- ---442 ? ? 4887 ? ? 3844 ? ? 402 ? ? 521 ? ? 529 ? ? 387 ? ? 452 ? ? 381 ? ? 1281 ? ? 452 ? ? CPU Ldv P+S Rd Ldv Fre Mem Mem A+R TPtP TMlt Net Prc Group Bsy WIO IOs %of % of KB Mem Aloc Fai %of IOs IOs Rty Blks Date Time Id % % /Sec IOs IOs /IO % /Sec % IOs /Sec /Sec % /Sec -------- -------- ----- --- --- ----- --- ---- --- --- ----- --- --- ----- ----- ---- ----01/07/12 04:55:40 A 2 17 17 0 0 26 1 1 0 100 0 0 0 42 04:56:00 A 2 15 16 0 0 22 1 3 0 100 0 0 0 41 04:56:20 A 2 14 16 0 0 22 1 7 0 100 0 0 0 41 04:56:40 A 2 16 17 0 0 23 1 6 0 100 0 0 0 43 04:57:00 A 2 16 16 0 0 23 1 1 0 100 0 0 0 40 04:57:20 A 1 16 16 0 0 24 1 1 0 100 0 0 0 40 04:57:40 A 1 15 16 0 0 22 1 1 0 100 0 0 0 40 04:58:00 A 1 16 16 0 0 22 1 1 0 100 0 0 0 39 04:58:20 A 1 15 16 0 0 22 1 1 0 100 0 0 0 40 04:58:40 A 1 16 16 0 0 22 1 1 0 100 0 0 0 40 04:59:00 A 2 16 16 0 0 21 1 1 0 100 0 0 0 39

212

Resource Usage Macros and Tables

Chapter 15: Resource Usage Macros ResPs Macros

ResPs Macros
Function
Macro... ResPsByNode ResPsByGroup Provides a summary of the Priority Scheduler resource usage... by node, produces one row of data for each Performance Group ID, for each logging period. by coexistence group, produces one row of data for each node type in the system per logging period.

Input Format Examples


The input forms of the macros are described below.
EXEC ResPsByNode (FromDate,ToDate,FromTime,ToTime,FromNode,ToNode); EXEC ResPsByGroup (FromDate,ToDate,FromTime,ToTime); EXEC ResPsByNodeWDJoin (FromDate,ToDate,FromTime,ToTime,FromNode,ToNode); EXEC ResPsWDJoin (FromDate,ToDate,FromTime,ToTime);

See Executing Macros on page 32 for a description of the FromDate, ToDate, FromTime, ToTime, FromNode, ToNode, and Node parameters. Note: Coexistence support can be accomplished using the NodeType column to do a group by in SQL directly. Therefore, the GroupId column is not needed and the ResUsageSps table view is not provided.

Usage Notes
For any of these macros the following usage notes apply: Logging must be enabled on ResUsageSps. Name the node log rate.

In order for the ResPsWDJoin and ResPsByNodeWDJoin macros to function, you must have Teradata ASM Category 3 rule (Workloads) enabled and the workloads defined. Each defined workload is internally associated with a priority scheduler Performance Group, which in turn is associated with Allocation Groups. These macros display the critical workloads in the context of their Allocation Group relationships. For information on working with Teradata ASM rules, see the Teradata Viewpoint Workload Designer portlet.

Output Examples
The reports in the following sections are sample output reports from the ResPsByNode and ResPsByGroup macros.
Resource Usage Macros and Tables 213

Chapter 15: Resource Usage Macros ResPs Macros

The following table describes the 12 statistics columns, after the Date and Time columns, in the ResPsByNode output report.
Statistics columns 1 2 3 through 12 Description Node ID. Performance Group ID. Summary of the Priority Scheduler statistics.

The following table describes the 11 statistics columns, after the Date and Time columns, in the ResPsByGroup output report.
Statistics columns 1 2 through 11 Description Node type. Summary of the Priority Scheduler statistics.

The following table describes the 15 statistics columns, after the Date and Time columns, in the ResPsByNodeWDJoin output report.
Statistics columns 1 2 3 4 5 6 through 15 Description Node ID. Allocation Group ID. Relative weight. Workload name. Performance period ID. Summary of the Priority Scheduler and Teradata ASM workload statistics.

The following table describes the 14 statistics columns, after the Date and Time columns, in the ResPsWDJoin output report. The following table describes the summary statistics columns in all output reports (with the exception of the ResPsWDJoin and ResPsByNodeWDJoin macros which have the CPU ms column).
Column CPU Bsy % Reports the percent of CPU time consumed by a task associated or running under the Performance Group.

214

Resource Usage Macros and Tables

Chapter 15: Resource Usage Macros ResPs Macros

Column IO Blks / Sec Num Procs Num Requests Avg QWait Time Max QWait Time Q Length Q Length Max Avg Svc Time Max Svc Time

Reports the average number of logical data blocks read and (or) written by Performance Group per second. number of processes assigned to the Performance Group at the end of the gather period. number of requests of the AWT. average QWaitTime for each request during a specified period. maximum time in milliseconds that work requests waited on an input queue before being serviced. number of work requests waiting on the input queue for service. maximum number of work requests waiting on the input queue for service. average ServiceTime for each request during a specified period. maximum time in milliseconds that work requests required for service.

For a complete description of the above columns, see Chapter 11: ResUsageSps Table.

ResPsByNode Macro Sample Output


07/05/07 Date Time NodeID PGid PS by Node Usage Summary Page CPU Bsy % --0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 1 0 1 IO Blks/ Sec ----0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Num Num Avg Max Q Q Procs Requests QWait QWait Length Len Time Time Max ---0 50 0 54 0 50 0 54 0 50 0 54 0 50 0 0 54 0 50 0 54 0 0 ------0 5 0 2 0 3 0 3 0 3 0 4 0 3 0 0 3 0 5 0 3 0 50 ----- ---? 0 0 0 ? 0 ? 2 ? 0 ? 0 ? ? 0 ? ? ? 0 ? 0 ? 0 ? 3 0 0 10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ----0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ---0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Page Avg Svc Time ----? 62 ? 215 ? 162 ? 97 ? 93 ? 50 ? 102 ? ? 130 ? 71 ? 112 ? 62 6 Max Svc Time ----0 100 0 220 0 270 0 180 0 160 0 80 0 150 0 0 160 0 260 0 140 0 90

-------- --------07/05/07 14:40:00 15:00:00

------1-05 1-05 1-04 1-04 1-05 1-05 1-04 1-04 1-05 1-05 1-04 1-04 1-05 1-05 1-04 1-04 1-04 1-05 1-05 1-04 1-04 1-05 1-05

---1 40 0 40 0 40 0 40 0 40 0 40 0 40 0 3 40 0 40 0 40 0 40

15:20:00

15:40:00

16:00:00

17:00:00

Resource Usage Macros and Tables

215

ResPsByGroup Macro Sample Output


07/05/04 PS by Group Usage Summary CPU IO Avg Node Bsy Blks Num Num QWait Type % /Sec Procs Requests Time ---- ---- ----- ----- -------- -----UNKN 0 0 3 5 1 UNKN 0 0 5 0 0 UNKN 0 0 3 3 0 UNKN 0 0 3 3 0 Max QWait Time ------10 0 10 10 Page 1

216 Resource Usage Macros and Tables

Date Time ------- -------07/05/04 13:00:00 13:10:00 13:20:00 14:00:00

Q Avg Max Q Len Svc Svc Length MaxTime Time Time ------- ------- ------ ------0 0 30 200 0 0 102 210 0 0 30 160 0 0 52 240

ResPsByNodeWDJoin Macro Sample Output


07/08/09 Workload Usage Summary (Average Usage per AMP By Node) IO Blks /Sec ----0 0 0 0 7 0 36 0 0 0 0 2 0 0 10 9 0 0 0 3 0 2 4 10 0 0 0 0 7 Avg QWait Time -----? ? ? 4 3 ? 3 ? 2 ? ? 4 ? ? 5 ? ? ? 13 4 ? 22 9 2 ? ? ? 3 3 Max QWait Time ------0 0 0 70 220 0 400 0 30 0 0 210 0 0 340 0 0 0 130 30 0 220 240 50 0 0 0 160 290 Q Len Max -----0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Avg Svc Time ------? ? ? 2 18 ? 35 ? 14 ? ? 1548 ? ? 1303 ? ? ? 309 7072 ? 3875 333 24 ? ? ? 12 45 Page 1 Max Svc Time ------0 0 0 100 1160 0 4120 0 280 0 0 41680 0 0 47370 1063680 0 0 3720 67660 0 500 4740 1980 0 0 0 830 2730

Date -------07/08/06

Time -------17:57:00

Node ID -----1-04

AG ID --1 2 3 4 5 7

Rel Wgt --1 2 5 10 48 11

Workload (WD) Name -----------------------------? ? ? ? All_Tactical TDWM Continious Load LobLoader Teradata Manger WD-ConsoleH WD-ConsoleR ADW_Strategic DWD_OLAP Java Stored Procedures Mixedsql Multiuser Simulation PEstress WD-ConsoleM WD-Default Penalty_box WD-ConsoleL All_Tactical qmiles ? ? ? ? ? All_Tactical

PP ID -0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0

CPU ms -----0 0 0 36 1084 0 4156 0 19 0 0 2506 0 0 2848 995 0 0 10 2613 0 911 3769 1048 0 0 0 64 957

Num Procs -----0 0 0 0 0 0 0 0 0 0 0 13 0 0 21 7 0 0 0 4 0 0 0 6 0 0 0 0 0

Num Requests -------0 0 0 48 364 0 2679 0 18 0 0 110 0 0 124 0 0 0 12 43 0 1 87 270 0 0 0 64 340

Q Length -----0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

9 10 200 1-05 1 2 3 4 5

2 12 100 1 2 5 10 48

Resource Usage Macros and Tables 217

TDWM 7 11 Continious Load LobLoader Teradata Manger WD-ConsoleH WD-ConsoleR ADW_Strategic DWD_OLAP Java Stored Procedures Mixedsql Multiuser Simulation PEstress WD-ConsoleM WD-Default Penalty_box WD-ConsoleL All_Tactical qmiles ?

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0

0 8223 0 19 0 0 1802 0 0 1573 2724 0 0 9 1313 0 670 2916 1062

0 85 0 0 0 0 4 0 0 6 4 0 0 0 2 0 2 3 10

0 1 0 0 0 0 3 0 0 5 4 0 0 0 4 0 0 0 6

0 3401 0 17 0 0 66 0 0 427 0 0 0 12 10 0 3 69 226

? 2 ? 4 ? ? 6 ? ? 4 ? ? ? 4 5 ? 84 12 2

0 550 0 80 0 0 50 0 0 170 0 0 0 20 30 0 510 530 360

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

? 25 ? 23 ? ? 5564 ? ? 1529 ? ? ? 134 13160 ? 1886 345 32

0 4220 0 100 0 0 82900 0 0 82110 0 0 0 960 98350 0 1890 4710 3570

9 10 200

2 12 100

Note: Question marks used as values in the Workload (WD) Name column in the output above mean there is no associated workload to the PG ID/PP ID. However, if the question mark is used as a value in any other column, the it indicates there is no information to report for this time period (see Question Marks on page 176 for details).

Chapter 15: Resource Usage Macros ResVdskByNode Macros

ResVdskByNode Macros
Function
Macro... ResVdskByNode ResVdskOneNode ResVdskByGroup Reports the logical device traffic by... a physical node. for a specified node. a node grouping.

Input Format Examples


The input forms of these three macros are described below.
EXEC ResVdskByNode (FromDate,ToDate,FromTime,ToTime,FromNode,ToNode); EXEC ResVdskOneNode (FromDate,ToDate,FromTime,ToTime,Node); EXEC ResVdskByGroup (FromDate,ToDate,FromTime,ToTime);

See Executing Macros on page 32 for a description of the FromDate, FromTime, ToDate, ToTime, FromNode, ToNode and Node parameters.

Usage Notes
For any of these macros the following usage notes apply: Logging must be enabled on ResUsageSvdsk. Name the node log rate.

Output Examples
The following table describes the statistics columns in all output reports (with the exception of ResVdiskByNode, which has the NodeId column, and ResVdskByGroup, which has the NodeType column).
Column... Read Cnt / Sec Write Cnt / Sec Rd KB / I/O Wrt KB / I/O Avg I/O Resp Reports the... average number of logical device reads per second. average number of logical device writes per second. average number of KBs per logical device read. average number of KBs per logical device write. average response time for a logical device read or write in seconds.

218

Resource Usage Macros and Tables

Chapter 15: Resource Usage Macros ResVdskByNode Macros

Column... Out Rqst Time % Max Concur Rqsts

Reports the... percent of time there are outstanding requests. maximum number of concurrent requests during the log period.

ResVdskByNode Sample Output


06/09/26 VDISK TRAFFIC BY NODE Avg Wrt KB I/O I/O Resp ------- ------46.69 0.023 116.34 0.152 118.98 0.143 113.54 0.126 109.93 0.118 112.07 0.119 112.32 0.107 100.01 0.081 38.15 0.065 71.56 0.064 16.76 0.039 18.84 0.038 32.94 0.017 Page Out Rqst Time % -----9.7% 85.3% 98.8% 98.4% 97.7% 98.0% 97.3% 54.9% 41.0% 36.2% 45.8% 38.6% 3.1% 1

Date -------06/09/26

Time -------10:09:45 10:10:00 10:10:15 10:10:30 10:10:45 10:11:00 10:11:15 10:11:30 10:11:45 10:12:00 10:12:15 10:12:30 10:12:45

Node Id -----001-01 001-01 001-01 001-01 001-01 001-01 001-01 001-01 001-01 001-01 001-01 001-01 001-01

Read Cnt Write Cnt Rd KB / Sec / Sec I/O / -------- -------- ------0.73 5.20 121.27 0.40 41.17 127.50 0.00 47.40 ? 2.43 45.17 111.79 2.77 45.90 12.00 2.67 43.77 12.00 2.83 46.10 12.00 4.87 14.13 1374.25 5.37 1.77 1785.00 5.43 0.30 1785.00 3.20 9.70 1759.00 0.50 12.60 275.47 0.00 2.17 ?

Note: The NodeId column only appears in the ResVdskByNode output report.

ResVdskOneNode Sample Output


06/09/26 VDISK Traffic for Node 001-01 Avg I/O Resp ------0.023 0.152 0.143 0.126 0.118 0.119 0.107 0.081 0.065 0.064 0.039 0.038 0.017 Page Out Rqst Time % -----9.7% 85.3% 98.8% 98.4% 97.7% 98.0% 97.3% 54.9% 41.0% 36.2% 45.8% 38.6% 3.1% 1

Date -------06/09/26

Time -------10:09:45 10:10:00 10:10:15 10:10:30 10:10:45 10:11:00 10:11:15 10:11:30 10:11:45 10:12:00 10:12:15 10:12:30 10:12:45

ReadCnt / Sec --------0.73 0.40 0.00 2.43 2.77 2.67 2.83 4.87 5.37 5.43 3.20 0.50 0.00

WriteCnt Rd KB / Sec / I/O -------- ------5.20 121.27 41.17 127.50 47.40 ? 45.17 111.79 45.90 12.00 43.77 12.00 46.10 12.00 14.13 1374.25 1.77 1785.00 0.30 1785.00 9.70 1759.00 12.60 275.47 2.17 ?

Wrt KB / I/O ------46.69 116.34 118.98 113.54 109.93 112.07 112.32 100.01 38.15 71.56 16.76 18.84 32.94

ResVdskByGroup Sample Output


06/09/26 VDISK TRAFFIC BY GROUP Page Avg Max Out I/O Concur Rqst Resp Rqsts Time % ------- ------ -----0.023 4.5 9.7% 0.152 20.5 85.3% 0.143 20.0 98.8% 0.126 17.5 98.4% 0.118 13.5 97.7% 0.119 14.5 98.0% 0.107 14.0 97.3% 0.081 12.5 54.9% 1

Node Date Type Time -------- ---- -------06/09/26 4400 10:09:45 10:10:00 10:10:15 10:10:30 10:10:45 10:11:00 10:11:15 10:11:30

ReadCnt / Sec -------0.73 0.40 0.00 2.43 2.77 2.67 2.83 4.87

WriteCnt Rd KB / Sec / I/O -------- ------5.20 121.27 41.17 127.50 47.40 ? 45.17 111.79 45.90 12.00 43.77 12.00 46.10 12.00 14.13 1374.25

Wrt KB / I/O ------46.69 116.34 118.98 113.54 109.93 112.07 112.32 100.01

Resource Usage Macros and Tables

219

Chapter 15: Resource Usage Macros ResVdskByNode Macros


10:11:45 10:12:00 10:12:15 10:12:30 10:12:45 5.37 5.43 3.20 0.50 0.00 1.77 0.30 9.70 12.60 2.17 1785.00 1785.00 1759.00 275.47 ? 38.15 71.56 16.76 18.84 32.94 0.065 0.064 0.039 0.038 0.017 3.0 2.0 2.0 3.5 2.0 41.0% 36.2% 45.8% 38.6% 3.1%

Note: The NodeType column only appears in the ResVdskByGroup output report.

220

Resource Usage Macros and Tables

APPENDIX A

How to Read Syntax Diagrams

This appendix describes the conventions that apply to reading the syntax diagrams used in this book.

Syntax Diagram Conventions


Notation Conventions
Item Letter Number Definition / Comments An uppercase or lowercase alphabetic character ranging from A through Z. A digit ranging from 0 through 9. Do not use commas when typing a number with more than 3 digits. Word Keywords and variables. UPPERCASE LETTERS represent a keyword. Syntax diagrams show all keywords in uppercase, unless operating system restrictions require them to be in lowercase. lowercase letters represent a keyword that you must type in lowercase, such as a Linux command. lowercase italic letters represent a variable such as a column or table name. Substitute the variable with a proper value. lowercase bold letters represent an excerpt from the diagram. The excerpt is defined immediately following the diagram that contains it. UNDERLINED LETTERS represent the default value. This applies to both uppercase and lowercase words. Spaces Punctuation Use one space between items such as keywords or variables. Type all punctuation exactly as it appears in the diagram.

Paths
The main path along the syntax diagram begins at the left with a keyword, and proceeds, left to right, to the vertical bar, which marks the end of the diagram. Paths that do not have an arrow or a vertical bar only show portions of the syntax. The only part of a path that reads from right to left is a loop.

Resource Usage Macros and Tables

221

Appendix A: How to Read Syntax Diagrams Syntax Diagram Conventions

Continuation Links Paths that are too long for one line use continuation links. Continuation links are circled letters indicating the beginning and end of a link:
A

FE0CA002

When you see a circled letter in a syntax diagram, go to the corresponding circled letter and continue reading.

Required Entries
Required entries appear on the main path:

SHOW

FE0CA003

If you can choose from more than one entry, the choices appear vertically, in a stack. The first entry appears on the main path:

SHOW

CONTROLS VERSIONS
FE0CA005

Optional Entries
You may choose to include or disregard optional entries. Optional entries appear below the main path:

SHOW CONTROLS
FE0CA004

222

Resource Usage Macros and Tables

Appendix A: How to Read Syntax Diagrams Syntax Diagram Conventions

If you can optionally choose from more than one entry, all the choices appear below the main path:

READ SHARE ACCESS


JC01A010

Some commands and statements treat one of the optional choices as a default value. This value is UNDERLINED. It is presumed to be selected if you type the command or statement without specifying one of the options.

Strings
String literals appear in apostrophes:

'msgtext '
JC01A004

Abbreviations
If a keyword or a reserved word has a valid abbreviation, the unabbreviated form always appears on the main path. The shortest valid abbreviation appears beneath.

SHOW

CONTROLS CONTROL
FE0CA042

In the above syntax, the following formats are valid: SHOW CONTROLS SHOW CONTROL

Loops
A loop is an entry or a group of entries that you can repeat one or more times. Syntax diagrams show loops as a return path above the main path, over the item or items that you can repeat:

, , ( cname 4

)
JC01B012

Resource Usage Macros and Tables

223

Appendix A: How to Read Syntax Diagrams Syntax Diagram Conventions

Read loops from right to left. The following conventions apply to loops:
IF... there is a maximum number of entries allowed there is a minimum number of entries required THEN... the number appears in a circle on the return path. In the example, you may type cname a maximum of 4 times. the number appears in a square on the return path. In the example, you must type at least three groups of column names. the character appears on the return path. If the diagram does not show a separator character, use one blank space. In the example, the separator character is a comma. a delimiter character is required around entries the beginning and end characters appear outside the return path. Generally, a space is not needed between delimiter characters and entries. In the example, the delimiter characters are the left and right parentheses.

a separator character is required between entries

Excerpts
Sometimes a piece of a syntax phrase is too large to fit into the diagram. Such a phrase is indicated by a break in the path, marked by (|) terminators on each side of the break. The name for the excerpted piece appears between the terminators in boldface type. The boldface excerpt name and the excerpted phrase appears immediately after the main diagram. The excerpted phrase starts and ends with a plain horizontal line:
LOCKING A HAVING con excerpt where_cond , cname , col_pos
JC01A014

excerpt

224

Resource Usage Macros and Tables

Appendix A: How to Read Syntax Diagrams Syntax Diagram Conventions

Multiple Legitimate Phrases


In a syntax diagram, it is possible for any number of phrases to be legitimate:

dbname
DATABASE

tname
TABLE

vname
VIEW
JC01A016

In this example, any of the following phrases are legitimate: dbname DATABASE dbname tname TABLE tname vname VIEW vname

Sample Syntax Diagram


, CREATE VIEW CV

viewname cname

AS LOCKING LOCK

A DATABASE

dbname
FOR

ACCESS SHARE READ WRITE EXCLUSIVE EXCL MODE IN

tname
TABLE

vname
VIEW , B SEL , FROM

expr

tname .aname

qual_cond

C HAVING cond qual_cond WHERE cond GROUP BY , ;

cname , col_pos
JC01A018

Resource Usage Macros and Tables

225

Appendix A: How to Read Syntax Diagrams Syntax Diagram Conventions

Diagram Identifier
The alphanumeric string that appears in the lower right corner of every diagram is an internal identifier used to catalog the diagram. The text never refers to this string.

226

Resource Usage Macros and Tables

APPENDIX B

ResUsageIpma Table

The ResUsageIpma table includes resource usage data for system-wide, node information. Note: Summary Mode is not applicable to this table. This table is created as a MULTISET table. For more information see Relational Primary Index on page 38. The following table describes the ResUsageIpma table columns.
Type of Data Invalid Platform

Column Name

Description HOUSEKEEPING COLUMNS

Data Type

RELATIONAL PRIMARY KEY COLUMNS These columns taken together form the nonunique primary index. TheDate TheTime n/a n/a Date of the log entry. Nominal time of the log entry. Note: Under conditions of heavy system load, entries may be logged late (typically, by no more than one or two seconds), but this field will still contain the time value when the entry should have been logged. See the Secs and NominalSecs columns. NodeId n/a Identifies the Node. The Node ID is formatted as CCC-MM, where CCC denotes the threedigit cabinet number and MM denotes the two-digit chassis number of the node. For example, a node in chassis 9 of cabinet 3 has a node ID of 003-09. Note: SMP nodes have a chassis and cabinet number of 1. For example, the node ID of an SMP node is 001-01. MISCELLANEOUS HOUSEKEEPING COLUMNS These columns provide a generalized picture of the vprocs running on this node, shown as Type n virtual processors where n = 1 to 7. Under the current implementation, only Type 1 (AMP), Type 2 (PE), Type 3 (GTW), Type 4 (RSG), and Type 5 (VSS) vprocs exist; vproc types 6 through 7 are not currently used. GmtTime n/a Greenwich Mean Time is not affected by the Daylight Savings Time adjustments that occur twice a year. FLOAT INTEGER DATE FLOAT

Resource Usage Macros and Tables

227

Appendix B: ResUsageIpma Table

Column Name NodeType

Type of Data n/a

Description Type of node, representing the per node system family type. For example, 5600C or 5555H. Number of CPUs on this node. This field is useful for normalizing the CPU utilization field values for the number of CPUs on the node. This is especially important in coexistence systems where the number of CPUs can vary across system nodes.

Data Type CHAR(8)

Invalid Platform

NCPUs

n/a

SMALLINT

Vproc1 VprocType1 Vproc2 VprocType2 Vproc3 VprocType3 Vproc4 VprocType4 Vproc5 VprocType5

n/a n/a n/a n/a n/a n/a n/a n/a n/a n/a

Current count of type 1 (AMP) virtual processors running under the node. Type of virtual processor for Vproc1. Value is always AMP. Current count of type 2 (PE) virtual processors running under the node. Type of virtual processor for Vproc2. Value is always PE. Current count of type 3 (GTW) virtual processors running under the node. Type of virtual processor for Vproc3. Value is always GTW. Current count of type 4 (RSG) virtual processors running under the node. Type of virtual processor for Vproc4. Value is always RSG. Current count of type 5 (VSS) virtual processors running under the node. Type of virtual processor for Vproc5. The value is always TVS (see Teradata Virtual Storage). Current count of type 6 virtual processors running under the node. This column reports zeros and " " (blanks).

SMALLINT CHAR(4) SMALLINT CHAR(4) SMALLINT CHAR(4) SMALLINT CHAR(4) SMALLINT CHAR(4)

Vproc6

n/a

SMALLINT

VprocType6 Vproc7

n/a n/a

Type of virtual processor for Vproc6. Current count of type 7 virtual processors running under the node. This column reports zeros and " " (blanks).

CHAR(4) SMALLINT

ALL

VprocType7

n/a

Type of virtual processor for Vproc7.

CHAR(4)

ALL

228

Resource Usage Macros and Tables

Appendix B: ResUsageIpma Table

Column Name MemSize

Type of Data n/a

Description Amount of memory on this node in megabytes. Useful for performing memory usage calculations. A per node normalization factor that is used to normalize the reported CPU values of the ResUsageSpma table. This value is scaled by a factor of 100. For example, if the actual factor is 5.25, then the value of the NodeNormFactor will be 525. Note: The normalization factor is related to the NodeType value reported in the ResUsageSpma table. For information on this value, see Chapter 6: ResUsageSpma Table.

Data Type INTEGER

Invalid Platform

NodeNormFactor

n/a

INTEGER

Secs

n/a

Actual number of seconds in the log period represented by this row. Normally the same as NominalSecs, but can be different in three cases: The first interval after a log rate change A sample logged late because of load on the system System clock adjustments affect reported Secs Useful for normalizing the count statistics contained in this row, for example, to a persecond measurement.

INTEGER

CentiSecs

n/a

Number of centiseconds in the logging period. This field is useful when performing data calculations with small elapsed times where the difference between centisecondbased data and whole seconds results in a percentage error. A specified or nominal number of seconds in the logging period.

INTEGER

NominalSecs

n/a

SMALLINT

Resource Usage Macros and Tables

229

Appendix B: ResUsageIpma Table

Column Name Active

Type of Data count

Description Controls whether or not the rows will be logged to the ResUsage tables if Active Row Filter Mode is enabled. If Active is set to: a non-zero value, then the row contains modified data columns. a zero value, then none of the data columns in the row have been updated during the logging period. For example, if Active Row Filter Mode is enabled, then the rows that have a zero Active field value will not be logged to the ResUsage tables.

Data Type FLOAT

Invalid Platform

CollectIntervals

n/a

The number of gather periods per reporting period. In the Collect Buffer and Log Buffer, the value is the number of Gather operations that have been performed during the period. This number can vary from one period to the next. STATISTICS COLUMNS PROCESS SCHEDULING COLUMNS

SMALLINT

Scheduled CPU Switching Columns Identify the number of times CPUs were switched by the scheduler from one type of work to another type of work. CPUProcSwitches count Number of times the scheduler switched a CPUs currently active process to a new process. Number of CPUProcSwitches where a process replaced itself, that is, the new process was the same as the old process. This field is a subset of CPUProcSwitches. FLOAT Windows

CPUProcSameSwitches

count

FLOAT

ALL

Interrupted CPU Switching Columns Identify the number of times an interrupt was issued for the node and/or its CPUs. ProcNetInts IOPtoCPUInts ProcDiskInts ProcHostInts count count count count Number of times the node was interrupted for Teradata a net request. Number of times a CPU was interrupted by the IOP. Number of times the node was interrupted to handle a disk request. Number of times the node was interrupted to handle a host request. FLOAT FLOAT FLOAT FLOAT ALL ALL ALL ALL

230

Resource Usage Macros and Tables

Appendix B: ResUsageIpma Table

Column Name ProcLanInts ProcGenClockInts ProcCPUClockInts ProcInterCPUInts

Type of Data count count count count

Description Number of times the node was interrupted to handle a LAN request. The number of timer interrupts. Number of times a CPU was interrupted to service a CPU specific clock event. Number of times the a CPU was interrupted to service an inter-CPU request. MEMORY COLUMNS

Data Type FLOAT FLOAT FLOAT FLOAT

Invalid Platform ALL Windows ALL ALL

Memory Page Deallocation Columns Represent the number of memory page deallocations specific to generic node activities, subdivided into memory types. The amount deallocated can be derived by multiplying the number of deallocations by the fixed page size. These columns do not include any memory deallocated specific to a vproc running under the node. MemTextDestroys count Number of memory deallocations and sizedecreasing memory alters for non-system overhead text (code). NET COLUMNS Message Type Columns Subdivide all messages sent and received into the type of message, where: Hash messages (Hash) are data sent to a destination through its primary or fallback hash value Processor messages (Proc) are data sent to a destination through a vproc ID Group messages (Group) are broadcasted messages to be received by members of a group Local messages (Local) are messages communicated locally within the node Channel messages (Chan) are data sent between vprocs through channel IDs for purposes of a private conversation to perform functions such as row redistribution, and so on Mailbox messages (Mbox) are data sent between vprocs through mailbox IDs for similar purposes as channel messages. A duplicated accounting is done with two different perspectives, since Hash + Proc + Group + Local messages = Chan + MBox messages. MsgHashReads MsgHashWrites MsgProcReads MsgProcWrites MsgGroupReads MsgGroupWrites count count count count count count Number of hash messages read by this node. Number of hash messages written by this node. Number of processor messages read by this node. Number of processor messages written by the node. Number of group messages read by this node. Number of group messages written by this node. FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT ALL

Resource Usage Macros and Tables

231

Appendix B: ResUsageIpma Table

Column Name MsgLocalReads MsgLocalWrites MsgChanReads MsgChanWrites MsgMboxReads MsgMboxWrites

Type of Data count count count count count count

Description Number of local messages read by this node. Number of local messages written by this node. Number of channel messages read by this node. Number of channel messages written by this node. Number of mailbox messages read by this node. Number of mailbox messages written by this node.

Data Type FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT

Invalid Platform

Message Delivery Time Columns Identify the time it took for hash, processor, group and local messages to reach their destination. Two times are provided: Message transmission to mailbox delivery (MDelivery) Mailbox delivery to process delivery (PDelivery) MsgHashMDelivery MsgProcMDelivery MsgGroupMDelivery MsgLocalMDelivery MsgHashPDelivery MsgProcPDelivery MsgGroupPDelivery MsgLocalPDelivery count count count count count count count count Total amount of time read hash messages took for mailbox delivery. Total amount of time read processor messages took for mailbox delivery. Total amount of time read group messages took for mailbox delivery. Total amount of time read local messages took for mailbox delivery. Total amount of time read hash messages took for process delivery. Total amount of time read processor messages took for process delivery. Total amount of time read group messages took for process delivery. Total amount of time read local messages took for process delivery. FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT

Net Circuit Management Columns Identify the management of Teradata net circuits (Circ) and raw data traffic on the network (hardware) on all networks. Note: All of these columns except for NetBackoffs are net-specific. On a single-node system, net-specific statistics are not meaningful and are always zero. NetBackoffs count Software backoffs, defined as BNS service blocked occurrences without regard for which net was involved. FLOAT

232

Resource Usage Macros and Tables

Appendix B: ResUsageIpma Table

Column Name NetTxCircPtp

Type of Data count

Description Total number (both normal and high priority) of point-to-point circuits transmitted on all Bynets. Total number (both normal and high priority) of broadcast circuits transmitted on all Bynets. Number of high priority point-to-point circuits transmitted on all Bynets. Number of high priority broadcast circuits transmitted on all Bynets. Total number (both normal and high priority) of point-to-point circuits received on all Bynets. Total number (both normal and high priority) of broadcast circuits received on all Bynets. Bynet Network Transport Data Columns

Data Type FLOAT

Invalid Platform

NetTxCircBrd

count

FLOAT

NetTxCircHPPtP NetTxCircHPBrd NetRxCircPtp

count count count

FLOAT FLOAT FLOAT

NetRxCircBrd

count

FLOAT

NetTxKBPtP NetTxKBBrd NetRxKBPtP NetRxKBBrd

count count count count

Total point-to-point data KBs transmitted over all Bynets. Total broadcast data KBs transmitted over all Bynets Total point-to-point data KBs received over all Bynets. Total broadcast data KBs received over all Bynets.

FLOAT FLOAT FLOAT FLOAT

Net Miscellaneous Contention Management Columns Identify some additional contention management not addressed in the other contention management areas. Note: NetBrdWindowOverrun is net-specific, that is, it relates to each specific Bynet. On a single-node system, net-specific statistics are not meaningful and are always zero. NetMsgFCSleep NetMsgFCBlock NetMsgResourceBlock count count count Number of times a transmitter process was put to sleep because it was flow controlled. Number of times the net software was blocked because the receiver was flow controlled. Number of times the net software was blocked because the receiver could not get the necessary resources. Number of times the net software was blocked because the channel was not in RxReady state on the receiver. FLOAT FLOAT FLOAT

NetMsgChannelBlock

count

FLOAT

Resource Usage Macros and Tables

233

Appendix B: ResUsageIpma Table

Column Name NetMsgGroupBlock

Type of Data count

Description Number of times the net software was blocked because the receiver could not implicitly enter the group. Number of times the net software could not accept a message and caused a transmitter to block. Number of times a merge message was blocked until delivery of outstanding outgoing messages. Broadcast window overruns on all Bynets. The number of concurrent active merges on all Bynets. Number of times an IOP task encountered an empty row-block buffer on all Bynets. Number of transmit circuits that were backedoff too many times and had to be converted to blocking circuits. Number of broadcast window errors. Number of network configurations and reconfigurations. Number of protocol filters executed. Number of soft backoffs transmitted on all Bynets. Number of soft backoffs received on all Bynets.

Data Type FLOAT

Invalid Platform

NetMsgRxBlock

count

FLOAT

NetMrgBlock

count

FLOAT

NetBrdWindowOverrun NetActiveMrg NetMrgBufWaits NetBackoffExhausted

count count count count

FLOAT FLOAT FLOAT FLOAT ALL

NetBrdWindowError NetConfigurations NetProtocolFilter NetTxSoftBackoffs NetRxSoftBackoffs

count count count count count

FLOAT FLOAT FLOAT FLOAT FLOAT

ALL ALL ALL ALL ALL

Net Queues Columns Identify lengths of the various internal queues used by the network controllers. NetSamples can be used to normalize all aggregated sampled statistics to an average queue-length basis. Example: Dividing (NetPtPQueue/NetSamples) yields the average point-to-point queue length over all samples on all networks taken during this log interval. All of the aggregated sampled statistics columns in the following table are net-specific, that is, they relate to each specific Bynet. On a single-node system, net-specific statistics are not meaningful and are always zero. NetPtPQueue NetPtPQueueMax NetBrdQueue count max count Aggregated sample point-to-point normal priority queue length on all Bynets. The maximum value of NetPtPQueue over all gather intervals in this reporting interval. Aggregated sample broadcast normal priority queue length on all Bynets. FLOAT FLOAT FLOAT

234

Resource Usage Macros and Tables

Appendix B: ResUsageIpma Table

Column Name NetBrdQueueMax NetHPPtPQueue NetHPPtPQueueMax NetHPBrdQueue NetHPBrdQueueMax NetBlockQueueSum

Type of Data max count max count max count

Description The maximum value of NetBrdQueue over all gather intervals in this reporting interval. Aggregated sample point-to point high priority queue length on all Bynets. The maximum value of NetHPPtPQueue over all gather intervals in this reporting interval. Aggregated sample broadcast high priority queue length on all networks. The maximum value of NetHPBrdQueue over all gather intervals in this reporting interval. Total number of services on the BlockableService queue, regardless of which net during each log interval. Services can be blocked for a variety of reasons including receiver flow control, receiver resource usage, and daemon services. Total number of services on the BlockableServices queue. Maximum number of services on the BlockableServices queue in this log interval. The current count of pending merges, regardless of which net. A merge may be queued for reasons such as: the local IOP memory is saturated system memory is trashing. GENERAL CONCURRENCY CONTROL COLUMNS

Data Type FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT

Invalid Platform

NetBlockQueueTotal NetBlockQueueMax NetPendMrgQueue

count max count

FLOAT FLOAT FLOAT

Operating System Lock Management Columns Identify database locking activities for internal multiprocessing operating system concurrency control. LockEnters LockBlocks count count Number of times entry into a lockable resource was requested. Number of times entry into a lockable resource was blocked, requiring the requestor to spin until the resource is unblocked. (requests - blocks = immediate grants.) FLOAT FLOAT ALL ALL

Secondary Cache Misses Columns Identify the percentage of time accesses were not in the cache. CacheAccess count Total number of accesses. FLOAT ALL

Resource Usage Macros and Tables

235

Appendix B: ResUsageIpma Table Spare Columns

Column Name CacheMiss CacheWrites CacheWriteThrus

Type of Data count count count

Description Number of times accesses were not in the cache. Total number of writes to the cache. Number of cache write through accesses (write bypasses the cache and goes straight to main memory). Number of cache write back accesses from cache to main memory, that is, delayed writes of data previously written to the cache by the CPU.

Data Type FLOAT FLOAT FLOAT

Invalid Platform ALL ALL ALL

CacheWriteBacks

count

FLOAT

ALL

Spare Columns
The ResUsageIpma table has nine spare columns (one of which is being used) as shown in the table below.
Column Name SpareCount[00-02] SpareTrack[00-02] SpareTmon00 Type of Data count track n/a Description Spare counted statistic. Spare tracked statistic. The SpareTmon00 field contains the COD value. The value represents the COD value in one tenths of a percent, so a displayed value of 500 represents a COD value of 50.0%. Note: This value is valid only on SUSE Linux Enterprise Server 10 systems and is a single value for the entire system. SpareTmon[01-02] count Spare time monitored statistic.

The spare column fields expand to values 00 - 02, so that column names would be SpareCount01, SpareCount02, SpareTrack01, and so on.

236

Resource Usage Macros and Tables

APPENDIX C

ResUsageIvpr Table

The ResUsageIvpr table includes resource usage data for system-wide, virtual processor information. This table is intended for internal use only. The following table describes the ResUsageIvpr table columns.
Invalid Platform

Column Name

Type of Data

Description HOUSEKEEPING COLUMNS

Data Type

RELATIONAL PRIMARY INDEX COLUMNS These columns taken together form the primary index. TheDate TheTime n/a n/a Date of the log entry. Nominal time of the log entry. Note: Under conditions of heavy system load, entries may be logged late (typically, by no more than one or two seconds), but this field will still contain the time value when the entry should have been logged. See the Secs and NominalSecs columns. NodeId n/a Identifies the Node upon which the vproc resides. The Node ID is formatted as CCC-MM, where CCC denotes the three-digit cabinet number and MM denotes the two-digit chassis number of the node. For example, a node in chassis 9 of cabinet 3 has a node ID of 003-09. Note: SMP nodes have a chassis and cabinet number of 1. For example, the node ID of an SMP node is 001-01. MISCELLANEOUS HOUSEKEEPING COLUMNS GmtTime n/a Greenwich Mean Time is not affected by the Daylight Savings Time adjustments that occur twice a year. Type of node, representing the per node system family type. For example, 5600C or 5555H. FLOAT INTEGER DATE FLOAT

NodeType

n/a

CHAR(8)

Resource Usage Macros and Tables

237

Appendix C: ResUsageIvpr Table

Column Name VprId

Type of Data n/a

Description Identifies the vproc number (non-Summary Mode) or the vproc type (Summary Mode; 0 = NODE, 1 = AMP, 2 = PE, 3=GTW, 4=RSG, 5=VSS). The VprId can be any of the following depending on the type: AMP vprocs: numbered upward from 0. PE vprocs: numbered downward from 16383. NODE vprocs: numbered upward from 16384. GTW vprocs: numbered upward from 8192. RSG vprocs: numbered downward from 9215. VSS vprocs: numbered downward from 10238. The vproc numbers within each type range are contiguous. Each existing vproc type range should not overlap into the range of another existing vproc type on the system.

Data Type INTEGER

Invalid Platform

VprType Secs

n/a n/a

The values can be NODE, AMP, PE, GTW, RSG, or TVS (see Teradata Virtual Storage). Actual number of seconds in the log period represented by this row. Normally the same as NominalSecs, but can be different in three cases: The first interval after a log rate change A sample logged late because of load on the system System clock adjustments affect reported Secs Useful for normalizing the count statistics contained in this row, for example, to a persecond measurement.

CHAR(4) SMALLINT

CentiSecs

n/a

Number of centiseconds in the logging period. This field is useful when performing data calculations with small elapsed times where the difference between centisecond-based data and whole seconds results in a percentage error. A specified or nominal number of seconds in the logging period. Identifies the summarization status of this row. Possible values are 'N' if the row is a nonsummary row, and 'S' if the row is a summary row.

INTEGER

NominalSecs SummaryFlag

n/a n/a

SMALLINT CHAR

238

Resource Usage Macros and Tables

Appendix C: ResUsageIvpr Table

Column Name NCPUs

Type of Data n/a

Description Number of CPUs on this node. This field is useful for normalizing the CPU utilization field values for the number of CPUs on the node. This is especially important in coexistence systems where the number of CPUs can vary across system nodes.

Data Type SMALLINT

Invalid Platform

Active

count

Controls whether or not the rows will be logged to the ResUsage tables if Active Row Filter Mode is enabled. If Active is set to: a non-zero value, then the row contains modified data fields. a zero value, then none of the data fields in the row have been updated during the logging period. For example, if Active Row Filter Mode is enabled, then the rows that have a zero Active field value will not be logged to the ResUsage tables.

FLOAT

CollectIntervals

n/a

The number of gather periods per reporting period. In the Collect Buffer and Log Buffer, the value is the number of Gather operations that have been performed during the period. This number can vary from one period to the next. STATISTICS COLUMNS PROCESS SCHEDULING COLUMNS

SMALLINT

Work Type Summary Columns Identify the distribution of work types among allocated processes. The total of the following average columns approximately equals total Process Allocations in ResUsageSpma table. Each entry below represents 16 columns, where [i] expands to the values 0-15, for example, ProcWorkType2Sum. ProcWorkType[i]Sum count Total number of processes of work type i during each log interval. Note: To calculate the average number of processes, divide this value by the CollectIntervals value. The CollectIntervals value is the number of gather periods per reporting period. For more information, see the CollectIntervals column. ProcWorkType[i]Max max Maximum number of processes of work type i during each log interval. FLOAT ALL FLOAT ALL

Resource Usage Macros and Tables

239

Appendix C: ResUsageIvpr Table

Column Name

Type of Data

Description NET COLUMNS

Data Type

Invalid Platform

Message Type Columns Subdivide all messages sent and received into the type of message, where: hash messages (Hash) are data sent to a destination through its primary or fallback hash value processor messages (Proc) are data sent to a destination through a vproc ID group messages (Group) are broadcasted messages to be received by members of a group local messages (Local) are messages communicated locally within the node channel messages (Chan) are data sent between vprocs through channel IDs for purposes of a private conversation to perform functions such as row redistribution, and so on. mailbox messages (Mbox) are data sent between vprocs through mailbox IDs for similar purposes as channel messages. A duplicated accounting is done with two different perspectives, since Hash + Proc + Group + Local messages = Chan + MBox messages. MsgHashReads MsgHashWrites MsgProcReads MsgProcWrites MsgGroupReads MsgGroupWrites MsgLocalReads MsgLocalWrites MsgChanReads MsgChanWrites MsgMboxReads MsgMboxWrites count count count count count count count count count count count count Number of hash messages read by this vproc. Number of hash messages written by this vproc. Number of processor messages read by this vproc. Number of processor messages written by this vproc. Number of group messages read by this vproc. Number of group messages written by this vproc. Number of local messages read by this vproc. Number of local messages written by this vproc. Number of channel messages read by this vproc. Number of channel messages written by this vproc. Number of mailbox messages read by this vproc. Number of mailbox messages written by this vproc. FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT

Message Delivery Times Columns Identify the time it took for hash, processor, group and local messages to reach their destination. Two times are provided: message transmission to mailbox delivery (MDelivery) and mailbox delivery to process delivery (PDelivery). MsgHashMDelivery count Total amount of time read hash messages took for mailbox delivery. FLOAT

240

Resource Usage Macros and Tables

Appendix C: ResUsageIvpr Table

Column Name MsgProcMDelivery MsgGroupMDelivery MsgLocalMDelivery MsgHashPDelivery MsgProcPDelivery MsgGroupPDelivery MsgLocalPDelivery

Type of Data count count count count count count count

Description Total amount of time read processor messages took for mailbox delivery. Total amount of time read group messages took for mailbox delivery. Total amount of time read local messages took for mailbox delivery. Total amount of time read hash messages took for process delivery. Total amount of time read processor messages took for process delivery. Total amount of time read group messages took for process delivery. Total amount of time read local messages took for process delivery.

Data Type FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT

Invalid Platform

GENERAL CONCURRENCY CONTROL COLUMNS Monitor Management Columns Identify monitor activities for Teradata Database concurrency control. MonAllocates MonEnters MonBlocks MonDeadlocks MonYields count count count count count Number of monitors allocated. Number of times entry into a monitor was requested. Number of times entry into a monitor was blocked. (requests - blocks = immediate grants.) Number of times entry into a monitor was deadlocked. Number of times a monitor yield was requested. FILE SYSTEM COLUMNS Cylinder Overhead Columns Further identify file system cylinder split/migrate (CylMigr) overhead performed when cylinders can not accommodate new data. (Event counts are found in ResUsageSvpr.) Only logical I/Os and the amount moved (KBs) for data blocks are identified. Each cylinder migration event implies 1 logical read and 3 logical writes of the cylinder index. Only permanent tables (including append and transient journal tables) are migrated. FileDbCylMigrIO FileDbCylMigrKB count count Number of data block logical I/Os due to cylinder migration. KBs moved by FileDbCylMigrIOs. FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT ALL

Resource Usage Macros and Tables

241

Appendix C: ResUsageIvpr Table

Column Name

Type of Data

Description

Data Type

Invalid Platform

Cylinder MiniCylPack Overhead Columns Identify file system overhead associated with MiniCylPacks (MCylPack) that get performed to make available a free cylinder when one is needed but not available. Event counts are found in ResUsageSvpr. Only logical I/Os and the amount moved (KBs) are identified, except the amount moved for cylinder indexes because they can be calculated by multiplying the current cylinder index fixed size and the I/Os. MiniCylPacks are done on cylinders containing permanent tables (including append and transient journal tables) only. FilePCiMCylPackIO count Number of permanent cylinder index logical I/Os due to performing MiniCylPack operations. Number of permanent data block logical I/Os due to performing MiniCylPack operations. KBs moved by FilePDbCylPackIOs. FLOAT

FilePDbMCylPackIO FilePDbMCylPackKB

count count

FLOAT FLOAT

Cylinder Defragmentation Overhead Columns Identify background file system overhead associated with fragmented free space to achieve one large free space within that cylinder (CylDefrag). Event counts are found in ResUsageSvpr. Each cylinder defragment event implies 1 logical cylinder index read and 1 logical cylinder index write. Only logical I/Os and the amount moved (KBs) are identified. Cylinder defragments are done on cylinders containing permanent tables (including append and transient journal tables) only. FileDbCylDefragIO FileDbCylDefragKB count count Number of permanent data block logical I/Os due to cylinder defragmentation. KBs moved by the FileDbCylDefragIO. FLOAT FLOAT

Data Block Update Operations Columns Identify the file system operations required when a data block is being updated (BlkUpd). When a block is updated, it can be in place and requires no new data blocks, or it could spill over the current data block and require 1, 2, 3 or more new data blocks in addition to the current data block. Only logical I/Os and the amount moved (KBs) are identified, except for the amount moved for cylinder indexes because they can be calculated by multiplying the current fixed cylinder index size by the I/Os. Data block updates should only be performed on permanent tables (including append and transient journal tables), so no attempt is made to separate permanent and spool data segments. FileCiUpd0IO count Number of cylinder index logical I/Os performed for a block update operation requiring no new data blocks. Number of data block logical I/Os performed for a block update operation requiring no new data blocks. KBs moved by FileDbUpd0IO. Number of cylinder index logical I/Os performed for a block update operation requiring 1 new data blocks. FLOAT

FileDbUpd0IO

count

FLOAT

FileDbUpd0KB FileCiUpd1IO

count count

FLOAT FLOAT

242

Resource Usage Macros and Tables

Appendix C: ResUsageIvpr Table

Column Name FileDbUpd1IO

Type of Data count

Description Number of data block logical I/Os performed for a block update operation requiring 1 new data blocks. KBs moved by FileDbUpd1IO. Number of cylinder index logical I/Os performed for a block update operation requiring 2 new data blocks. Number of data block logical I/Os performed for a block update operation requiring 2 new data blocks. KBs moved by FileDbUpd2IO. Number of cylinder index logical I/Os performed for a block update operation requiring 3 new data blocks. Number of data block logical I/Os performed for a block update operation requiring 3 new data blocks. KBs moved by FileDbUpd3IO. Number of cylinder index logical I/Os performed for a block update operation requiring over 3 new data blocks. Number of data block logical I/Os performed for a block update operation requiring over 3 new data blocks. KBs moved by FileDbUpdNIO.

Data Type FLOAT

Invalid Platform

FileDbUpd1KB FileCiUpd2IO

count count

FLOAT FLOAT

FileDbUpd2IO

count

FLOAT

FileDbUpd2KB FileCiUpd3IO

count count

FLOAT FLOAT

FileDbUpd3IO

count

FLOAT

FileDbUpd3KB FileCiUpdNIO

count count

FLOAT FLOAT

FileDbUpdNIO

count

FLOAT

FileDbUpdNKB

count

FLOAT

Data Block Creations Columns Identify the file system operations required when a data block is being created (BlkCreate). It does not include data blocks created due to any of the new data blocks created when a data block was updated as described in the Data Block Update Operations Columns description. FilePDbCreates count Number of permanent table (including append and transient journal tables) data blocks created. KBs created by FilePDbCreates. Number of spool data blocks created. KBs created by FileSDbCreates. FLOAT

FilePDbCreateKB FileSDbCreates FileSDbCreateKB

count count count

FLOAT FLOAT FLOAT

Transient Journal Overhead Columns Identify file system overhead associated with maintaining a transient journal (TJ). FileTJBufUpdates count Number of transient journal buffer updates. FLOAT

Resource Usage Macros and Tables

243

Appendix C: ResUsageIvpr Table

Column Name

Type of Data

Description

Data Type

Invalid Platform

File System Single-Row Requests Columns Identify the significant single-row requests made by application software on the file system. Rows are distinguished as permanent data (P), spool (S) or user append table / permanent journal table (APt). FilePRowReadInit FilePRowReadCont FilePRowReplace FilePRowInsert FilePRowDelete FilePRowAppend FileSRowReadInit FileSRowReadCont FileSRowReplace FileSRowInsert FileSRowDelete FileSRowAppend FileAPtRowReadInit FileAPtRowReadCont FileAPtRowReplace FileAPtRowInsert FileAPtRowDelete FileAPtRowAppend count count count count count count count count count count count count count count count count count count Number of requests for an initial permanent row read. Number of requests for a continued permanent row read. Number of requests for a permanent row replace. Number of requests for a permanent row insert. Number of requests for a permanent row delete. Number of requests for a row append. Number of requests for an initial spool row read. Number of requests for a continued spool row read. Number of requests for a spool row replace/ update. Number of requests for a spool row insert. Number of requests for a spool row delete. Number of requests for a row append. Number of requests for an initial append row read. Number of requests for an continued append row read. Number of requests for an append row replace/ update. Number of requests for an append row insert. Number of requests for an append row delete. Number of requests for an append row append. FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT

File System Multi-Row Requests Columns Identify the significant multi-row requests made by application software on the file system. Rows are distinguished as permanent data (P), spool (S) or user append table / permanent journal table (APt). FilePBlkRead count Number of requests for a permanent data block read. FLOAT

244

Resource Usage Macros and Tables

Appendix C: ResUsageIvpr Table

Column Name FilePBlkReplace FilePRowNDel FilePRownins FilePRowNUpd FilePSortable FilePTabdelete FilePTabdelra FilePTabmrows FilePTabrblocks FileSBlkRead FileSBlkReplace FileSRowNDel FileSRownins FileSRowNUpd FileSSortable FileSTabdelete FileSTabdelra FileSTabmrows FileSTabrblocks FileAPtBlkRead FileAPtBlkReplace

Type of Data count count count count count count count count count count count count count count count count count count count count count

Description Number of requests for a permanent data block replace. Number of requests for a permanent data multi-row delete. Number of requests for a permanent data multi-row insert. Number of requests for a permanent data multi-row update. Number of requests for permanent table sort. Number of requests for a permanent table delete. Number of requests for a multi-row delete. Number of requests for a permanent table modification. Number of requests for a permanent table multi-block read. Number of requests for a spool data block read. Number of requests for a spool data block replace. Number of requests for a spool data multi-row delete. Number of requests for a spool data multi-row insert. Number of requests for a spool data multi-row update. Number of requests for spool table sort. Number of requests for a spool table delete. Number of requests for a spool multi-row delete. Number of requests for a spool table modification. Number of requests for a spool table multiblock read. Number of requests for an append data block read. Number of requests for an append data block replace.

Data Type FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT

Invalid Platform

Resource Usage Macros and Tables

245

Appendix C: ResUsageIvpr Table

Column Name FileAPtRownins FileAPtRowNDel FileAPtRowNUpd FileAPtSortable FileAPtTabdelete FileAPtTabdelra FileAPtTabmrows FileAPtTabrblocks

Type of Data count count count count count count count count

Description Number of requests for an append data multirow insert. Number of requests for an append data multirow delete. Number of requests for an append data multirow update. Number of requests for an append table sort. Number of requests for an append table delete. Number of requests for an append multi-row delete. Number of requests for an append table modification. Number of requests for an append table multiblock read.

Data Type FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT

Invalid Platform

File System Transient Journal Requests Column Identifies the significant transient journal requests made by application software on the file system. FileTJCalls FileTJDbUpdates count count Number of transient journal calls. Number of WAL data blocks modified. The modification can either be an update or a delete of an existing WAL or TJ record. TRANSIENT JOURNAL MANAGEMENT COLUMNS Transient Journal Purge Overhead Columns Identify the background overhead associated with the occasional transient journal purge operation. TJPurges TJDbPurgeReads count count The number of purge passes in which a blockby-block scan is done. The number of blocks actually mapped in during the purge scan. This is a reasonable approximate measure of the I/O load. The system uses full-cylinder read mode, but the block count would still be roughly proportionate to the I/O load. FLOAT FLOAT FLOAT FLOAT

246

Resource Usage Macros and Tables

Appendix C: ResUsageIvpr Table

Column Name TJDbPurgeDeletes

Type of Data count

Description The number of blocks mapped in during the scan that were included in the ranges of blocks that were deleted. Before WAL, the ratio of deletes to reads would have been a useful measure of the effectiveness of the purge processing. However, with WAL, the ratio cannot be interpreted quite so simply because:
1 The range of deleted blocks could include

Data Type FLOAT

Invalid Platform

blocks that were not actually mapped in (and therefore not counted). Blocks that contain only WAL records are not mapped in during the scan, as they are automatically filtered out. Under typical conditions, there are probably relatively few such blocks. TJ and WAL records are typically generated in an interleaved sequence by regular SQL transactions. But during periods when the system workload is dominated by MultiLoad/FastLoad work, there will be relatively few TJ records written, so the proportion of WAL-only blocks would probably be significant. TJDbPurgeDeletes (continued) count
2 Post-WAL, neither TJDbPurgeReads nor

FLOAT

TJDbPurgeDeletes gets incremented during a normal purge pass. Instead of scanning the active data blocks, a pointer to the oldest active transaction is maintained which is a quicker method. Therefore, PurgeTJ() can simply compute the bounds of the range of records that can be deleted in the part of the WAL/TJ that precedes the start of the oldest transaction. This does not require any scanning and the system cannot definitely determine how many blocks actually get deleted. If the oldest transaction remains open for a long time, then the quick purge method is not effective. Therefore, the system reverts back to the full scan method. The TJDbPurgeReads and TJDbPurgeDeletes are only incremented during a full scan.

WRITE AHEAD LOGGING COLUMNS Identify the log-based file system recovery scheme in which modifications to permanent data are written to a log file, the WAL log.

Resource Usage Macros and Tables

247

Appendix C: ResUsageIvpr Table Summary Mode

Column Name FileWAppends

Type of Data count

Description Number of times a record was appended to the WAL log. A single append call can append multiple rows. Subtracting FileTJAppends from this counter results in the number of times nontransient journal rows were appended to the WAL log. Number of times transient journal records were appended to the WAL log. A single append call can append multiple transient journal rows. A transient journal append by itself does not imply a write of a WAL block, nor a WAL Cylinder Index (WCI) modification. Number of times a request to force transient journal records within the WAL log to be written to disk has been issued. An increment of this counter may or may not result in an I/O depending on whether the request was to flush records that were already on disk. Number of WAL data blocks created. The block can contain either TJ records, WAL records or both Number of times a request to force any record in the WAL log to be written to disk has been issued. An increment of this counter may or may not result in an I/O depending on whether the request was to flush records that were already on disk. Subtracting FileTJFlush from this counter results in the number of times a non-transient journal WAL flush was issued. Number of times rows were deleted from the WAL log. Number of requests for a WAL multi-row delete.

Data Type FLOAT

Invalid Platform

FileTJAppends

count

FLOAT

FileTJFlush

count

FLOAT

FileWDBCreates

count

FLOAT

FileWFlush

count

FLOAT

FileWRowDelete FileWTabDelRa

count count

FLOAT FLOAT

Summary Mode
When Summary Mode is active for the ResUsageIvpr table, one row is written to the database for each type of vproc on each node in the system, summarizing the vprocs of that type on that node, for each log interval. You can determine if a row is in Summary Mode by checking the SummaryFlag column for that row.

248

Resource Usage Macros and Tables

Appendix C: ResUsageIvpr Table Spare Columns

IF the SummaryFlag column value is S N

THEN the data for that row is being logged in Summary Mode. normally.

Spare Columns
The ResUsageIvpr table has 30 spare columns (one of which is being used) as shown in the table below.
Type of Data count track n/a

Column Name SpareCount[00-09] SpareTrack[00-09] SpareTmon00

Description Spare counted statistic. Spare tracked statistic. The SpareTmon00 field contains the COD value. The value represents the COD value in one tenths of a percent, so a displayed value of 500 represents a COD value of 50.0%. Note: This value is valid only on SUSE Linux Enterprise Server 10 systems and is a single value for the entire system.

SpareTmon[01-09]

count

Spare time monitored statistic.

The spare column fields expand to values 00 - 09, so that column names would be SpareCount01, SpareTrack02, SpareTmon07, and so on.

Resource Usage Macros and Tables

249

Appendix C: ResUsageIvpr Table Spare Columns

250

Resource Usage Macros and Tables

APPENDIX D

Partition Assignments

With regards to Teradata Database, there is more than one definition of partition. The partitions here refer to the following Parallel Database Extensions (PDE) and vproc definition: A partition is a collection of tasks and associated resources grouped within a virtual processor according to the function of the tasks. There are multiple partitions within a single virtual processor. Partitions are the primary mechanism used by Teradata Database for managing parallel programs. Partitions are the subdivision of vproc software processes into 32 semi-isolated domains.

For example, in an AMP vproc, Partition 11 is the AWT Partition. In all other vproc types, Partition 11 is unused. Another partition description is only meaningful in a dialog between client programs and Teradata Database. It has nothing to do with PDE vproc partitions, but is a way of enforcing rules about what a client session is allowed to do and of keeping client sessions isolated from each other. This concept of partitions is centered in the CLIv2 interface, specifically the CONNECT parcel. Partition reservation is as follows: Partitions 0 through 6 are reserved by PDE Partitions 7 through 47 are for use by Teradata Database

The table listed under Partition Assignment Listing on page 252 describes the individual partitions. Teradata Database uses the following vprocs:
Vproc Type AMP GTW Node Description Access module processors perform database functions, such as executing database queries. Each AMP owns a portion of the overall database storage. Gateway vprocs provide a socket interface to Teradata Database. The node vproc handles PDE and operating system functions not directly related to AMP and PE work. Node vprocs cannot be externally manipulated, and do not appear in the output of the Vproc Manager utility. Parsing engines perform session control, query parsing, security validation, query optimization, and query dispatch. Relay Services Gateway provides a socket interface for the replication agent, and for relaying dictionary changes to the Teradata Meta Data Services utility. Manages Teradata Database storage. AMPs acquire their portions of database storage through the TVS vproc.

PE RSG VSS

Resource Usage Macros and Tables

251

Partition usage is also discussed under CPU Utilization Columns on page 127 in the Chapter 13: ResUsageSvpr Table chapter.

252 Partition: No. 0 Resource Usage Macros and Tables 1 2 3-6 Name Kernel 7 Service

Table Conventions
The following table describes the table symbols used in the partition assignments table below.
The symbol used in the Partition Assignment Listing ?

Indicates partition is unused. activity has been observed but not identified.

Partition Assignment Listing


The following table lists the Node, AMP, and PE (Parsing Engine), GTW, and RSG, and VSS (allocator/node agent) usage of PDE vproc partitions by PDE and Teradata Database.
Usage in Vprocs of Type: Node PDE daemons AMP PE GTW RSG VSS

System Debugger Console Interactive 1 through 4

System Debugger tasks Console Supervisor Console interactive partition programs

Console utilities

Resource Usage Macros and Tables 253

Partition: No. 8 Name CnsProc

Usage in Vprocs of Type: Node AMP Host Utility console procedures File System processes AMP Worker Tasks Session Control tasks Dispatcher tasks Unused Startup tasks PE GTW RSG VSS

9 10 11 12 13 14 15 16 17 18 19 20 - 22 23 - 28 29 30

Filesys Gateway AWT Session Dispatch Unused Startup [unused] RSS Startup DDF Server [unused] [unused] [unused] [unknown] [unused]

gtw processes File system rss startup DDF services

MDS program rsgmain

254 Partition: No. 31 32 33 Name Allocator Node Agent Clique Coordinator Usage in Vprocs of Type: Node AMP PE GTW RSG VSS Allocator services Node Agents services Clique Coordinator services 34 - 47 [unused] Resource Usage Macros and Tables

Glossary

AG AMP

Allocation Group Access Module Processor

API Application Programming Interface AWT AMP Worker Task Banyan Network (high-speed connection) Database Window Data Definition Language File Segment Teradata Gateway

BYNET DBW DDL FSG GTW

I/O Input/Output LAN Local Area Network

MPP Massively Parallel Processing NUPI Nonunique Primary Index

PDE Parallel Database Extensions. PDE is a software interface layer between the operating system and the Teradata Database software. It provides Teradata Database the ability to run in a parallel environment, execute vprocs, and more. PE PG PMA Parsing Engine Performance Group Processor Module Assembly. This refers to a node.

PMPC APIs Performance Monitor and Production Control Application Programming Interfaces PP Performance Period Relational Database Management System

RDBMS

ResUsage Resource Usage. The subsystem that logs Resource Usage data from RSS to the ResUsage tables. RSG Relay Services Group

Resource Usage Macros and Tables

255

Glossary

RSS Resource Sampling Subsystem. The RSS provides a method to gather statistics from across the Teradata Database system, and provides the ability to access the statistics through an API. ResUsage uses the RSS data from the RSS API to log data to the selected ResUsage tables. SMP TCHN Symmetric Multi-Processing Teradata Channel Teradata Active System Management

Teradata ASM TPA VNET vproc

Trusted Parallel Application Virtual Network. Virtual BYNET for a single-node. Virtual Processor

WD Workload Definition WCI WAL Cylinder Index

256

Resource Usage Macros and Tables

Index

Symbols
?, meaning in macro outputs 176

A
AMP information macros 177, 182 table 125 view 152 Average values determining for gather period 42

B
ByGroup macros, description of 31

C
Clearing old resource usage data 36 Co-existing node macros. See ByGroup macros Collecting resource usage data 17 CollectIntervals using to determine average 42 CPU use by AMP macro output columns Awt User Exec% 182 Awt User Serv% 182 Misc User Exec% 182 Misc User Serv% 182 Total Busy% 182 Total User Exec% 182 Total User Serv% 182 CPU use by AMPs macros function 182 input format examples 182 normalized viewing 184 output column descriptions 182 ResAmpCpuByGroup 182 ResCPUByAMP 182 ResCPUByAMPOneNode 182 usage notes 182 CPU use by each node macros function 189 input format examples 189 output examples 189 ResCPUByGroup 189 ResCPUByNode 189 ResCPUOneNode 189

usage notes 189 CPU use by nodes macro output columns I/O Wait % 190 Total Busy % 190 Total User Exec % 190 Total User Serv % 190 CPU use by PEs macro output columns Disp User Exec% 186 Disp User Serv% 186 Misc User Exec% 186 Misc User Serv% 186 Pars User Exec% 186 Pars User Serv% 186 Ses User Exec% 186 Ses User Serv% 186 Total Busy% 187 Total User Exec% 187 Total User Serv% 187 CPU use by PEs macros function 186 input format examples 186 normalized viewing 188 output column descriptions 186 output examples 186 ResCPUByPE 186 ResCPUByPEOneNode 186 ResPeCpuByGroup 186 usage notes 186

D
Database commands SET LOGTABLE 28 SET RESOURCE 28 SET SUMLOGTABLE 28 Database Window Supervisor setting logging rates 28 Database Window. See DBW Deleting old resource usage data 36 DISABLE LOGONS effects on logging 36

E
Example executing ResAmpCpuByGroup macro 35 executing ResCPUByAmp macro 34 executing ResCPUByAmpOneNode macro 35

Resource Usage Macros and Tables

257

Index

ResAmpCpuByGroup macro report 183 ResAWT macro report 180 ResAWTByAMP macro report 180 ResAWTByNode macro report 181 ResCPUByAMP macro report 183 ResCPUByAMPOneNode macro report 183 ResCPUByGroup macro report 191 ResCPUByNode macro report 190 ResCPUByPE macro report 187 ResCPUByPEOneNode macro report 187 ResCPUOneNode macro report 190 ResHostByGroup macro report 195 ResHostByLink macro report 194 ResHostOneNode macro report 195 ResLdvByGroup macro report 198, 201 ResLdvByNode macro report 197, 200, 201 ResLdvOneNode macro report 197 ResMemByGroup macro report 204 ResMemMgmtByNode macro report 204 ResMemMgmtOneNode macro report 204 ResNetByGroup macro report 207 ResNetByNode macro report 206 ResNetOneNode macro report 206 ResNode macro report 211 ResNodeByGroup macro report 212 ResNodeByNode macro report 212 ResOneNode macro report 211 ResPeCpuByGroup macro report 187 ResPsByGroup macro report 216 ResPsByNode macro report 215 ResPsByNodeWDJoin macro report 216 ResVdskByGroup macro report 219 ResVdskByNode macro report 219 ResVdskOneNode macro report 219 EXECUTE MACRO, syntax elements 32

KBs/Blk Read 193 KBs/Blk Write 193 Max ReqQ Len 193 Msgs/Blk Read 193 Msgs/Blk Write 193 Host communications traffic information macros function 192 macros input format examples 192 macros usage notes 192 table 79 view 157 Host communications traffic macros output column descriptions 193 ResHostByGroup 192 ResHostByLink 192 ResHostOneNode 192

I
Invalid platform columns, description 41

L
Logging costs 23 optimizing 23 rates 21 resource usage data 17 which tables to enable 20 Logging rates definition 21 minimum 22 recommended values 22 using SET RESOURCE 28 Logical device information macros 196, 218 table 85 view 158

F
format. See Macro input

M
Macro input 29 Macro output format general format 175 ID 175 statistics 175 Macro statistics, datatypes 176 Macro syntax element for all nodes 33 for co-existing nodes 33 for multinodes 33 FromDate 33 FromNode 34 FromTime 33 Node 34

G
GmtTime 38

H
Host communication traffic macro output columns Avg ReqQ Len 193 Blk Read Fail % 193 Blk Write Fail % 193 Blks Read/Sec 193 Blks Write/Sec 193 Host Type 193 KBs Read/Sec 193 KBs Write/Sec 193

258

Resource Usage Macros and Tables

Index

ToDate 33 ToNode 34 ToTime 33 Macros logging rates for tables 176 usage notes 176 Macros, types of all-node 29 ByGroup 29 multiple-node 29 one-node 29 Memory management by node macros function 202 input format examples 202 output column descriptions 202 ResMemByGroup 202 ResMemMgmtByNode 202 ResMemMgmtOneNode 202 usage notes 202 Memory management macro output columns # Proc Swp 203 % Mem Free 202 Ages/Sec 203 Aloc Fail % 203 KB/Swp Drp 203 KB/Swp Rd 203 KB/VPR Aloc 203 P+S Drps/Sec 203 P+S I/O % 203 P+S Rds/Sec 203 P+S Wrts/Sec 203 Pg Drps/Sec 203 Pg Rds/Sec 203 Pg Wrts/Sec 203 Swp Drps/Sec 203 Swp Rds/Sec 203 Text Alocs/Sec 202 VPR Alocs/Sec 202 MULTISET table why resusage tables are created as 38

Node network traffic macros function 205 input format examples 205 output column descriptions 205 ResMemMgmtByNode 205 ResNetByGroup 205 ResNetOneNode 205 usage notes 205 Nonunique primary index 38 NUPI. See Nonunique primary index

O
Occasional event data 38 One-Node macros, description of 31 One-Node macros, description 31 Overall resource usage information. See Summary macros

P
Parameters, macros use of 32 Partition Assignments listing 252 reserved for 251 table convention 252 Partitions, definition 251 PE information macros 186 table 125 view 154 Priority Scheduler information macros function 213 macros input format examples 213 macros usage notes 213 Priority Scheduler macros ResPsByGroup 213 ResPsByNode 213 ResPsByNodeWDJoin 213 Purging old resource usage data 36

N
Node information macros 177, 189 view 148 Node network traffic macro output columns % Brd 206 % PtP 206 % Retries 205 KB/IO 206 Total IOs/Sec 206 Total Reads/Sec 205 Total Writes/Sec 206

Q
Question marks, meaning in macro outputs 176

R
Rates logging rate definition 21, 22 recommended values 22 rules for setting 22 Raw disk drive traffic macro output columns Avg I/O Resp 196, 199, 218 KB/ I/O 196, 199 Out Rqst Time % 197, 200

Resource Usage Macros and Tables

259

Index

Reads/Sec 196, 199 Writes/Sec 196, 199 Raw disk drive traffic macros function 196, 199 input format examples 196, 199 output column descriptions 196, 199 ResLdvByGroup 196 ResLdvByNode 196 ResLdvOneNode 196 usage notes 196, 199 Relational Primary Index 38 ResAmpCpuByGroup macro column descriptions 182 input format example 182 sample output 184 usage notes 182 what it reports 182 ResAWT macro column description 177 input format example 177 output column descriptions 178 sample output 180 usage notes 177 what it reports 177 ResAWTByAMP macro column description 177 input format example 177 output column descriptions 178 sample output 180 usage notes 177 what it reports 177 ResAWTByNode macro column description 177 input format example 177 output column descriptions 178 sample output 181 usage notes 177 what it reports 177 ResCPUByAMP macro column descriptions 182 input format example 182 sample output 183 usage notes 182 what it reports 182 ResCPUByAMPOneNode macro column descriptions 182 sample output 184 usage notes 182 what it reports 182 ResCPUByGroup macro column descriptions 189 sample output 191 usage notes 189 what it reports 189

ResCPUByNode macro column descriptions 189 input format example 189 sample output 190 usage notes 189 what it reports 189 ResCPUByPE macro column descriptions 186 input format example 186 sample output 187 usage notes 186 what it reports 186 ResCPUByPEOneNode macro column descriptions 186 sample output 188 usage notes 186 what it reports 186 ResCPUOneNode macro column descriptions 189 sample output 190 usage notes 189 what it reports 189 ResCPUUsageByAMPView, definition listing 152 ResCPUUsageByPEView, definition listing 154 ResGeneralInfoView, definition listing 148 ResHostByGroup macro column descriptions 193 sample output 195 usage notes 192 what it reports 192 ResHostByLink macro column descriptions 193 input format example 192 sample output 194 usage notes 192 what it reports 192 ResHostOneNode macro column descriptions 193 sample output 195 usage notes 192 what it reports 192 ResLdvByGroup macro column descriptions 196, 199 sample output 198, 201 usage notes 196, 199 what it reports 196, 199 ResLdvByNode macro column descriptions 196, 199 input format example 196, 199 sample output 197, 200, 201 usage notes 196, 199 what it reports 196, 199 ResLdvOneNode macro column descriptions 196, 199

260

Resource Usage Macros and Tables

Index

usage notes 196, 199 what it reports 196, 199 ResMemByGroup macro column description 202 sample output 204 usage notes 202 what it reports 202 ResMemMgmtByNode macro column description 202 input format example 202 sample output 204 usage notes 202 what it reports 202 ResMemMgmtOneNode macro column description 202 sample output 204 usage notes 202 what it reports 202 ResNetByGroup macro column description 205 sample output 207 usage notes 205 what it reports 205 ResNetByNode macro column description 205 input format example 205 sample output 206 usage notes 205 what it reports 205 ResNetOneNode macro column description 205 sample output 206 usage notes 205 what it reports 205 ResNode macro column description 208 input format example 208 sample output 211 usage notes 208 what it reports 208 ResNodeByGroup macro column description 208 sample output 212 usage notes 208 what it reports 208 ResNodeByNode macro column description 208 sample output 212 usage notes 208 ResOneNode macro column description 208 sample output 211 usage notes 208 what it reports 208

Resource usage data collecting 17 definition 15 deleting old data 36 functions of 15 logging 17 saving old data 32 Resource usage macros definition 18 example of executing a ByGroup macro 35 example of executing a Multinode macro 34 example of executing a One-Node macro 35 executing 32 syntax for 32 Resource Usage tables. See ResUsage tables Resource usage views ResCPUUsageByAMPView 152 ResCPUUsageByPEView 154 ResGeneralInfoView 148 ResShstGroupView 157 ResSldvGroupView 158 ResSvprView 166 ResPeCpuByGroup macro column descriptions 186 sample output 188 usage notes 186 what it reports 186 ResPsByGroup macro column description 213 sample output 216 usage notes 213 what it reports 213 ResPsByGroup macro column description 213 ResPsByNode macro column description 213 input format example 213 sample output 215 usage notes 213 what it reports 213 ResPsByNode macro column description 213 ResPsByNodeWDJoin macro sample output 216 ResSawtView, definition listing 155 ResShstGroupView, definition listing 157 ResSldvGroupView, definition listing 158 ResSpsView, definition listing 159 ResSvprView, definition listing 166 ResUsage tables columns ending in "Avg" 42 enabling Summary Mode 28 invalid platform columns 41 naming convention 37 primary index 38 reporting Summary Mode 42

Resource Usage Macros and Tables

261

Index

ResUsageIpma 20 ResUsageIvpr 20 ResUsageSawt 20 ResUsageShst 20 ResUsageSldv 20 ResUsageSpdsk 91 ResUsageSpma 20 ResUsageSps 20 ResUsageSvdsk 20 ResUsageSvpr 20 types of statistics reported 39 which to enable 20 ResUsageIpma column names 227 gathering method 227 ResUsageIvpr column names 237 gathering method 237 spare columns 249 Summary Mode 248 ResUsageSawt column names 73 Summary Mode 77 ResUsageScpu column names 45 spare columns 48 Summary Mode 48 ResUsageShst spare columns 84 Summary Mode 83 ResUsageSldv column names 79, 85 gathering method 85 spare columns 89 Summary Mode 88 ResUsageSpdsk column names 91 gathering method 91 spare columns 97 Summary Mode 97 ResUsageSpma column names 51 ResUsageSps column names 99 ResUsageSvdsk column names 119 gathering method 119 spare columns 78, 116, 124 Summary Mode 124 ResUsageSvpr column names 125 spare columns 143 Summary Mode 142 ResVdskByGroup macro

column descriptions 218 sample output 219 usage notes 218 what it reports 218 ResVdskByNode macro column descriptions 218 input format example 218 sample output 219 usage notes 218 what it reports 218 ResVdskOneNode macro column descriptions 218 sample output 219 usage notes 218 what it reports 218 RSS logging enabling from ctl and xctl 27 enabling from DBW 28 RSS table settings enabling from Database Window 28

S
Saving old resource usage data 32 SET LOGTABLE command 28 SET RESOURCE command 28 SET SUMLOGTABLE command 28 Single-Node. See One-Node Stopped logging how to re-enable logging 36 Summary macro output columns A+R % of IOs 210 CPU Bsy % 210 CPU Eff % 210 Fre Mem % 210 Ldv Eff % 210 Ldv IOs/Sec 210 Ldv KB/IO 210 Mem Age/Sc 210 Mem Aloc/Sec 210 Mem Fai % 210 ms/Blk 211 Net Rtry % 211 P+S % of IOs 210 Prc Blks/Sec 211 Read % of IOs 210 TMIt IOs/Sec 210 TPtP IOs/Sec 210 WIO % 210 Summary macros function 208, 213 input format examples 208, 213 output column descriptions 210 ResNode 208

262

Resource Usage Macros and Tables

Index

ResNodeByGroup 208 ResNodeByNode 208 ResOneNode 208 usage notes 208, 213 Summary Mode description 42 enabling a table 28 using 22 Syntax for deleting old resource usage data 36 executing macros 32 reporting dates in macros 33 Syntax, how to read 221 System information macros 177

T
Table naming conventions 37 Tables which to enable 19 Teradata ASM and Priority Scheduler macros 213, 216 Teradata Virtual Storage 41

V
Vdisk device traffic information macros 218 Vdisk drive traffic macro output columns Avg I/O Resp 218 Out Rqst Time % 219 Rd KB/ I/O 218 Read Cnt/ Sec 218 Write Cnt/ Sec 218 Wrt KB/ I/O 218 Vdisk drive traffic macros output column descriptions 218 ResVdskByNode 218 ResVdskOneNode 218 Vdisk logical drive traffic macros ResVdskByGroup 218 Views, resource usage data 147

Resource Usage Macros and Tables

263

Index

264

Resource Usage Macros and Tables

You might also like