- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Mem and Swap info in HP-UX
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
02-05-2003 10:51 AM
02-05-2003 10:51 AM
Mem and Swap info in HP-UX
Any help would be greatly appreciated.
thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 10:54 AM
02-05-2003 10:54 AM
Re: Mem and Swap info in HP-UX
You can get swap information using the command
swapinfo -mt
Use vmstat to get the memory stats. Multiply the freelist (free column) with 4k and you will get free memory.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 10:59 AM
02-05-2003 10:59 AM
Re: Mem and Swap info in HP-UX
Preformance Monitors
System Properties
Memory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 12:37 PM
02-05-2003 12:37 PM
Re: Mem and Swap info in HP-UX
Sridhar, Why do the number have to be multiple with 4?? Is this the only way we can get this info??? I guess that answered my question that no -r for sar in HP-UX...
Paul, I want to script this, so it has to be on command line....thanks though...
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 12:45 PM
02-05-2003 12:45 PM
Re: Mem and Swap info in HP-UX
The number you get in vmstat under free is in pages. Each page is 4k. So for you to get the free memory in KB, you will need to multiply with 4k.
If you have Measureware installed, you can get historical information on both swap and memory as well as numerous other performance related stats. It's worth considering.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 01:31 PM
02-05-2003 01:31 PM
Re: Mem and Swap info in HP-UX
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 01:54 PM
02-05-2003 01:54 PM
Re: Mem and Swap info in HP-UX
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xa56442308663d611abdb0090277a778c,00.html
If you have Glance or Measureware, you can try the adviser syntax as posted at the link above. For swap space utilization, one of the metrics you can use is:
GBL_SWAP_SPACE_UTIL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 02:21 PM
02-05-2003 02:21 PM
Re: Mem and Swap info in HP-UX
You know how to get the free pages using vmstat
Use the following command to find the memory on the system.
echo 'phys_mem_pages/D'| adb -k /stand/vmunix /dev/kmem
Multiply above with 4k to get total memory in kb.
If you take the difference between the above two, you will get used memory.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 02:26 PM
02-05-2003 02:26 PM
Re: Mem and Swap info in HP-UX
You can use cstm or syslog.log to get the total memory. But they are not very consistent if you want to script them.
So get the free memory using vmstat statement and total memory using the adb command as I mentioned. Both are in pages so multiply them with 4k.
If you have Measureware installed, you dont' need to worry about scripting. They have these metrics readily available and you can get the information anytime you want.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 02:29 PM
02-05-2003 02:29 PM
Re: Mem and Swap info in HP-UX
When I added the numbers with many senarios, the total kept changing. This tells me somehow these numbers are not representing everything unless I do my calculation wrong.
I did the followings with many times for each senario.
Real + Active real (inside parentheses) + free
and
Real + Virtual + free
and
Real + Active real + Virtual + Active virtual + free
and
etc...
thinking if any of these is the total, then the number should stay fixed, but it did not....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 05:50 PM
02-05-2003 05:50 PM
Re: Mem and Swap info in HP-UX
Bill Hassell, sysadmin