Operating System - HP-UX
1832648 Members
3009 Online
110043 Solutions
New Discussion

Re: Process utilizing More SWAP

 
Ganesh Balraman
Regular Advisor

Process utilizing More SWAP

Hi ,

If my swap space is 100% utilized , how do i find out which process is consuming more swap space .What parameters needs to be monitored for swap deadlock using glance.

Thanks in advance
4 REPLIES 4
Dennis Handly
Acclaimed Contributor

Re: Process utilizing More SWAP

>how do I find out which process is consuming more swap space

Look at the SIZE value for top(1).

>What parameters needs to be monitored for swap deadlock using glance.

This isn't deadlock, just running out.
You can look at "swapinfo -tam".
Rahul Choudhari
New Member

Re: Process utilizing More SWAP

Hi Ganesh,

Please check with top command it will show you which process is consuming more space.

Regards,
Rahul
Bill Hassell
Honored Contributor

Re: Process utilizing More SWAP

Actually, top will NOT show the biggest processes unless they are consuming a lot of CPU time. Use this command line to sort the processes by memory usage:

UNIX95=1 ps -e -o vsz,pid,args | sort -rn | head -20

The biggest processes are at the top of the list. NOTE: you may have processes that have allocated shared memory -- this area is not counted for any process since it is, well, shared. Use this command to look for a large amount of shared memory:

ipcs -bmp

Glance tells you all you need top know. The memory bar will be at 100% and the memory screen (type m to see the numbers) will show page out. If this number is 2 digits or more, than you need more RAM for the processes you are running. If you're running a database, the DBA may have asked for a massive amount of RAM without consulting the HP-UX system administrators.


Bill Hassell, sysadmin
muruganantham raju
Valued Contributor

Re: Process utilizing More SWAP

Hi Ganesh,

Find out which of the processes in your system is consuming more of the memory (physical and virtual memory) and analyze the reason.

You can use the attached glance advisor script to find out the process that is consuming highest virtual and physical memory.

Download the script to /tmp and execute

/opt/perf/bin/glance -aos /tmp/myadviser.txt

You might arrive at one of the following:

(1) Your system memory could be too small for the applications hosted on the system. Find out the recommended memory mandated for the applications running in your system and upgrade the memory.
(2) Your swap memory could be too small. Use swapinfo command to find out the swap memory configuration. It is recommended to configure swap of size at least 50% of physical memory. Preferrable is twice of physical memory.
(3) The processes running in your system might be over loaded unreasonably.
(4) The application process might simply be leaking the memory in which case the system physical memory utilization will also be very high. You can check with the application vendor about the behavior.


HTH
Muru