The onstat -b command provides a list of the buffers in the buffer pool that are currently being modified (i.e., in use) according to information contained in the buffer headers. The onstat -B command displays all allocated buffers in memory. The buffers displayed are those created by the BUFFERS parameter in the configuration file.
Buffers address userthread flgs pagenum memaddr nslots pgflgs xflgs owner waitlist Buffer pool page size: 2048 468 modified, 3000000 total, 4194304 hash buckets, 2048 buffer size Buffer pool page size: 16384 785b2970 0 20247 136:22400 1f2564000 3 8890 10 0 0 785b8ff0 0 20247 136:22336 1f27f4000 3 8890 10 0 0 785c8090 0 20247 136:22368 1f2df8000 3 8890 10 0 0 785cd810 0 20247 136:22408 1f3028000 3 8890 10 0 0 785cddb0 0 20247 136:22376 1f304c000 3 8890 10 0 0 .... Buffer pool page size: 2048 2968 modified, 3000000 total, 4194304 hash buckets, 2048 buffer size Buffer pool page size: 16384 20295 modified, 500000 total, 524288 hash buckets, 16384 buffer size
Heading | Description | Format | See Also |
---|---|---|---|
address | In-memory address of the buffer header. | Hex | onstat -g dmp |
userthread | The address of the userthread currently modifying this buffer header. This address corresponds to the address field given by the onstat -u command. | Hex | onstat -u |
flgs | Describes the current status of the buffer using a combination of the following hexadecimal values:
0x01 Modified Data 0x02 Data 0x04 LRU 0x08 Error 0x10 Resident 0x20 LRU AIO write in progress 0x40 Chunk write in progress 0x80 Buffer is/will be result of read-ahead 0x100 Cleaner assigned to LRU 0x200 Buffer should avoid bf_check calls 0x400 Do log flush before writing page 0x800 Buffer has been 'buff-checked' 0x8000 Buffer has been pinned 0x10000 Buffer modified by fuzzy operation 0x20000 Use aging of buffer on LRU 0x40000 Do not use buffer priorities9.40+ 0x01 Modified Data 0x02 Data 0x04 LRU 0x08 Error 0x10 Resident 0x20 LRU AIO write in progress 0x40 Chunk write in progress 0x80 Buffer is/will be result of read-ahead 0x100 Cleaner assigned to LRU 0x200 Buffer should avoid bf_check calls 0x400 Do log flush before writing page 0x800 Buffer has been 'buff-checked' 0x8000 Buffer has been pinned 0x10000 Buffer modified by fuzzy operation 0x00020000 The page was already in log. Used only during recovery 0x00040000 This page has all deleted items which have been committed. 0x00080000 Page is in temp dbspace |
Hex | |
pagenum | The physical page number from disk that currently resides in this buffer pool slot; 0xffffff if empty. | Hex | onstat -g dmp |
memaddr | The in-memory address of the buffer within the buffer pool. | Hex | onstat -g dmp |
nslots | The number of slot table entries (i.e., rows or row portions) on this page. | Dec | |
pgflgs | Describes the page type using the following hexadecimal values:
0x01 Data Page 0x02 Partition Page 0x04 Bitmap Page 0x08 Chunk Free List Page 0x09 Remainder Data Page 0x0b Partition Resident BLOB Page 0x0c BLOBSpace Resident BLOB Page 0x0d BLOB Chunk Free List Bitmap Page 0x0e BLOB Chunk BLOB Map Page 0x10 B+ Tree Node Page 0x20 B+ Tree Root Node Page 0x40 B+ Tree Branch (Twig) Node Page 0x80 B+ Tree Leaf Node Page 0x100 Logical Log Page 0x200 Last Page of Logical Log 0x400 Sync Page of Logical Log 0x800 Physical Log Page 0x1000 Root Reserved Page 0x2000 No Physical Logging Required 0x4000 No Physical Logging Required (load-time) 0x8000 B-Tree Leaf with deleted entries 0x20 Secondary partition header (w/0x02) 0x40 Alter description partition header (w/0x02) 0x80 Key descriptor partition page (w/0x02) 0x80 Generic page 0x4000 Do not allocate a row without checking |
Hex | |
xflgs | Describes the type of access currently being applied to the buffer using the following hexadecimal values:
0x10 Shared Lock 0x80 Exclusive Lock |
Hex | |
owner | The userthread that placed the xflgs values on the buffer page. | Hex | onstat -u |
waitlist | The first userthread (on a possible list of many) that is waiting for this particular buffer. | Hex | onstat -u onstat -X |
Summary Definitions
Label | Description | See Also |
modified | The number of buffers in the pool that have been modified since the last buffer flush (e.g., from a checkpoint) | onstat -R |
resident | The number of buffers containing a page that is marked as resident. | |
total | The number of buffers that were allocated according to the BUFFERS parameter in the configuration file. | onstat -R |
hash buckets | The number of hash buckets created to track the pages placed into the buffer pool. | onstat -h |
buffer size | The size of an individual buffer page. | onstat -R |
onstat -b | egrep "(addr|999999)" address userthread flgs pagenum memaddr nslots pgflgs xflgs owner waitlist xxxxxxx 0 407 123456 999999 14 2001 0 0 0 onmode -c onstat -b | egrep "(addr|999999) address userthread flgs pagenum memaddr nslots pgflgs xflgs owner waitlist xxxxxxx 0 6 123456 999999 14 2001 0 0 0
To discuss how Oninit ® can assist please call on +1-913-674-0360 or alternatively just send an email specifying your requirements.