- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Trace memory occupation rate, not utilization ...
Operating System - HP-UX
1758669
Members
2845
Online
108874
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО12-10-2003 11:50 AM
тАО12-10-2003 11:50 AM
Hi all,
I'd like to trace the rate of system's memory occupation (not memory utilization estimated by glance or top utility) for a certain period, to get a sense that we need to buy additional physical memory or expand swap spaces.
How can I get the rate information, that is, ( currently occupied(actually used) memory size / total available memory size).
I think memory utilization of glance or top is a bit different from what I want to trace.
My machine : HP L2000, HP-UX 11.0, 4GB RAM
Any comment will be highly appreciated.
Regards,
KD
I'd like to trace the rate of system's memory occupation (not memory utilization estimated by glance or top utility) for a certain period, to get a sense that we need to buy additional physical memory or expand swap spaces.
How can I get the rate information, that is, ( currently occupied(actually used) memory size / total available memory size).
I think memory utilization of glance or top is a bit different from what I want to trace.
My machine : HP L2000, HP-UX 11.0, 4GB RAM
Any comment will be highly appreciated.
Regards,
KD
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2003 01:42 PM
тАО12-10-2003 01:42 PM
Re: Trace memory occupation rate, not utilization rate
How about take a look at the total memory claimed by the system:
#!/bin/ksh
t=0
for i in `UNIX95= ps -e -o vsz=Kbytes -o ruser -o pid,args=Command-Line | sort -rnk1 | grep -v Kbytes | awk '{print $1}'`
do
t=`expr $t + $i`
done
echo "\n In total Memory claimed by the system is $t Kbytes.\n"
#!/bin/ksh
t=0
for i in `UNIX95= ps -e -o vsz=Kbytes -o ruser -o pid,args=Command-Line | sort -rnk1 | grep -v Kbytes | awk '{print $1}'`
do
t=`expr $t + $i`
done
echo "\n In total Memory claimed by the system is $t Kbytes.\n"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2003 01:57 PM
тАО12-10-2003 01:57 PM
Solution
You can simplify your task: just look at vmstat and the po (page out) column. If it is zero to about 10-20, you have plenty of memory. If po=50+ then more memory is a good idea. If it is 150+ for long periods, you desparately need to double the amount of AM you have.
Memory usasge is very complex. The kernel; uses some memory (perhaps 1-2 dozen megs), the buffer cache may use up to 50% of your RAM (wrong setting in the kernel), processes occupy memory, and most complicated, shared memory in the form of shared memory segments, memory mapped files, shared libraries and shared executables. It is very difficult to add all of this since it changes every few seconds.
However, once the system starts heavy paging (swapping), RAM is too small. If you are running Oracle or Sybase, there are numerous considerations about the configuration of these tools. Oracle can be configured to use several thousand megs of RAM (way more than 4Gb) so a lot depends on how the DBA uses memory and what performance levels are desired.
Bill Hassell, sysadmin
Memory usasge is very complex. The kernel; uses some memory (perhaps 1-2 dozen megs), the buffer cache may use up to 50% of your RAM (wrong setting in the kernel), processes occupy memory, and most complicated, shared memory in the form of shared memory segments, memory mapped files, shared libraries and shared executables. It is very difficult to add all of this since it changes every few seconds.
However, once the system starts heavy paging (swapping), RAM is too small. If you are running Oracle or Sybase, there are numerous considerations about the configuration of these tools. Oracle can be configured to use several thousand megs of RAM (way more than 4Gb) so a lot depends on how the DBA uses memory and what performance levels are desired.
Bill Hassell, sysadmin
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP