1846661 Members
4521 Online
110256 Solutions
New Discussion

Re: buffer cache

 
I.Delic
Super Advisor

buffer cache

Hi,

Who can i check the size of buffer cashe on unix 11.11i
Every answer about this subject is welcom

Thank you
8 REPLIES 8
Jean-Luc Oudart
Honored Contributor

Re: buffer cache

If you have Glance installed on the system,
use "m" for memory report.


Rgds,
Jean-Luc
fiat lux
I.Delic
Super Advisor

Re: buffer cache

Hi,
I don't have glance

Idriz
Trond Haugen
Honored Contributor

Re: buffer cache

If you don't have Glance you can see how manny 4k pages is in use by running rhis command:
echo bufpages/D | adb -k /stand/vmunix /dev/kmem

Regards,
Trond
Regards,
Trond Haugen
LinkedIn
Jean-Luc Oudart
Honored Contributor

Re: buffer cache

# kmtune | grep -i dbc_max_pct
dbc_max_pct 15
# kmtune | grep -i bufpages
bufpages 78643
#

If bufpages is non-zero you will have a fix buffer size (given in 4Kb pages) otherwise check your dbc_mac_pct it will give you tha maximum % of your real memory dedicated to buffer cache.
Default is far too high and should be tuned.

Rgds,
Jean-Luc
fiat lux
Laurent Menase
Honored Contributor

Re: buffer cache

adb /stand/vmunix /dev/kmem <dbc_max_pct/D
dbc_min_pct/D
bufpages/D
dbc_ceiling/D
dbc_bufpages/D

Jean-Luc Oudart
Honored Contributor

Re: buffer cache

Check this previous thread about tuning your buffer cache

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=115045

Rgds,
Jean-Luc
fiat lux
Lee Huei
Regular Advisor

Re: buffer cache

size of buffer cache on hpux 11i:

check on physical memory size from dmesg
eg:
Physical: 131072 Kbytes -> 128Mbytes

check kernel parameter to see if you are using static buffer or dynamic buffer cache.
*note* dynamic buffer cahche is desirable.

if nbuf=0 then you are using dynamic buffer cache
eg:
bufpages ( NBUF*2)
nbuf 0

check the dynamic buffer cahche value
(a)dbc_min_pct
(b)dbc_max_pct
eg:
dbc_min_pct 5
dbc_max_pct 15

then, the buffer cache allocated is:
minimum of 6.4 Mbytes
maximum of 19.2Mbytes

It is recommended to always keep buffer cache size lower than 300mbytes.

Geoff Wild
Honored Contributor

Re: buffer cache

Run this command:

/usr/contrib/Q4/bin/kmeminfo


Looks like:

kmeminfo (3.11)
libp4 (5.17): Opening /stand/vmunix /dev/kmem

Loading symbols from /stand/vmunix

======================================================================
Date: Mon Nov 17 14:49:06 2003

Processing pfdat table (2505108 entries)...

----------------------------------------------------------------------
Physical memory usage summary (in pages):

Physmem = 2580480 Available physical memory:
Freemem = 704683 Free physical memory
Used = 1875797 Used physical memory:
System = 333474 by kernel:
Static = 75372 for text and static data
Dynamic = 0 for dynamic data
Bufcache = 258048 for file-system buffer cache
Eqmem = 54 for equiv. mapped page pool
SCmem = 0 for system critical page pool
User = 1052279 by user processes
Uarea = 8096 for thread uareas
Disowned = 63983 disowned pages

----------------------------------------------------------------------
Dynamic memory usage summary (in pages):

Dynamic = 0 Kernel dynamic data (sysmap):
MALLOC = 0 memory buckets:
bucket[ 5] = 0 size 32 bytes
bucket[ 6] = 0 size 64 bytes
bucket[ 7] = 0 size 128 bytes
bucket[ 8] = 0 size 256 bytes
bucket[ 9] = 0 size 512 bytes
bucket[10] = 0 size 1024 bytes
bucket[11] = 0 size 2048 bytes
bucket[12] = 0 size 4096 bytes
bucket[13] = 0 size 2 pages
bucket[14] = 0 size 3 pages
bucket[15] = 0 size 4 pages
bucket[16] = 0 size 5 pages
bucket[17] = 0 size 6 pages
bucket[18] = 0 size 7 pages
bucket[19] = 0 size 8 pages
bucket[20] = 0 size > 8 pages
Kalloc = 0 kalloc()
Eqalloc = 0 eqalloc()
Reserved = 0 Reserved pools


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.