[Durham] Swap fills up then out of memory errors
Richard Mortimer
richm at oldelvet.org.uk
Sat Feb 18 22:53:22 UTC 2012
On 18/02/2012 18:00, Dougie Nisbet wrote:
> On 17/02/2012 23:17, Richard Mortimer wrote:
> I've been experimenting trying to get top to work in batch (-b) mode
> with the view to running it with a long interval and trying to determine
> the rate of increase of swap usage. Not worked it out though. 'htop' is
> interesting but confusing. Running it in tree view shows about 15-20
> processes called x-www-browser, but none of the pids match real
> processes so I'm not sure what's going on there.
I suspect it is showing you the individual threads. Linux differs from
many Unix implementations by assigning each thread to a PID. ps and
similar normally only show you the main (lead) pid thread but you can
add the -L option to ps to show threads too. without -L I only see pid
5132 but with -L I get the threads too
richm at royalcounty:~$ ps -efL | grep bacula-dir
richm 4946 25312 4946 0 1 22:48 pts/0 00:00:00 grep bacula-dir
bacula 5132 1 5132 0 5 Feb01 ? 00:00:02
/usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.conf -u bacula -g bacula
bacula 5132 1 5242 0 5 Feb01 ? 00:00:00
/usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.conf -u bacula -g bacula
bacula 5132 1 5243 0 5 Feb01 ? 00:00:02
/usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.conf -u bacula -g bacula
bacula 5132 1 8947 0 5 21:05 ? 00:00:00
/usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.conf -u bacula -g bacula
bacula 5132 1 9398 1 5 21:05 ? 00:01:14
/usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.conf -u bacula -g bacula
BTW The 'H' key on htop seems to toggle showing individual threads.
Richard
More information about the Durham
mailing list