Operating System - HP-UX
1833420 Members
2857 Online
110052 Solutions
New Discussion

how can i know the user that is using swap.

 
SOLVED
Go to solution
Carlos Muñoz_1
Occasional Contributor

how can i know the user that is using swap.

I have free memory in the system, but swap exists reserved, that process has it. thanks
7 REPLIES 7
Steve Steel
Honored Contributor

Re: how can i know the user that is using swap.

Hi

Memory Usage - â What is using all of the memory?â

by:eric.herberholz@hp.com

Last modified: October 18, 2004

Full document is available at external ftp site: ftp://eh:spear9@hprc.external.hp.com/memory.htm
The "Table of Contents" is available in ITRC doc id MEMORYKBAN00000975


ftp site Gives you all available info


Steve
If you want truly to understand something, try to change it. (Kurt Lewin)
Carlos Muñoz_1
Occasional Contributor

Re: how can i know the user that is using swap.

the problem is that I have swap used in column PCT of swapinfo.
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1048576 91212 957364 9% 0 - 1 /dev/vg00/lvol2
dev 7340032 91864 7248168 1% 0 - 1 /dev/vg00/lvol9

But there are no processes with flag 0, whenI execute ps - efl.
bhavin asokan
Honored Contributor

Re: how can i know the user that is using swap.

hi,

the concept/strategy of swap usage is that

when a process is first created ,HP-UX will first check to see if it is able to reserve swap space,which it can be used to page out the processes when necessary (when the phy.memeory crosses the threshold limit).if it is there then only a new processes will be created.
because of this one only the swap usage % is showing more.actually it will not use it unless physical memory is coming short.

you can see bu using vmstat 2 5

if it is showing more pageouts (po) then it means that physical memory is short and swapspace getting used.

to overcome this (swap)limit hp is using pseudo swap concept.

if you are having access to metalink.oracle then you will get a good document about virtual memory,paging & swap
doc id Note:17094.1

regds,
bhavin asokan
Honored Contributor

Re: how can i know the user that is using swap.

hi,

i forgot to tell you,when a process is created it reserves space in swap also evenif it is not used up to threshold limit.

you can see the doc id Note:68056.1 also in meta link.


regds,
john korterman
Honored Contributor
Solution

Re: how can i know the user that is using swap.

Hi Carlos,
I do not think that it is possible to figure out which process actually uses swap space. Hpux does not distinguish between physical memory, primary or secondary swap: it is all considered "virtual memory".
Besides, I would not consider 1 or even 9 percent use of swap space as a problem - to me it looks like no problem at all!
If you want to know the memory use of processes, try this command:
# UNIX95= ps -e -o vsz=Kbytes -o ruser -o pid,args=Command-Line | sort -rnk1 | more

regards,
John K.
it would be nice if you always got a second chance
Carlos Muñoz_1
Occasional Contributor

Re: how can i know the user that is using swap.

hi John.
My problem is that the percentage of use in the estadisticas like swap and the server this not becoming swap. there is some way to release it, the memory available is of 1GB.
john korterman
Honored Contributor

Re: how can i know the user that is using swap.

Hi again Carlos,
the swapinfo is not updated every other minute - I must admit that I do not know how often; other forumers probably know about that.
However, "swapinfo" shows that at a certain time your system had to use device swap, as all RAM at that time was in use.
This may be long ago, and if you are thinking of a way of resetting the device swap usage to zero, I think that is just not possbile.

regards,
John K.
it would be nice if you always got a second chance