onstat -g seg command: Print shared memory segment statistics
Use the onstat -g seg command to show the statistics for shared memory segments.
This command shows how many segments are attached and their sizes. You can run the onstat -g seg command on a dump file that was created without the buffer pool.
Example output
Output description
- id
- The ID of the shared memory segment
- key
- The shared memory key that is associated with the shared memory segment ID
- addr
- The address of the shared memory segment
- size
- The size of the shared memory segment in bytes
- ovhd
- The size of the shared memory segment control information (overhead) in bytes
- class
- The class of the shared memory segment (B is for Buffferpool, R is for Resident, V is for Virtual, VX is for Virtual Extended, and M is for Message.)
- blkused
- The number of blocks of used memory
- blkfree
- The number of blocks of free memory
- Virtual segment low memory reserve (bytes)
- The size of reserved memory for use when critical activities are needed and the server has limited free memory, specified in bytes (You specify reserved memory in the LOW_MEMORY_RESERVE configuration parameter.)
- Low memory reserve used 0 times and used maximum block size 0 bytes)
- The number times that the server used the reserved memory and the maximum memory needed