1834391 Members
2433 Online
110066 Solutions
New Discussion

Filesystem buffer cache

 
SOLVED
Go to solution
Eric SAUBIGNAC
Honored Contributor

Filesystem buffer cache

Hi every body,

until HP-UX 11iv1 i was looking at filesystem buffer cache with the following command :

echo "bufpages/D" | /usr/bin/adb /stand/vmunix /dev/kmem

This way of getting the value doesn't work since HP-UX 11iv2.

Does anyone know the proper way to do it ?

Thanks in advance

Eric
6 REPLIES 6
A. Clay Stephenson
Acclaimed Contributor

Re: Filesystem buffer cache

Bufpages is no longer defined at 11iv2 and up and your method would only have meaning in 11iv1 in that case of a static buffer cache.

change your "bufpages" to "dbc_min_pct" and "dbc_max_pct" and you will have the values that the buffer cache fluctuates between.
If it ain't broke, I can fix that.
rajdev
Valued Contributor
Solution

Re: Filesystem buffer cache

Hi Eric,

I use 11.23 (PA) and it seems to work ...
# echo "bufpages/D" |adb /stand/vmunix /dev/kmem
bufpages:
bufpages: 69622

try this , use -o or -n ( compatibility or normal mode )

#echo "bufpages/D" | adb -o /stand/vmunix /dev/kmem

Regards,
RD
Eric SAUBIGNAC
Honored Contributor

Re: Filesystem buffer cache

Clay, that's because i use dbc_min_pct and dbc_max_pct as kernel parameters instead of bufpages that i would like to know at a glance how much memory is in used by FS buffer cache.

Rajdev, i test your syntaxe ... as soon as i get an HP-UX box

Geoff Wild
Honored Contributor

Re: Filesystem buffer cache

If you want usage, then use:

kcusage

kcusage |grep dbc_max_pct

In 11.31:

kcusage |grep filecache_max

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.
Eric SAUBIGNAC
Honored Contributor

Re: Filesystem buffer cache

Well, Rajdev, finally I got an HP-UX box more quickly than i thought. So, thanks, the "-o" option is the definitively answer.

Geoff, i didn't know i could have the current value of the data buffer cache with "kcusage dbc_max_pct". Thanks for the information ... but the returned value is just an integer percentage which is less accurate than bufpages.

Thanks every body

Eric
Eric SAUBIGNAC
Honored Contributor

Re: Filesystem buffer cache

EOF