- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- script to monitor swap memory, physical memory and...
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
тАО06-15-2006 04:13 AM
тАО06-15-2006 04:13 AM
I am trying to write a script which will monitor
the swap memory, physical memory and cpu usage of the server.
As for cpu usage, i will be using sar 3 3 and grep for the %idle.
But i am a little confuse in checking the swap memory and physical memory, as I realise that vmstat and glance is not giving the same output on the same server. beside this, which field should i be looking at.
Can any one kindly elaborate?
Solved! Go to Solution.
- Tags:
- swapinfo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2006 04:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2006 04:58 AM
тАО06-15-2006 04:58 AM
Re: script to monitor swap memory, physical memory and cpu usage
============================
output of swapinfo -tam
check for PCT used under memory for physical memory used
check for PCT used under dev for swap memory used
=============================
But as for the below output, what shall i look for?
00:45:46 text-sz ov proc-sz ov inod-sz ov file-sz ov
00:45:51 N/A N/A 75/1708 0 1552/4000 0 293/4058 0
=============================
Lastly, which is more accurate? glance or swapinfo? they seem to show different values when I run them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2006 05:35 AM
тАО06-15-2006 05:35 AM
Re: script to monitor swap memory, physical memory and cpu usage
swapinfo vs. glance
http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=1005735
http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=947347
For more information about memory management, check out the Memory Management Whitepaper in
/usr/share/doc/mem_mgt.txt
Regards,
Sung
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2006 07:08 AM
тАО06-15-2006 07:08 AM
Re: script to monitor swap memory, physical memory and cpu usage
First of all, you don't need to run all tests. If you run
#> remon -h
you see all parameters.
I run the script with -l parameter and, depending on the computer, I use different parameters, but almost always I look for swap.
I don't understand top output in the part of memory usage, so I prefer to look on swapinfo output.
Output of
00:45:46 text-sz ov proc-sz ov inod-sz ov file-sz ov
00:45:51 N/A N/A 75/1708 0 1552/4000 0 293/4058 0
says me whether kernel is built correctly and does not limit users with number of files etc.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2006 09:39 PM
тАО06-17-2006 09:39 PM
Re: script to monitor swap memory, physical memory and cpu usage
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2006 10:13 PM
тАО06-17-2006 10:13 PM
Re: script to monitor swap memory, physical memory and cpu usage
Check the following aswell:
ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/cronscripts/swapspace.ksh
Darrel