As all know in Linux machines we have RAM memory and swap memory.
My first question is:
What the reason that the swap memory is increasing – because high level of RAM usage or something else?
Second - is it possible to verify how much memory a process holds?
Example from top command:
Is it possible to calculate how much memory the watchdog process takes ( as described on the top view ) ?
Tasks: 107 total, 1 running, 106 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.8%us, 0.5%sy, 0.0%ni, 98.0%id, 0.5%wa, 0.0%hi, 0.1%si, 0.0%st
Mem: 2075440k total, 2011396k used, 64044k free, 120452k buffers
Swap: 4192924k total, 1554096k used, 2638828k free, 1418852k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1 root 15 0 2160 600 544 S 0.0 0.0 1:00.91 init
2 root RT -5 0 0 0 S 0.0 0.0 0:04.50 migration/0
3 root 34 19 0 0 0 S 0.0 0.0 0:00.16 ksoftirqd/0
4 root RT -5 0 0 0 S 0.0 0.0 0:00.01 watchdog/0