- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Memory comsuption analisis
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
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
06-09-2004 05:46 AM
06-09-2004 05:46 AM
Actually we are experience high memory consumption in our enviroments, it is composes by rp74XX server (8 GB Ram + 16 swap, swapmem_on=0), oracle 9i and internal apps.
With the out put of ps -el command i tried to analize the most memory consumption process (i attached the out put), i have assumed that the argument SZ is the total resident memory (physical memory) that is used by the process, however when add everything what the processes occupy (all SZ process) this don´t match with the physical memory installed in the machine.
How can i detect truly the physical memory that a process is using from command line ??
Than
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 06:04 AM
06-09-2004 06:04 AM
Re: Memory comsuption analisis
#!/bin/sh
# processmem - display memory claimed by a process
#
if [ $# -lt 1 -o \( $# -gt 1 -a $# -lt 4 \) ]
then
echo "Usage:"
echo "processmem \"process\""
echo "Example:"
echo "processmem rpc"
exit 1
fi
echo " "
PROCESS=$1
mps=0
#for sz in `ps -elf | grep $PROCESS | grep -v grep | awk '{print $10}'`
for sz in `UNIX95= ps -e -o vsz=Kbytes -o ruser -o pid,args=Command-Line | sort -rnk1 | grep -v Kbytes | grep $PROCESS | awk '{print $1}'`
do
mps=`expr $mps + $sz`
done
#echo `expr $mps \* 4096`
echo "\nMemory claimed by $PROCESS: $mps Kbytes.\n"
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 06:05 AM
06-09-2004 06:05 AM
Re: Memory comsuption analisis
You won't get the number from the ps output as buffer cache and the systems' dynamic pool is not added in there. A better command to use is
UNIX95= ps -e -o 'vsz pid args' |sort -n
I suggest you use 'glance' to figure it out. In the memory windows section, it is neatly laid out on how the memory is split like System Memory, User Memory, Buffer cache, Free memory etc.,
I would first check the buffer cache settings on your system. If you haven't changed it, then it may be set to 50% which is a overkill. Post the following.
#kmtune -l -q dbc_max_pct
#kmtune -l -q dbc_min_pct
#kmtune -l -q nbuf
#kmtune -l -q bufpages
If you find it at 50% (dbc_max_pct), then Is uggest you reduce it down to 5-8% to get around 400MB - 600 MB.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 08:14 AM
06-09-2004 08:14 AM
Re: Memory comsuption analisis
UNIX95= ps -eo vsz,pid,ruser,args | sort -rn
HP-UX uses memory (like most Unix versions) in many different ways. To get a good picture of memory usage, you'll need to purchase GlancePlus.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 08:43 AM
06-09-2004 08:43 AM
Re: Memory comsuption analisis
I suggest the use of glance, but in this case i get other problem cause the process list only give me a short view of the all process runing on the machine.. How can i get the complet process view from glance.
Arturo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 09:13 AM
06-09-2004 09:13 AM
Re: Memory comsuption analisis
What you got is correct. The "vsz" portion of the ps output using UNIX95 gives you the core image in KB.
However, you should not try to add up these numbers to get the total memory used as this number doesn't include shared memory and memory mapped areas. And there is buffer cache.
If you are really interested to know how the memory regions are mapped for a particular process, find out the 'pid' of the process (you can use UNIX95= command), open up glance and press "M". Enter the pid of the process and it will show the Memory regions for that process.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2004 05:00 AM
06-10-2004 05:00 AM
Re: Memory comsuption analisis
Do you have any recomendations in order to obtain a memory mapped of my systems at just time. this will help us to determine wich are the process that are consumming the memory.
If you have any ideas over it, let me know.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2004 05:05 AM
06-10-2004 05:05 AM
Re: Memory comsuption analisis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2004 05:09 AM
06-10-2004 05:09 AM
Re: Memory comsuption analisis
Try this doc from itrc,
http://www1.itrc.hp.com/service/cki/search.do?category=c0&mode=id&searchString=UPERFKBAN00000726&searchCrit=allwords&docType=Security&docType=Patch&docType=EngineerNotes&docType=BugReports&docType=Hardware&docType=ReferenceMaterials&docType=ThirdParty
The itrc doc id is UPERFKBAN00000726.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2004 05:31 AM
06-10-2004 05:31 AM
Re: Memory comsuption analisis
thanks... I can not access to this document.. the page can not find the document ID.. could you attach the file ?
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2004 06:21 AM
06-11-2004 06:21 AM
SolutionPersonally, anything less than 5% CPU or 5% I/O is not of any interest to me so I set the o screen options to: CPU=5, I/O=5, RSS=999999 and then sort by cpu or disk. Now I only see the interesting processes.
To see every process in a file, use the UNIX95 constructs mentioned above.
Bill Hassell, sysadmin