1826230 Members
4574 Online
109692 Solutions
New Discussion

memory

 
SOLVED
Go to solution
Pieter_5
Advisor

memory

Hi,

The commando swapinfo states that 84% of my memory is in use. How can I find out which processes use this memory?
7 REPLIES 7
Mark Grant
Honored Contributor

Re: memory

They all do!

A process that starts in hpux reserves swap that it might not ever have a requirement for. However, if you have swapping, i.e. pages of RAM are being swapped to disk, you have a problem and need to increase the amount of RAM you have
Never preceed any demonstration with anything more predictive than "watch this"
Helen French
Honored Contributor
Solution

Re: memory

If you have GlancePlus installed, use that tool, it will give you the information you need:

# glance
# gpm
Life is a promise, fulfill it!
Stefan Farrelly
Honored Contributor

Re: memory

swapinfo is not the correct command to see how much of your memory is in use.

The command you want is /usr/bin/vmstat

Look for the memory free column, and multiply this number by 4096 to get free memory in bytes.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Zeev Schultz
Honored Contributor

Re: memory

please post (text file):
vmstat 5 5
grep -i physical /var/adm/syslog/syslog.log
swapinfo -tam


Zeev
So computers don't think yet. At least not chess computers. - Seymour Cray
Pieter_5
Advisor

Re: memory

Hi,

This is the output of swapinfo


Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 2097152 0 1843200 0% 0 - 1 /dev/vg00/lvol2
reserve - 169024 -169024
memory 816868 321636 495232 87%


Notice that no swap is used, while memory has run to 87% while running a frecover-job
Sundar_7
Honored Contributor

Re: memory

Hi,

Dont ever go by the swapinfo memory output. This is called pseudo swap and is set dynamically at boot. This is approximately 75% of the physical memory u have. Pseudo memory will be enabled if the kernel param swapmem_on is set to 1. If u want to find out the amout of free memory left in the system

# echo "freemem/D" | adb -k /stand/vmunix /dev/kmem

The output is in pages. Multiply by 4 to get the free memory in KB.

Pls refer the following thread. I have attached an utility to find out the memory used by the processes.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xdb59c4f04693ef438e83589fb72f1cfd,00.html
Learn What to do ,How to do and more importantly When to do ?
Zeev Schultz
Honored Contributor

Re: memory

bottom line - don't check swapinfo memory
line as it's not 'really' about memory.Its a
pseudo swap intended for servers with big memory sizes not to get to a strange state when
your server has a lot of ram but can't for example allocate swapping/paging areas for new
processes (and can't start 'em).

use free memory list output from vmstat (multiply the number by 4,as its in pages,each memory page is 4k).Your 'real' free swapping/paging area is "dev FREE" minus "reserve" "USED".

I think Glance shows the most friendly statistics for both those unfamiliar with hp-ux memory management and those that are.
So computers don't think yet. At least not chess computers. - Seymour Cray