- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to get the current size of the system buffer c...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2011 07:17 AM
тАО02-14-2011 07:17 AM
I have found a structure called "minfo" in the sysinfo.h (/usr/include/sys/sysinfo.h). It has a member called cache, which has the number of pages currently in cache. Though I cannot seem to find any documentation on a function I can call to populate the structure.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2011 07:36 AM
тАО02-14-2011 07:36 AM
Re: How to get the current size of the system buffer cache?
glance -m
will show this information
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2011 07:40 AM
тАО02-14-2011 07:40 AM
Re: How to get the current size of the system buffer cache?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2011 07:42 AM
тАО02-14-2011 07:42 AM
Re: How to get the current size of the system buffer cache?
These are Kernel tuneable values, then you can check these values with the comand "kctune", please review carefully command options:
#man kctune
Also recomend you review this HP-UX Performance Cookbook at the Kernel Tunables section:
http://h21007.www2.hp.com/portal/download/files/unprot/devresource/docs/techpapers/uxperfcookbook.pdf
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2011 08:57 AM
тАО02-14-2011 08:57 AM
Re: How to get the current size of the system buffer cache?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2011 10:25 AM
тАО02-14-2011 10:25 AM
Re: How to get the current size of the system buffer cache?
suppose u have HP getsysinfo scripts .. run the script and send it me log file ...
regards
rajamani...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2011 12:22 PM
тАО02-14-2011 12:22 PM
Re: How to get the current size of the system buffer cache?
I have a memstat.c program that also use the same header and struct.
Generally though -- if your UX system has been up for a godd number of hours, your system buffer cache will always equate to dbc_max_pct or nbuf.
Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2011 12:25 PM
тАО02-14-2011 12:25 PM
Re: How to get the current size of the system buffer cache?
You say you have a C program that uses that struct? What function do you call to populate it? That seems to be the piece I am missing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-15-2011 01:54 PM
тАО02-15-2011 01:54 PM
Solution>kcusage filecache_max
Tunable Usage / Setting
=============================================
filecache_max 60939350016 / 65330475008
This shows how much filecache i am using.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2011 11:14 AM
тАО02-16-2011 11:14 AM
Re: How to get the current size of the system buffer cache?
struct pst_vminfo.psv_filecache_size
In /usr/include/sys/pstat/vm_pstat_body.h
This value matches that provided by kcusage -filesystem_max and appears to be exactly what I need. Thanks to all who weighed in.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2011 11:15 AM
тАО02-16-2011 11:15 AM