- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Calculating free memory.
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
07-30-2001 12:00 PM
07-30-2001 12:00 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2001 12:22 PM
07-30-2001 12:22 PM
Re: Calculating free memory.
I think Glance would be your best bet, with perfview you can store data in files forever if you want, then graph historic data. You could also do this yourself with sar, you'll probably find more info on this in this very forum.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2001 12:25 PM
07-30-2001 12:25 PM
Re: Calculating free memory.
'vmstat' will report the active virtual pages and size of the free memory list. See the man pages for more details. You could periodically 'cron' command like:
# (date;vmstat -n 5 1) >> /tmp/myvmstats
This would take one snapshot everytime your cron task runs, appending it, with the current date to your log.
Obviously, I'd use 'awk' to dissect the output. This could (better) be done before piping the result into the log.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2001 01:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2001 06:36 AM
07-31-2001 06:36 AM
Re: Calculating free memory.
physical 192.0 183.0 9.0 95%
active virtual 63.4 20.5 42.9 32%
active real 19.3 10.2 9.1 53%
memory swap 135.0 122.6 12.4 91%
device swap 764.0 139.4 624.6 18%
I compiled the attach program and runs fine on my test/devel machine H50 192K memory. Now a silly question, I am a slow learner, I know what the 192 Physical memory is, but could you provide a brief laymen's terms with is the active/virtural and active/real memory with above numbers.
I want to thank the other submission. I have been using vmstat every 20 seconds for about 16 hours a day piping into one log for a week and then using awk to parse out and do a average and trying to find the peak. Just trying to find a easier and quicker way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2001 12:33 PM
07-31-2001 12:33 PM
Re: Calculating free memory.
http://www.docs.hp.com/hpux/onlinedocs/5965-4641/5965-4641.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2001 12:54 PM
07-31-2001 12:54 PM
Re: Calculating free memory.
If you have measureware agents running on your system, you can use extract command to capture required data (cpu/memory..) in text or xls format.
I use following command in script to extract global memory data for specified time period in 3 shifts for a day.
#extract -xp -G -b
Copy the /var/opt/perf/reptfile as rept.mem and unmask only memory related parameters. The format of output file (ASCII or WK1) is also specified in this file.
As long as measureware agents are running, you can use above command when ever you want to produce reports.
Thanks.
Prashant Deshpande.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2001 10:10 PM
08-01-2001 10:10 PM
Re: Calculating free memory.
I noted a small 'glitch' with that c program.
It should be noted that the device swap line also takes into account the 'reserved' quantity of device/filesystem swap (ie reserve line of swapinfo).
Example:
Memory Stat total used avail %used
device swap 1024.0 752.8 271.2 74%
Consists of:
swapinfo -atm
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 512 27 485 5% 0 - 1 /dev/vg00/lvol2
dev 512 27 485 5% 0 - 1 /dev/vg00/swap2
reserve - 699 -699
memory 360 93 267 26%
total 1384 846 538 61% - 0 -
699 + 27 + 27 = 753 (as above with memdetail)
Glenn Stewart