I'd like to be able to tell what processes are responsible for swap space
allocation. We use overcommit mode. I can see how to get ps to tell
me how many times processes have swapped, but I don't see anything
that will tell me how much individual processes are using.
I've added some kernel patches (below are some disorganized
clues as to which ones, any other disorganized sysadmins out there? :-),
and this is a 3.0 system that was updated to 3.2 (ie - 3.2 was not
installed from scratch). It seems like at least one of the kernel
patches dealt with a memory leak, but I suppose there could be more.
My real motivation is to be able to identify the main culprit(s)
whenever I notice (swapon -s) that most of the swap space is allocated...
Realizing that I don't know the details of the implementation, it would
seem that maybe someone has a kdbx script that will provide this
information, or one of those programs that lseeks around in /dev/kmen
poking through kernel data structures...
-Mike
[ list of .o files I either renamed because I was replacing them with
patched versions, or that got renamed in the update process... ]
-rw-r--r-- 1 bin bin 29512 Nov 9 1994 OLD_kern_exit.o
-rw-r--r-- 1 bin bin 14520 Aug 8 1994 OLD_latclose.o
-rw-r--r-- 1 bin bin 17696 Aug 8 1994 OLD_latopen.o
-rw-r--r-- 1 bin bin 18992 Aug 8 1994 OLD_str_filesys.o
-rw-r--r-- 1 bin bin 137912 Aug 8 1994 OLD_str_synch.o
-rw-r--r-- 1 bin bin 10904 Aug 8 1994 OLD_sxses.o
-rw-r--r-- 1 bin bin 10896 Aug 8 1994 ORIGINALlattioc.o
-rwxr-x--x 1 root bin 4920 Oct 6 15:17 cbrout.o
-rwx--x--x 1 root bin 29512 Dec 6 1994 kern_exit.o.PreUPD
-rwx--x--x 1 root bin 14768 Dec 6 1994 latclose.o.PreUPD
-rw------- 1 root bin 17664 Dec 13 1994 latopen.o.PreUPD
-rw-r--r-- 1 bin bin 10888 May 31 1995 lattioc.o
-rw-r--r-- 1 hubcap system 10928 Jan 8 1995 lattioc.o.PreUPD
-rw-r--r-- 1 bin bin 29608 Aug 8 1994 old_kern_exit
-rwx--x--x 1 root bin 19136 Dec 6 1994 str_filesys.o.PreUPD
-rwx--x--x 1 root bin 137952 Dec 6 1994 str_synch.o.PreUPD
-rwx--x--x 1 root bin 11208 Dec 6 1994 sxses.o.PreUPD
-rw-r--r-- 1 bin bin 4904 Feb 2 1995 old_cbrout.o_old
Received on Fri Feb 23 1996 - 16:49:46 NZDT