Link to home
Start Free TrialLog in
Avatar of ittechlab
ittechlabFlag for Canada

asked on

Redhat Linux - swap

I need to understand how swap works in Linux RHEL ?

how do you determine which process is taking more swap?
Avatar of Serio27
Serio27
Flag of United States of America image

Try running the "top" command that will show you which processes are using both physical and virtual memory.

It is basically the equivalent of task mgr for windows.

John C.
SOLUTION
Avatar of madunix
madunix

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ittechlab

ASKER

I did run top but it does not list which process is causing swap

I want to find out which process is taking much of swap space.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
top - 14:32:42 up 10 days,  2:00,  1 user,  load average: 0.00, 0.00, 0.00
Tasks: 130 total,   1 running, 129 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.2%us,  0.3%sy,  0.0%ni, 99.3%id,  0.2%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   1927744k total,   961612k used,   966132k free,   241008k buffers
Swap:  2097144k total,       96k used,  2097048k free,   321604k cached

what is the cached and where is coming from ? I am confued with the total, used, free and cached. number are not equal to the total.

what is the total size of the swap is configured? How do i see it.
2097144k total --> does it mean 2 GB?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Swap:  2097144k total = ?   96k used,  2097048k free,   321604k cached

Please advise. how cached works here?
Not sure what you are asking.  When there is a demand for memory and it can not be allocated because here is no remaining available RAM memory at which point the decision is made to swap a process that is not running out of RAM.

Are you looking at the more technical cache method used?
how cache is used here?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial