Operating System - HP-UX
1751720 Members
4174 Online
108781 Solutions
New Discussion юеВ

Re: How to determine swap space utilization by process

 
SOLVED
Go to solution
S.Rider
Regular Advisor

How to determine swap space utilization by process

"swapinfo" shows the current overall utilization of swap space. Is there a way to break down swap utilization, to show which processes are the heavy hitters ?
Ride Boldly Ride, but watch out for El Dorado's
6 REPLIES 6
Steven E. Protter
Exalted Contributor
Solution

Re: How to determine swap space utilization by process

Shalom,

If you set UNIX95=1 there is a whole series of ps commands that can show you utilization of memory by process.

vmstat can give you more information.

glance/gpm a pay for add in from HP lets you drill into a process and see details of use. It is the best tool.

Every process reserves swap at start time in case it needs to be swapped to disk. That is never a problem. What becomes a problem is when a process is actually swapped to disk.

A process being a heavy hitter as far as reserving swap is meaningless. When overall your system starts to page (vmstat) then you have a problem.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Court Campbell
Honored Contributor

Re: How to determine swap space utilization by process

You would probably need to use glance. But I would suggest installing more ram. You may have a program or programs that are not necessarily doing much but just have large memory requirements.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Scot Bean
Honored Contributor

Re: How to determine swap space utilization by process

There are sophisticated tools, but see if 'top' does it for you. SIZE it virtual, RES is not.
Sundar_7
Honored Contributor

Re: How to determine swap space utilization by process

Jay,

Download the attached procsize, ftp to the system,unshar and run with -s and -p options

# procsize -s -p

Sundar.
Learn What to do ,How to do and more importantly When to do ?
Fernando Jose P de Souz
Regular Advisor

Re: How to determine swap space utilization by process

Hi,

# ipcs -m
Reshma Malusare
Trusted Contributor

Re: How to determine swap space utilization by process

Hi S.Rider,
There are many ways through which you will get information about memory.Following are some commonly preferred ways:
1]glance --> by using glance command you can check for the memory.
2]swapinfo -->swapinfo prints information about device and file system paging space
By default, swapinfo prints to standard output a two line header as shown here, followed by one line per paging area:
o/p-->
Kb Kb Kb PCT
TYPE AVAIL USED FREE USED


START/ Kb
LIMIT RESERVE PRI NAME

3] top --> display and update information about the top processes on the system

4]ps ├в -> report process status
http://docs.hp.com/en/B2355-60130/ps.1.html

Regards,
Reshma