- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- memory usage report
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
07-08-2003 08:33 AM
07-08-2003 08:33 AM
Is there any command other than vmstat?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2003 08:36 AM
07-08-2003 08:36 AM
Re: memory usage report
'glance' is probably your best tool. If you don't have a licensed version (and you should!), install a trail version from the Application CDROM set.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2003 08:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2003 11:20 AM
07-08-2003 11:20 AM
Re: memory usage report
You can use glance, it free for 60 days.
Also top show the info.
Caesar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2003 09:13 PM
07-08-2003 09:13 PM
Re: memory usage report
Refer to the following.
compile and run it.
#include
#include
#include
main()
{
struct pst_static pst1;
struct pst_dynamic pst2;
if (pstat_getstatic(&pst1, sizeof(pst1), (size_t)1, 0) != -1)
printf( "Physical Memory is %ld MB\n", pst1.physical_memory * 4 / 1024 );
else
perror("pstat_getstatic");
if (pstat_getdynamic(&pst2, sizeof(pst2), (size_t)1, 0) != -1)
{
printf( "used Memory is %ld MB\n", (pst1.physical_memory - pst2.psd_free) * 4 / 1024 );
printf( "free Memory is %ld MB\n", pst2.psd_free * 4 / 1024 );
}
else
perror("pstat_getdynamic");
printf( "\n" );
printf( "physical Memory is %ld MB\n", pst1.physical_memory * 4 / 1024 );
printf( "used Memory is %ld MB\n", (pst1.physical_memory - pst2.psd_free) * 4 / 1024 );
printf( "memory usage is %3.1f %%\n", (float)((pst1.physical_memory - pst2.psd_free) * 100) / (float)pst1.physical_memory );
}