Use the -O option of the onstat utility to display information about the Optical Subsystem memory cache and staging-area blobspace. You can interpret output from this option as follows. The totals shown in the display accumulate from session to session. The database server resets the totals to 0 only when you execute onstat -z.
IBM Informix Dynamic Server Version 9.40.UC1 --Online-- Up 00:45:18 -- 11656 Kbytes Optical StageBlob Cache System Cache Totals: System Blob Totals: Size Alloc. Avail. Number Kbytes Number Kbytes 500 500 0 1 20 3 1500 User Cache Totals: User Blob Totals: SID User Size Number Kbytes Number Kbytes 94 doug 250 1 20 1 300 95 beth 500 0 0 2 1200
The first section of the display provides the following information on system-cache totals:
Although the size output indicates the amount of memory that is specified in the configuration parameter OPCACHEMAX, the database server does not allocate memory to OPCACHEMAX until necessary. Therefore, the alloc output reflects only the number of 1-kilobyte allocations of the largest simple large object that has been processed. When the values in the alloc and avail output are equal to each other, the cache is empty.
The second section of the display describes the following user-cache totals information:
If you do not set the INFORMIXOPCACHE environment variable, the database server uses the size that you specify in the configuration parameter OPCACHEMAX.
The last line of the display lists the total number of sessions that are using the cache.