SMF 100-002C DB2 Statistics
    • 01 Mar 2024
    • 6 Minutes to read
    • Contributors
    • Dark
      Light

    SMF 100-002C DB2 Statistics

    • Dark
      Light

    Article summary

    Introduction

    DB2 statistics will be collected from SMF type 100. In this type of record, it doesn’t really matter the SMF subtype of the SMF record because DB2 uses another specification type to distinguish different SMF specializations.

    In DB2 there is an identification named IFCID (Instrumentation Facility Component Identifier) each one with different data and purpose.

    The statistics trace reports information about how much the Db2 system services and database services are used.

    You can use the information that the statistics trace provides to plan Db2 capacity or to tune the entire set of active Db2 programs.

    If you specify YES for the SMF STATISTICS entry in panel DSNTIPN, the statistics trace uses classes 1, 3, 4, 5, and 6 as the defaults. If the statistics trace is started using the START TRACE command, the statistics trace uses class 1 as the default.

    The following table describes the Db2 statistics trace classes.

    If you specify YES for the SMFSTAT subsystem parameter, the statistics trace starts automatically when you start Db2, and sends the default classes (classes 1, 3, 4, 5, and 6) statistics data to SMF. SMF records statistics data in both SMF type 100 and 102 records. IFCIDs 0001, 0002, 0202, 0225, 0230, and 0369 are of SMF type 100. All other IFCIDs in statistics trace classes are of SMF type 102.

    When you specify CLASS(7) or IFCID(365) in a START TRACE or MODIFY TRACE command, Db2 writes IFCID 0365 records. These records are written to the specified destination of the statistics trace for remote locations that communicate with the subsystem. Statistics are generated only for those locations that have activity since the record was generated. The location statistics are written each time that the STATIME interval elapses. Statistics can be written for as many as 95 remote locations.

    Db2 also writes statistics about all DRDA locations with the other default statistics trace data to a single SMF location named DRDA REMOTE LOCS, whenever other default statistics are written.

    Statistics trace classesThe following table shows the IFCIDs that are activated for each statistics trace class.Table 1. Classes for Db2 statistics traceClassDescription of classActivated IFCIDs1Information about system services, database statistics, statistics for the database services address space (ssnmDBM1), and information about the system parameters that were in effect when the trace was started. This default class is also activated when you omit the CLASS keyword from the START TRACE command when you start the statistics trace.0001, 0002, 0105, 0106, 0202, 02252Installation-defined statistics record01523Deadlock, lock escalation, group buffer pool, data set extension information, and indications of long-running uncommitted reads, and active log space shortages.0172, 0196, 0250, 0258, 0261, 0262, 0313, 0330, 03374Db2 exceptional conditions.0173, 0191-0195, 0203-0210, 0235, 0236, 0238, 0267, 02685Db2 data sharing statistics record.02306Storage statistics for the Db2 subsystem.02257DRDA location statistics.03658Data set I/O statistics.01999Aggregated CPU and wait time statistics by connection type.036910 - 29Reserved. 30 - 32Available for local use.

    Intervals for collecting Db2 statistics trace records
    Db2 collects statistics trace records for the following IFCIDs at the interval specified by the STATIME and SYNCVAL subsystem parameters. For more information, see STATISTICS TIME field (STATIME subsystem parameter) and

    STATISTICS SYNC field (SYNCVAL subsystem parameter)

    0105 (Db2 performance trace)
    0106 (system parameters)
    0199 (data set statistics)
    0365 (remote location statistics)
    0402 (monitor profile warnings or exceptions)
    Db2 collects statistics trace records for other IFCIDs at fixed one-minute intervals.

    CSV I002C for SMF 100 IFCID 002, including PROD section and Datasharing Buffer Manager stats.

    Fields

    Stored in dbsi002c

    SMF FieldDB Column nameTypeLengthDescription
    DBSHD_RTYrecord_typeValue is always I002C
    DBSHD_SIDsidSID
    DBSHD_DTTMwrite_datetimeDate/Time written into SMF buffer
    DBSHD_SSIDssidSubsystem ID
    DBSQWH_QWHSLOCNlocal_location_nameLocal location name
    DBSQWH_QWHSNIDluwid_network_idLUWID Network ID
    DBSQWH_QWHSLUNMluwid_lunameLUWID LUNAME
    DBSQWH_QWHSLUUVluwid_uniquenLUWID UNIQUEN
    DBSQWH_QWHSLUCCluwid_commitLUWID COMMIT
    DBSQWH_QWHSACEace_addressACE address
    DBSQWH_QWHCAIDauthorization_idAuthorization ID
    DBSQWH_QWHCCVcorrelation_idCorrelation ID
    DBSQWH_QWHCPLANplan_namePlan name
    DBSQWH_QWHCOPIDoriginal_operator_idOriginal operator ID
    DBSQWH_QWHCATYPconnection_typeConnection type
    DBSQWH_QWHCCNconnection_nameConnection name
    DBSQWH_QWHCEUIDenduser_idEnduser USER-ID
    DBSQWH_QWHCEUTXenduser_transactionEnduser transaction
    DBSQWH_QWHCEUWNenduser_workstationEnduser workstation
    DBSQWH_QWHCTCXTtrusted_contextTrusted context
    DBSQWH_QWHCROLErole_nameRole name
    DBSQWH_QWHCCTKNcorrelation_tokenCorrelation token
    DBSQWH_QWHDRQNMrequester_locationRequester location
    DBSQWH_QWHDSVNMserver_name_parameterSRVNAM parameter
    DBSQWH_QWHDPRIDproduct_id_parameterProduct ID parameter
    DBSQWH_QWHAMEMNdb2_member_nameDB2 member name
    DBSQWH_QWHADSGNdb2_group_nameDB2 group name
    DBSQWH_QWHUCPUcpu_time_ziip_and_cpCPU time ZIIP+CP
    DBSQWH_QWHUSEcpu_time_ziipCPU time ZIIP
    DBS002B_QBSTPIDbuffer_pool_idBuffer pool ID
    DBS002C_QBGLGGgetpages_gbp_dep_pagesGETPAGES FOR GBP DEP PAGES
    DBS002C_QBGLXDgbp_reads_under_user_xdNumber of GBP reads under the user task that were necessary due to buffer cross invalidation (XI) in which data was returned
    DBS002C_QBGLXRgbp_reads_under_user_xrNumber of GBP reads under the user task that were necessary due to buffer XI in which data was not returned from GBP
    DBS002C_QBGLMDgbp_reads_under_user_mdNumber of GBP reads under the user task that were necessary due to the requested page not being found in the buffer pool in which data was returned from GBP
    DBS002C_QBGLMRgbp_reads_under_user_mrNumber of GBP reads under the user task that were necessary due to the requested page not being found in the buffer pool in which data was not returned
    DBS002C_QBGLSWchanged_pages_writtenNumber of changed pages written under a user's execution unit (via WAR or WARM)
    DBS002C_QBGLWCclean_pages_written_wcNumber of clean pages written under a user's execution unit (via WAR or WARM)
    DBS002C_QBGLCTcastout_init_ctNumber of times castout was initiated due to the castout class threshold being detected
    DBS002C_QBGLGTcastout_init_gtNumber of times castout was initiated due to the group buffer pool castout threshold being detected
    DBS002C_QBGLWMwrite_and_register_wmNumber of Write and Register Multiple (WARM) requests. Multiple pages written request
    DBS002C_QBGLWSwrite_and_register_wsNumber of Write and Register Multiple (WARM) requests. One page written per request
    DBS002C_QBGLEXexplicit_cross_invalidateNumber of explicit cross invalidate
    DBS002C_QBGLAWchanged_pages_written_awNumber of changed pages written under a system execution unit (via WAR or WARM)
    DBS002C_QBGLRCpages_castoutNumber of pages castout from the Group Buffer Pool to DASD
    DBS002C_QBGLCMread_castout_multipleRead For Castout Multiple RFCOM requests. Multiple pages read per request
    DBS002C_QBGLCRread_castout_rfcoNumber of Read For Castout (RFCO) requests. One page read per request
    DBS002C_QBGLWPpages_written_warmNumber of pages written via WARM
    DBS002C_QBGLWFgbp_write_requestsNumber of GBP write requests that could not complete due to a lack of GBP storage resources
    DBS002C_QBGLOSixlcache_read_stgstatsNumber of IXLCACHE "read stgstats" requests
    DBS002C_QBGLACchanged_pages_written_acNumber of changed pages written under a system execution unit (via WAR or WARM)
    DBS002C_QBGLAXregister_page_list_rplNumber of of "register page list" (RPL) requests done by Prefetch
    DBS002C_QBGLAYpages_retrievedNumber of pages retrieved from the group buffer pool as a result of feedback from RPL
    DBS002C_QBGLCKgbp_checkpoints_triggeredNumber of GBP checkpoints triggered by this member
    DBS002C_QBGLUNixlcache_unlock_castoutNumber of IXLCACHE "unlock castout" requests
    DBS002C_QBGLCCixlcache_real_castout_classNumber of IXLCACHE "read castout class" requests
    DBS002C_QBGLCSixlcache_read_castout_stats_csNumber of IXLCACHE "read castout stats" requests
    DBS002C_QBGLDNixlcache_delete_name_dnNumber of IXLCACHE "delete name" requests
    DBS002C_QBGLRDixlcache_read_dirinfoNumber of IXLCACHE "read dirinfo" requests
    DBS002C_QBGLRGregister_page_requestsNumber of "register page" requests
    DBS002C_QBGLDGunregister_pageNumber of "unregister page" requests
    DBS002C_QBGL2Fwrites_changed_pagesNumber of writes of changed pages to the secondary GBP that failed due to a lack of storage
    DBS002C_QBGL2Scompletion_checks_for_writesNumber of completion checks for writes to the secondary GBP that were suspended because the write had not yet completed
    DBS002C_QBGL2Dixlcache_delete_name_listNumber of IXLCACHE "delete name list" requests to the secondary GBP
    DBS002C_QBGL2Rixlcache_read_castout_stats_2rNumber of IXLCACHE "read castout stats" requests to the secondary GBP
    DBS002C_QBGL2Nixlcache_delete_name_2nNumber of IXLCACHE "delete name" requests to the secondary GBP
    DBS002C_QBGLHSixlcache_invocations_hsNumber of IXLCACHE invocations for primary GBP
    DBS002C_QBGL2Hixlcache_invocations_2hNumber of IXLCACHE invocations for seconday GBP
    DBS002C_QBGLP1p_lock_requests_1Number of page P lock, lock requests for space map pages
    DBS002C_QBGLP2p_lock_requests_2Number of page P lock, lock requests for data pages
    DBS002C_QBGLP3p_lock_requests_3Number of page P lock, lock requests for index leaf pages
    DBS002C_QBGLU1p_unlock_requests_1Number of page P lock, unlock requests
    DBS002C_QBGLS1p_lock_suspensions_1Number of page P lock, lock suspensions for space map pages
    DBS002C_QBGLS2p_lock_suspensions_2Number of page P lock, lock suspensions for data pages
    DBS002C_QBGLS3p_lock_suspensions_3Number of page P lock, lock suspensions for index leaf pages
    DBS002C_QBGLN1p_lock_negotiation_1Number of page P lock, lock negotations for space map pages
    DBS002C_QBGLN2p_lock_negotiation_2Number of page P lock, lock negotations for data pages
    DBS002C_QBGLN3p_lock_negotiation_3Number of page P lock, lock negotations for index leaf pages
    DBS002C_QBGLWApage_write_aroundNumber of page in write around

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.