Subject: Leak(?) in 2.0.2 on x86
To: None <netbsd-help@netbsd.org>
From: Alexander Rigbo <alex@rigbo.se>
List: netbsd-help
Date: 08/15/2005 22:13:12
--n8g4imXOkfNTN/H1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi,

First time mailer, but enough about that.

I have a box that serves as a fileserver in my home running NetBSD 2.0.2_STABLE.
The only programs i run are nmbd, smbd, winbindd, syslogd and sshd. The box is a 200Mhz Pentium Pro with 512MB ram and a 73GB 10 krpm SCSI-drive.
I noticed yesterday that my kernel processes used 139M RES memory, so i recompiled a custom kernel and rebooted, but today (about 24 hours later) i had 119M already.
This concerns me a little since my 2.0 box has 0 RES.

Attached is the output of:
vmstat -m
ps aux
uname -a

Please tell what other info you need.

Best Regards
Alexander Rigbo

--n8g4imXOkfNTN/H1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=eld_vmstat

Memory resource pool statistics
Name        Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
phpool        40     3499    0      160    34     0    34    34     0   inf    0
pcgpool      140        9    0        0     1     0     1     1     0   inf    0
pmappl        76     1799    0     1786     1     0     1     1     0   inf    0
pdppl       4096       33    0       11    22     0    22    22     0   inf    0
vmsppl       220     1799    0     1786     2     0     2     2     0   inf    1
vmmpepl       88    52351    0    51976    11     0    11    11     0   inf    2
vmmpekpl      88     3973    0     3935     1     0     1     1     0   inf    0
amappl        40    13440    0    13319     2     0     2     2     0   inf    0
bufpl        120    32987    0     3511   894     0   894   894     0   inf    0
buf1k       1024    33849    0    10485   367     0   367   367     1     1    0
buf2k       2048      896    0      725    15     2    13    13     1     1    0
buf4k       4096      335    0      293    15     9     6    10     1     1    0
buf8k       8192    18214    0    12315  1004   149   855   958     1     1    0
mbpl         256      107    0        0     8     0     8     8     1   inf    1
mclpl       2048       58    0        0    33     0    33    33     4   512    4
kqueuepl     260        1    0        1     1     0     1     1     0   inf    1
knotepl       72        5    0        5     1     0     1     1     0   inf    1
sockpl       200     2731    0     2717     1     0     1     1     0   inf    0
ttypl        264       67    0        0     5     0     5     5     0   inf    0
rndsample    528     1975    0     1972     1     0     1     1     0   inf    0
procpl       408     1807    0     1786     3     0     3     3     0   inf    0
lwppl        132     1807    0     1786     1     0     1     1     0   inf    0
pgrppl        16      502    0      493     1     0     1     1     0   inf    0
pcredpl       24     1807    0     1786     1     0     1     1     0   inf    0
plimitpl     156       60    0       58     1     0     1     1     0   inf    0
pstatspl     224     1807    0     1786     2     0     2     2     0   inf    0
rusgepl       72     1786    0     1786     1     0     1     1     0   inf    1
ptimerpl     124       28    0       26     1     0     1     1     0   inf    0
filepl        56   184328    0   184243     2     0     2     2     0   inf    0
cwdipl        12     1799    0     1786     1     0     1     1     0   inf    0
fdescpl      280     1799    0     1786     2     0     2     2     0   inf    0
pnbufpl     1024        5    0        0     2     0     2     2     0   inf    0
vnodepl      164    34461    0     1750  1363     0  1363  1363     0   inf    0
ncachepl      84   480585    0   447874   682     0   682   682     0   inf    0
ffsinopl     176   561322    0   528619  1422     0  1422  1422     0   inf    0
dino1pl      128     8302    0     5199   101     0   101   101     0   inf    0
dino2pl      256   553020    0   523420  2027     0  2027  2027     0   inf    1
scxspl       148   126325    0   126325     1     0     1     1     1   inf    1
extent        20      246    0      231     1     0     1     1     0   inf    0
rtentpl      132       37    0        9     1     0     1     1     0   inf    0
in6pcbpl     156      110    0      109     1     0     1     1     0   inf    0
inpcbpl      108     2014    0     2006     1     0     1     1     0   inf    0
inmltpl       32        2    0        0     1     0     1     1     0   inf    0
tcpcbpl      316      173    0      168     1     0     1     1     0   inf    0
tcpipqepl     44       10    0       10     1     0     1     1     0   inf    1
synpl        184       28    0       28     1     0     1     1     0   inf    1
sigapl      2052     1799    0     1786    22     0    22    22     0   inf    9
pipepl       140     1432    0     1416     1     0     1     1     0   inf    0

In use 96344K, total allocated 106076K; utilization 90.8%


--n8g4imXOkfNTN/H1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=eld_uname

NetBSD eldfluga.rigbo.net 2.0.2_STABLE NetBSD 2.0.2_STABLE (APANSSON) #3: Sun Aug 14 15:26:17 CEST 2005  root@eldfluga.rigbo.net:/usr/src/sys/arch/i386/compile/APANSSON i386

--n8g4imXOkfNTN/H1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=eld_psaux

USER     PID %CPU %MEM  VSZ    RSS TT STAT STARTED    TIME COMMAND
root    3802  5.1  0.4  468   1936 ?? Ss   12:07AM 0:00.15 sshd: optical [priv]
root       0  0.0 22.5    0 118052 ?? DKs  Sun03PM 0:00.12 [swapper]
root       1  0.0  0.1   60    720 ?? Is   Sun03PM 0:00.02 init 
root       2  0.0 22.5    0 118052 ?? DK   Sun03PM 0:00.00 [cryptoret]
root       3  0.0 22.5    0 118052 ?? DK   Sun03PM 0:00.00 [scsibus0]
root       4  0.0 22.5    0 118052 ?? DK   Sun03PM 0:00.00 [scsibus1]
root       5  0.0 22.5    0 118052 ?? DK   Sun03PM 0:00.00 [atabus0]
root       6  0.0 22.5    0 118052 ?? DK   Sun03PM 0:00.00 [lfs_writer]
root       7  0.0 22.5    0 118052 ?? DK   Sun03PM 0:00.00 [pagedaemon]
root       8  0.0 22.5    0 118052 ?? DK   Sun03PM 2:21.58 [ioflush]
root       9  0.0 22.5    0 118052 ?? DK   Sun03PM 0:00.07 [aiodoned]
root     189  0.0  0.1  184    744 ?? Ss   Sun03PM 0:00.25 /usr/sbin/syslogd -s
root     275  0.0  0.3  340   1572 ?? Ss   Sun03PM 0:07.02 /usr/sbin/sshd 
root     372  0.0  0.2 1384    788 ?? I    Sun03PM 0:00.01 /usr/pkg/sbin/winbin
root     428  0.0  0.3 1452   1608 ?? Is   Sun03PM 0:02.95 /usr/pkg/sbin/winbin
root     431  0.0  0.3  912   1336 ?? Ss   Sun03PM 0:16.38 /usr/pkg/sbin/nmbd -
optical  440  0.0  0.1   80    592 ?? R    12:07AM 0:00.00 ps aux 
root     461  0.0  0.3 2332   1656 ?? Ss   Sun03PM 0:00.06 /usr/pkg/sbin/smbd -
root     465  0.0  0.2 2332   1068 ?? I    Sun03PM 0:00.01 /usr/pkg/sbin/smbd -
optical 3423  0.0  0.4  468   1876 ?? S    12:07AM 0:00.01 sshd: optical@notty 
optical 3838  0.0  0.1  208    732 ?? Ss   12:07AM 0:00.02 ksh -c ps aux 
root    5942  0.0  0.4 2596   2124 ?? I    12:06AM 0:00.02 /usr/pkg/sbin/smbd -
root     366  0.0  0.1   48    684 E0 Is+  Sun03PM 0:00.02 /usr/libexec/getty P

--n8g4imXOkfNTN/H1--