1N/AHere we run it on a system that is implementing memory caps using the
1N/Aresource capping daemon, "rcapd",
1N/A Tracing... Hit Ctrl-C to end.
1N/AThe "
memleak.pl" process consumes memory, and we can see above that it has
1N/Aencountered both reads and writes to the physical swap device - it is being
1N/Apaged out. A bash shell was also effected (which was in the same project that
1N/Arcapd was monitoring).
1N/AThe following is an ordinary system that is very low on memory,
1N/A Tracing... Hit Ctrl-C to end.
1N/A 18885 sendmail R 4096
1N/A 18600 automountd R 4096
1N/A 294 automountd R 135168
1N/A 187 rpcbind R 204800
1N/A 2 pageout W 23453696
1N/AThe "pageout" process is responsible for writing all the anonymous memory
1N/Apages to the physical swap device, and we can see from the above that it
1N/Ahas written 23 Mb. When processes access anonymous memory that has been
1N/Aswapped out, a major fault occurs and the memory is paged back in; in this
1N/Acase we can trace the process that was effected, and from the above we can
1N/Asee that several processes have been effected by the memory pressure.
1N/AThe most is "
svc.configd", which needed to page back in 1.4 Mb of anonymous
1N/ASometimes
anonpgpid.d doesn't help too much. Here we only have pageouts
1N/Ato the physical swap device and no pageins,
1N/A 2 pageout W 61083648
1N/AOnly pageout is identified.