- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to calculate user memory, system memory an...
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
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
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
12-27-2000 03:45 PM
12-27-2000 03:45 PM
How to calculate user memory, system memory and buffer cache values?
Thanks in advance for any assistance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2000 05:48 AM
12-29-2000 05:48 AM
Re: How to calculate user memory, system memory and buffer cache values?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2000 11:28 AM
12-29-2000 11:28 AM
Re: How to calculate user memory, system memory and buffer cache values?
/* Get actual memory size in bytes */
#include
#include
main()
{
struct pst_static buf;
pstat_getstatic(&buf,sizeof(struct pst_static),1,0);
printf("%u\n",buf.physical_memory*buf.page_size);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2001 04:02 PM
01-01-2001 04:02 PM
Re: How to calculate user memory, system memory and buffer cache values?
2. I have been able to determine the real physical memory in my 'C' program already (refer to original attachment). I just don't know which 'C' structures to use and/or calculations I need to perform to determine user memory, system memory and buffer cache values.
Any other ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2001 06:58 AM
01-02-2001 06:58 AM
Re: How to calculate user memory, system memory and buffer cache values?
Pls try using "sar"...it has a wide variety of outputs....
Seconly "top" will also give you much information.
the typical uses are as below...
/bin/top -s 1
/bin/sar -k 2 2
I am searching more..as I know this might just not be suffice....;-))
Suhas.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2001 10:31 PM
01-02-2001 10:31 PM
Re: How to calculate user memory, system memory and buffer cache values?
Use adb to extract real-time kernel information (eg. real-time user memory, system memory and buffer-cache usage) ie. # adb -k /stand/vmunix /dev/mem.
Hope this helps. Regards.
Steven Sim
Brainbench MVP for Unix Admin
http://www.brainbench.com