- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Memory Utilization on various HP UX flavors
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
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
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
тАО05-20-2011 03:40 AM
тАО05-20-2011 03:40 AM
Memory Utilization on various HP UX flavors
My environment has a mix of UX 11.11,11.23 and 11.31 servers. I am trying to monitor the real Memory Utilization in them using swapinfo. Would like to know how close is swapinfo in finding real memory usage. Tried lot of other commands too that I've listed below.
1.Tried combination of vmstat free column and echo "selclass qualifier memory;info;wait;infolog" | cstm . But cstm package is not available in all boxes.
2.RAM size found from syslogs along with vmstat free column. Bad, my syslogs got rotated soon and I couldn't rely on that too.
3.Tried
T=`perl -e 'local($PSTAT,$PSTAT_STATIC,$mem_info,$PSTAT_STRUCT)=(239,2,"\0"x120,"LI4L");syscall($PSTAT,$PSTAT_STATIC,$mem_info,length($mem_info),1,0);
print int((unpack($PSTAT_STRUCT,$mem_info))[4]*((unpack($PSTAT_STRUCT,$mem_info))[5])/(1024*1024))."\n";'`;F=`vmstat 1 3|awk -v c=0 '{for (i=0;i<=NF;i++) if ($i=="free") c=i;} {print $c}'|tail -1`;echo "scale=3; ((($T-($F*4/1024))/$T)*100)"|bc
But this command wont work on Itanium based versions ie over HP UX 11.20 :(
For versions over 11.20 had to rely on machinfo and vmstat which goes like this
T=`machinfo|awk '/Memory/'|awk -v c=0 '{for (i=0;i
Swapinfo wont report even total memory available and used. It reports things in swap memory perspective. But swapinfo seems to be the only command that comes close to my purpose which is one command to find how my boxes' memory is doing.
Help please.
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2011 03:02 AM
тАО05-22-2011 03:02 AM
Re: Memory Utilization on various HP UX flavors
Right, swapinfo report pseudo-swap usage and the definition of that changes on different HP-UX versions.
Any reason you need this accurate info?
Note with the buffer or file cache, you can get all of real memory used pretty easily.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2011 02:09 AM
тАО05-23-2011 02:09 AM
Re: Memory Utilization on various HP UX flavors
The commands listed in 3rd point of my post are good enough IMO but I am looking for a command that could be a panacea for Memory calculations across all UX flavors ;)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2011 04:50 AM
тАО05-23-2011 04:50 AM
Re: Memory Utilization on various HP UX flavors
I was trying to say that the kernel will use free memory, between the bounds of the min and max of the buffer/file cache kernel parms.
Do you care about that memory usage?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2011 06:16 AM
тАО05-23-2011 06:16 AM
Re: Memory Utilization on various HP UX flavors
for example:
/usr/contrib/Q4/bin/kmeminfo | grep "Used.*="|cut -d= -f2|awk '{print $1*4/1024 " Mb"}'