- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- memory utilization with SAR
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
08-17-2005 04:07 AM
08-17-2005 04:07 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2005 04:13 AM
08-17-2005 04:13 AM
Re: memory utilization with SAR
I don't believe so. I've never seen it.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2005 04:17 AM
08-17-2005 04:17 AM
SolutionGlance, Top, perfview/Measure Ware will do.
I do this daily:
/opt/perf/bin/extract -xp -r /home/gwild/zgbltemplate -g -b today 7:00 -e today 18:00 -f stdout | /bin/mailx -s 'Myserver performance report' gwild@mydomaiin.com
# cat /home/gwild/zgbltemplate
REPORT "MWA Export on !SYSTEM_ID"
FORMAT ASCII
HEADINGS ON
SEPARATOR="|"
SUMMARY=60
MISSING=0
DATA TYPE GLOBAL
YEAR
DATE
TIME
GBL_CPU_TOTAL_UTIL
GBL_MEM_UTIL
GBL_SWAP_SPACE_UTIL
GBL_MEM_CACHE_HIT_PCT
GBL_DISK_UTIL_PEAK
GBL_FS_SPACE_UTIL_PEAK
GBL_MEM_PAGEOUT_RATE
GBL_MEM_SWAPOUT_RATE
GBL_MEM_QUEUE
I also use a compile program called memdetail
# memdetail
Memory Stat total used avail %used
physical 10080.0 10039.4 40.6 100%
active virtual 13168.3 5106.1 8062.2 39%
active real 7732.3 2602.9 5129.4 34%
memory swap 7693.0 1650.4 6042.6 21%
device swap 26528.0 12504.2 14023.8 47%
I attached the c code.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2005 05:03 AM
08-17-2005 05:03 AM
Re: memory utilization with SAR
And here's a script:
# cat memused
#!/bin/sh
typeset -i free used total percent
free=`vmstat 1 2 | tail -1 | awk '{print ($5*4)/1024}'`
total=`echo 'phys_mem_pages/D'|adb /stand/vmunix /dev/kmem|grep pages | tail -1 | awk '{print $2*4/1024}'`
((used=$total-$free))
((percent=$used *100 / $total ))
print "used memory: $percent%"
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2005 05:26 AM
08-17-2005 05:26 AM
Re: memory utilization with SAR
vmstat should be used instead. It show free physical memory in terms of pages. Multiply that number by the system page size (usually it is 4096 bytes )to get free memory. Then run dmesg, it shows the page size as well alongwith other physical memory details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2005 05:34 AM
08-17-2005 05:34 AM
Re: memory utilization with SAR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2005 08:10 PM
08-17-2005 08:10 PM
Re: memory utilization with SAR
Notify that if you used vmstat you must exclude the first line from its output because it is not valid presentation.
Regards,
Borislav