ittechlab
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?
how do you determine which process is taking more swap?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
I want to find out which process is taking much of swap space.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Swap: 2097144k total = ? 96k used, 2097048k free, 321604k cached
Please advise. how cached works here?
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?
Are you looking at the more technical cache method used?
ASKER
how cache is used here?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
It is basically the equivalent of task mgr for windows.
John C.