728x90
Question
Your read cache rate (onstat -p) rises durning server use to ninety-nine percent. You suspect that you have overallocated buffers to the extent that you are wasting memory. How can you determine how much of your buffer cache memory is used?
Answer
Count the number of buffers in use at regular intervals and compare with the total allocated. You can use the following two methods to count the number of buffer pages in use at a given point in time:
- Execute the onstat -B command. The number of data lines in the output is the number of buffers in use. The onstat -B output includes all the configured buffer pools, grouped by page size. You will have to count the lines in the individual groups if you have more than one buffer pool.
- Open the sysmaster database and execute the following query:
SELECT COUNT(*) AS pages_used
FROM sysbufhdr
WHERE bufsize = <buffer_page_size>
AND bflags != 4;
The buffer_page_size is the page size (in bytes) for the buffer pool you are examining. The buffer page size is listed in the onstat -b/B output. If you only have one buffer pool, you can leave out the buffer page size filter and the query becomes:
SELECT COUNT(*) AS pages_used
FROM sysbufhdr
WHERE bflags != 4;
https://www.ibm.com/support/pages/how-do-i-know-if-my-buffers-are-overallocated
728x90
'Informix > informix reference' 카테고리의 다른 글
IT43456: KAIO NOT SUPPORTED WITH SECTOR_SIZES GREATER THAN 1KB (0) | 2024.07.25 |
---|---|
IT11530: LISTENER THREAD MAY NOT BE ABLE TO BIND TO PORT WHEN USING IPV6 ADDRESSES (0) | 2023.10.12 |
How to obtain the actual date and time in a stored procedure (0) | 2022.07.05 |
테이블을 특정 시점으로 복구하는 기능 (0) | 2022.06.27 |
DBeaver에서 인포믹스 한글 깨짐 해결 (0) | 2022.05.02 |