SMF 100-002B DB2 Statistics
    • 29 Feb 2024
    • 6 Minutes to read
    • Contributors
    • Dark
      Light

    SMF 100-002B 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 I002B for SMF 100 IFCID 002, which includes PROD section and Buffer Manager Stats.

    Fields

    Stored in dbsi002b

    SMF FieldDB Column nameDescription
    DBSHD_RTYrecord_typeValue is always I002B
    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
    DBS002B_QBSTGETpage_requestsNumber of get page requests
    DBS002B_QBSTRIOsync_read_ioNumber of synchronize read I/O operations performed
    DBS002B_QBSTDWVvertical_times_deferred_writeNumber of times vertical deffered write
    DBS002B_QBSTXFLpage_failures_vpool_fullNumber of get page failures due to vpool full
    DBS002B_QBSTXFVexpansion_failure_shortageNumber of expansion failure due to shortage of virtual storage
    DBS002B_QBSTSWSsetw_issued_system_pagesNumber of setw issued for system pages
    DBS002B_QBSTPWSpages_writes_system_pagesNumber of page writes for system pages
    DBS002B_QBSTWIOasync_write_ioNumber of asynchronous write I/O operations performed
    DBS002B_QBSTCBAcurrent_active_buffersNumber of current active buffers
    DBS002B_QBSTRPIpagein_required_read_ioNumber of page-in required for read I/O
    DBS002B_QBSTWPIpagein_required_write_ioNumber of page-in required for write I/O
    DBS002B_QBSTDSOdatasets_opened_successfullyNumber of data sets opened successfully
    DBS002B_QBSTIMWimmed_write_ioNumber of immed (synchronous) write I/O
    DBS002B_QBSTSEQseq_prefetch_requestedNumber of seq prefetch requested
    DBS002B_QBSTSPPpage_read_seq_prefetchNumber of page read due to sequential prefetch
    DBS002B_QBSTSPDsec_prefetch_disabled_spdNumber of sequential prefetch disabled due to unavailable buffer resources
    DBS002B_QBSTREEsec_prefetch_disabled_reeNumber of sequential prefetch disabled due to unavailable read engine
    DBS002B_QBSTDWTdeferred_write8thresholdNumber of times that deferred write threshold is reached
    DBS002B_QBSTDMCdata_manager_bufferNumber of times that the data manager buffer critical threshold has been reached
    DBS002B_QBSTMIGmigrated_datasetsNumber of times that migrated data sets encountered
    DBS002B_QBSTRTOrecall_timeoutsNumber of recall timeouts
    DBS002B_QBSTPIOseq_prefetch_read_ioNumber of seq prefetch (asynchronous) read I/O
    DBS002B_QBSTWKPDwk_prefetch_abortedNumber of wk prefetch aborted due to a zero prefetch quantity
    DBS002B_QBSTMAXwk_file_not_createdNumber of wk file cannot be created due to insufficient buffer resources
    DBS002B_QBSTWFMmax_workfiles_allocatedMaximum workfiles ever been allocated
    DBS002B_QBSTWDRPpages_destructive_readNumber of pages for which destructive read was requested
    DBS002B_QBSTWBVQpages_dequeued_dataset_deferredNumber of pages dequeued from data set deferred write queue for destructive read request
    DBS002B_QBSTWFRrequests_query_workfilesNumber of requests to query for worfiles
    DBS002B_QBSTWFTsum_workfiles_requestedNumber of workfiles that have been requested
    DBS002B_QBSTWFDsum_workfiles_deniedNumber of workfiles that have been denied
    DBS002B_QBSTWFFsort_merge_failedNumber of times sort/merge could not be efficiently performed due to the buffer shortage
    DBS002B_QBSTLPFlist_prefetch_requestedNumber of list prefetch requested
    DBS002B_QBSTDPFdynamic_prefetch_requestedNumber of dynamic prefetch requested
    DBS002B_QBSTVPAsuccessful_vpool_exp_contrationNumber of successful vpool exp/contration
    DBS002B_QBSTPCOpg_unlock_castoutNumber of pg on 'unlock castout'
    DBS002B_QBSTCIOio_castoutNumber of I/O on castout
    DBS002B_QBSTVPLbuffers_allocated_virtual_poolNumber of buffers allocated for virtual pool
    DBS002B_QBSTDPPpage_read_dynamic_prefetchNumber of page read due to dynamic prefetch
    DBS002B_QBSTLPPpage_read_list_prefetchNumber of page read due to list prefetch
    DBS002B_QBSTDIOdynamic_prefetchNumber of dynamic prefetch (asynchronous)
    DBS002B_QBSTLIOlist_prefetch_read_ioNumber of list prefetch (asynchronous) read I/O
    DBS002B_QBSTSGTget_page_issued_sequential_requestNumber of get page issued by sequential request
    DBS002B_QBSTSIOsync_read_io_operations_performedNumber of synchronous read I/O operations performed
    DBS002B_QBSTNGTunsuccessful_getpageNumber of unsuccessful getpage due to conditional get page request
    DBS002B_QBSTXIShighest_prefetch_io_streamsHighest prefetch I/O streams have ever been allocated
    DBS002B_QBSTJISprefetch_io_streams_deniedNumber of prefetch I/O streams have been denied due to the shortage of bufferpool
    DBS002B_QBSTPQOtotal_negotiations_between_bm_and_rdsNumber of negotiations between BM and RDS
    DBS002B_QBSTPQFparallelismNumber of times parallelism has been downgraded due to the shortage of bufferpool
    DBS002B_QBSTPL1total_occurences_prefetch_quantity_1Number of occurrences when prefetch quantity decreased from normal to half normal
    DBS002B_QBSTPL2total_occurences_prefetch_quantity_2Number of occurrences when prefetch quantity decreased from half normal to one quarter of normal
    DBS002B_QBSTNSGconfitional_sequential_getpageNumber of conditional sequential getpage
    DBS002B_QBSTLPLpagesNumber of times one or more pages were
    DBS002B_QBSTSMINmin_buffers_slruMinimum number of buffers on SLRU, low water mark
    DBS002B_QBSTSMAXmax_buffers_slruMaximum number of buffers on SLRU, high water mark
    DBS002B_QBSTHSTlength_slru_eq_vpseqtNumber of times length of sequential LRU chain reached sequential steal threshold (VPSEQT)
    DBS002B_QBSTRHSrandom_getpage_buffer_hitNumber of times random getpage buffer hits

    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.