kernel leaking memory somewhere

elekktretterr at exemail.com.au elekktretterr at exemail.com.au
Mon Dec 14 18:11:13 PST 2009


Im running i386/master and even during minimal usage i get over 1GB of
active memory.

top:

Memory: 1081M Active, 1368M Inact, 378M Wired, 35M Cache, 143M Buf, 644M Free
Swap: 4096M Total, 77M Used, 4019M Free, 1% Inuse


ps -aux

root      6576  1.5  0.0  3984  972   1  SLM  10:08AM   0:00.29 _su (csh)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM   0:10.64 
(tcp_thread 1)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM   0:00.01 
(udp_thread 1)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM   0:00.00 
(taskq_cpu 1)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM   0:00.00  (ifnet 1)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM   0:00.00 
(netisr_cpu 1)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM   0:00.09  (usched 1)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:00.00  (dsched 1)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:00.44 
(softclock 1)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM 818:55.34  (idle_1)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:00.00  (vnlru)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:52.53  (syncer)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:00.00 
(bufdaemon_hw)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:00.00  (bufdaemon)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:00.00  (vmdaemon)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:08.24  (pagedaemon)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:06.86  (hammer-S3)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:06.82  (hammer-S2)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:06.82  (hammer-S1)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:06.72  (hammer-S0)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:09.15  (hammer-M)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:00.02 
(rtable_cpu 0)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM   0:01.59 
(tcp_thread 0)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM   0:00.35 
(udp_thread 0)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:01.23  (random)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM   0:00.00  (ithread 12)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM   0:00.00  (ithread 1)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:00.50  (usb5)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM   0:00.00  (ithread 10)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:00.50  (usb4)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:00.50  (usb3)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:00.00  (ithread 14)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM   0:15.98  (ithread 11)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:00.50  (usb2)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:00.00  (ithread 7)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:00.50  (usb1)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM   0:00.00  (ithread 5)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:00.00  (usbtask-dr)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:00.00  (usbtask-hc)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:00.50  (usb0)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:00.00 
(ciss_notify0)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:16.94  (ithread 2)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM   0:00.00  (ithread 4)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM   0:00.00  (ithread 64)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM   0:00.00  (ithread 9)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:00.00  (acpi_task)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:00.00  (ithread 69)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:07.23  (ithread 67)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:00.00  (xpt_thrd)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:00.00  (crypto
returns)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:00.00  (crypto)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM   0:00.00 
(taskq_cpu 0)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM   0:00.10  (ifnet 0)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:00.01 
(devfs_msg_core)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:00.00 
(disk_msg_core)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM   0:00.41 
(netisr_cpu 0)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM   0:00.12  (usched 0)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:00.00  (dsched 0)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM   0:00.00  (ithread 68)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   8:14.51 
(softclock 0)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM   0:00.00  (ithread 0)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:00.00  (ithread
emerg)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM 809:06.45  (idle_0)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:00.02 
(rtable_cpu 3)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM   0:06.54 
(tcp_thread 3)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM   0:00.02 
(udp_thread 3)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM   0:00.00 
(taskq_cpu 3)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM   0:00.00  (ifnet 3)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM   0:00.00 
(netisr_cpu 3)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM   0:00.09  (usched 3)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:00.00  (dsched 3)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:00.81 
(softclock 3)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM 819:15.67  (idle_3)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:00.02 
(rtable_cpu 2)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM   0:02.49 
(tcp_thread 2)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM   0:00.00 
(udp_thread 2)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM   0:00.00 
(taskq_cpu 2)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM   0:00.00  (ifnet 2)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM   0:00.00 
(netisr_cpu 2)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM   0:00.12  (usched 2)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:00.00  (dsched 2)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:00.68 
(softclock 2)
root        -1  0.0  0.0     0    0  ??  BLM  11:16PM 817:55.21  (idle_2)
root         0  0.0  0.0     0    0  ??  DLs  10:16AM   0:10.67  (swapper)
root         1  0.0  0.0  1428   88  ??  ILs  10:16AM   0:00.17 /sbin/init --
root       102  0.0  0.0   304    4  ??  ILMs 10:16AM   0:00.00 adjkerntz -i
root       328  0.0  0.0  1756  560  ??  SLs  11:16PM   0:00.10
/usr/sbin/syslogd -ss
root       538  0.0  0.0  2276  524  ??  SLMs 11:16PM   0:00.41
/usr/sbin/dntpd
root       623  0.0  0.0  4984  744  ??  ILs  11:16PM   0:00.26
/usr/sbin/sshd
root       637  0.0  0.0  5484  884  ??  SLs  11:16PM   0:00.57 sendmail:
accepting connections (sendmail)
smmsp      641  0.0  0.0  5356  832  ??  ILMs 11:16PM   0:00.01 sendmail:
Queue runner at 00:30:00 for /var/spool/clientmqueue (sendmail)
root       656  0.0  0.0  2620  732  ??  ILMs 11:16PM   0:00.04
/usr/sbin/cron
pgsql      679  0.0  0.1 852176 2180 con- IL   11:16PM   0:00.56
/usr/pkg/bin/postgres -D /usr/pkg/pgsql/data
pgsql      681  0.0  0.1 852752 1988  ??  SLs  11:16PM   0:04.99 postgres:
writer process    (postgres)
pgsql      682  0.0  0.0 852560 1300  ??  SLs  11:16PM   0:03.94 postgres:
wal writer process    (postgres)
pgsql      683  0.0  0.0 852784 1604  ??  SLs  11:16PM   0:01.54 postgres:
autovacuum launcher process    (postgres)
pgsql      684  0.0  0.0  8472 1144  ??  SLMs 11:16PM   0:02.01 postgres:
stats collector process    (postgres)
root       735  0.0  0.0  1804  444  v0  ILs+ 11:16PM   0:00.01
/usr/libexec/getty Pc ttyv0
root       736  0.0  0.0  1804  444  v1  ILs+ 11:16PM   0:00.00
/usr/libexec/getty Pc ttyv1
root       737  0.0  0.0  1804  444  v2  ILs+ 11:16PM   0:00.00
/usr/libexec/getty Pc ttyv2
root       738  0.0  0.0  1804  444  v3  ILs+ 11:16PM   0:00.01
/usr/libexec/getty Pc ttyv3
root       739  0.0  0.0  1804  444  v4  ILs+ 11:16PM   0:00.01
/usr/libexec/getty Pc ttyv4
root       740  0.0  0.0  1804  444  v5  ILs+ 11:16PM   0:00.00
/usr/libexec/getty Pc ttyv5
root       741  0.0  0.0  1804  444  v6  ILs+ 11:16PM   0:00.01
/usr/libexec/getty Pc ttyv6
root       742  0.0  0.0  1804  444  v7  ILs+ 11:16PM   0:00.00
/usr/libexec/getty Pc ttyv7
root      6568  0.0  0.0  7928  880  ??  ILs  10:08AM   0:00.04 sshd:
sysadmin [priv] (sshd)
sysadmin  6570  0.0  0.0  7896  956  ??  SL   10:08AM   0:01.92 sshd:
sysadmin at pts/1 (sshd)
sysadmin  6571  0.0  0.0  3612  108   1  ILMs 10:08AM   0:00.01 -tcsh (tcsh)
root      6575  0.0  0.0  2904  580   1  IL   10:08AM   0:00.01 su
root     54801  0.0  0.1  7928 2404  ??  ILs  12:27PM   0:00.05 sshd:
sysadmin [priv] (sshd)
sysadmin 54803  0.0  0.1  7800 1880  ??  IL   12:27PM   0:00.10 sshd:
sysadmin at pts/0 (sshd)
sysadmin 54804  0.0  0.0  3612 1252   0  ILMs 12:27PM   0:00.03 -tcsh (tcsh)
root     54808  0.0  0.0  2904 1264   0  IL   12:27PM   0:00.01 su
root     54809  0.0  0.0  3904 1308   0  IL+  12:28PM   0:00.09 _su (csh)
root     55111  0.0  0.1  7880 3572  ??  SLs  12:36PM   0:00.11
/usr/pkg/sbin/httpd -k start
www      55113  0.0  0.1  7800 1892  ??  SL   12:36PM   0:00.00
/usr/pkg/sbin/httpd -k start
www      55114  0.0  0.1  7880 2084  ??  IL   12:36PM   0:00.00
/usr/pkg/sbin/httpd -k start
www      55115  0.0  0.1  7880 2088  ??  SL   12:36PM   0:00.01
/usr/pkg/sbin/httpd -k start
www      55116  0.0  0.1  7880 2084  ??  IL   12:36PM   0:00.00
/usr/pkg/sbin/httpd -k start
www      55117  0.0  0.1  7880 2084  ??  IL   12:36PM   0:00.01
/usr/pkg/sbin/httpd -k start
www      55118  0.0  0.1  7880 2084  ??  IL   12:36PM   0:00.00
/usr/pkg/sbin/httpd -k start
root     55220  0.0  0.0  2864 1004  ??  SLMs 12:47PM   0:00.01
/usr/sbin/rpcbind
root     55365  0.0  0.0  2268  708  ??  ILs  12:51PM   0:00.00
/sbin/mountd -r
pgsql    55370  0.0  0.1 853512 4144  ??  ILs  12:52PM   0:00.00 postgres:
aubill xxxx_production xxx.xx.xxx.xxx(57026) idle (postgres)
pgsql    55372  0.0  0.1 853448 4148  ??  ILs  12:52PM   0:00.00 postgres:
aubill xxx_production xxx.xxx.xx.xxx(51220) idle (postgres)
root     55445  0.0  0.0  1720  476  ??  ILs  12:55PM   0:00.02 nfsd:
master (nfsd)
root     55446  0.0  0.0   928  276  ??  IL   12:55PM   0:00.00 nfsd:
server (nfsd)
root     55447  0.0  0.0   928  276  ??  IL   12:55PM   0:00.00 nfsd:
server (nfsd)
root     55448  0.0  0.0   928  276  ??  IL   12:55PM   0:00.00 nfsd:
server (nfsd)
root     55449  0.0  0.0   928  276  ??  IL   12:55PM   0:00.00 nfsd:
server (nfsd)
root        -1  0.0  0.0     0    0  ??  BL   11:16PM   0:00.02 
(rtable_cpu 1)
root     55475  0.0  0.0  1060  560   1  R1L+  1:00PM   0:00.00 ps -aux

I firstly noticed a massive spike in memory usage on a fresh install after
running "hammer cleanup". It went to like 1.5GB

Any ideas?







More information about the Kernel mailing list