- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- which command to show memory staus
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
11-26-2007 08:30 PM
11-26-2007 08:30 PM
which command to show memory staus
which command I can run to show the physical memory and used memory realtime on hpux 11i
sar or top or other else ,no answer from these command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2007 08:45 PM
11-26-2007 08:45 PM
Re: which command to show memory staus
I use:
'swapinfo -tam'
'ps -el'
'vmstat -n'
Check the man-pages for details.
HTH
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2007 08:45 PM
11-26-2007 08:45 PM
Re: which command to show memory staus
you can use glance -m, if you have glance...
Thanks,
Anshu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2007 08:51 PM
11-26-2007 08:51 PM
Re: which command to show memory staus
for the physical memory it depends on the os you have. With a search here in itrc you'll find several commands.
Here's my script for HP-UX 11.11, see attachment.
HTH
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2007 09:12 PM
11-26-2007 09:12 PM
Re: which command to show memory staus
you can make use of sar for this purpose.
sar 2 5 (will give you the percentage of memory used of 5 slices once in 2 seconds).
When customers cry for performance problem. I immediately check this sar output and based on % mem free output, I check the average % mem used as 100 - (%mem free).
Thanks,
Srikanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2007 09:35 PM
11-26-2007 09:35 PM
Re: which command to show memory staus
I suppose top is a nice tool.
Well you may use
#swapinfo -amt
BR
Kapil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2007 02:58 AM
11-27-2007 02:58 AM
Re: which command to show memory staus
A bit easier to just write a basic C or perl program that uses pstat. pstat_getvminfo() returns a pst_vminfo structure, which contains psv.cfree as a field -- that's Free physical pages. pstat_getstatic() returns a pst_static which has physical_memory as the total pages.
I'd highly recommend using a programmatic interface for forward compatibility -- since on 11.31 and later, physical_memory is no longer constant at run time, after all.
swapinfo is about the worst thing I can think of to try to pull this information since the Memory line in that output is pseudo-swap, not physical memory. They aren't the same, and the counts will be completely different.
And one final mention -- used memory via any of these interfaces (save Glance if you read it carefully, I would think) can be misleading. Just because memory is in use doesn't mean the system can't free it up quickly (the file cache is what's coming to mind here -- if you're using dynamic buffer cache or dynamic file cache, it is supposed to hold onto pages for better caching until there's some actual memory pressure [or close to it]. Free memory running down to the pressure point isn't unexpected or bad in those cases -- and it doesn't mean a new User application can't get pages).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2007 03:21 AM
11-27-2007 03:21 AM
Re: which command to show memory staus
cc memdetail1.c
mv a.out /usr/local/bin/memdetail
Output like:
# memdetail
Memory Stat total used avail %used
physical 40958.0 28445.2 12512.8 69%
active virtual 30213.0 8304.0 21909.1 27%
active real 19827.2 6694.1 13133.0 34%
memory swap 40958.0 15385.0 25573.0 38%
device swap 83964.0 31218.8 52745.2 37%
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2007 05:19 PM
11-27-2007 05:19 PM
Re: which command to show memory staus
Simple way
SAM -> Performance Monitors -> system Properties -> Memory
(You can toggle to refresh the status)
WK