From owner-freebsd-current Fri Oct 18 15:18:53 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 47E0637B401; Fri, 18 Oct 2002 15:18:49 -0700 (PDT) Received: from uucp.nl.uu.net (uucp.nl.uu.net [193.79.237.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D47B43E8A; Fri, 18 Oct 2002 15:18:48 -0700 (PDT) (envelope-from ben@stuyts.nl) Received: from stuyts by uucp.nl.uu.net with UUCP id ; Fri, 18 Oct 2002 22:18:43 +0000 Received: from lodovik.stuyts.nl (lodovik.stuyts.nl [193.78.231.31]) by stuyts.nl (8.12.6/8.12.6) with ESMTP id g9IMJaSa035136; Sat, 19 Oct 2002 00:19:36 +0200 (CEST) (envelope-from ben@stuyts.nl) Message-Id: <4.3.2.7.2.20021019001010.00b89f28@terminus> X-Sender: ben@terminus X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Sat, 19 Oct 2002 00:19:57 +0200 To: Terry Lambert From: Ben Stuyts Subject: Re: [Ugly PATCH] Again: panic kmem_malloc() Cc: current@freebsd.org, Jeff Roberson , Robert Watson , jeff@freebsd.org, Alfred Perlstein In-Reply-To: <3DB07805.AB4BAA15@mindspring.com> References: <4.3.2.7.2.20021018125313.00bb8990@terminus> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Terry, At 23:07 18/10/2002, you wrote: >Ben Stuyts wrote: > > Furthermore, this might be interesting: the last vmstat -m log > > before the panic. Maybe someone can check if these values are reasonable? > > The system has 64 MB memory and has been up for about 24 hrs with almost no > > load. > > sem344456 5390K 5390K 344456 16,1024,4096 > >Almost 5.3M of unswappable physical memory dedicated to semaphores >seems like a bit much. Yes, and it increases continuously, for example when I fetch new mail (over pop) from my windows pc. The pc stores this again on a network drive, so both qpopper and smbd are involved. For example, vmstat -m says: vmstat -m | grep sem sem155886 2443K 2443K 155886 16,1024,4096 Now when I do a fetch-mail with Eudora on my pc, the same command says. vmstat -m | grep sem sem156178 2448K 2448K 156178 16,1024,4096 I can repeat this at will, and each time I loose 4-5 KB. qpopper is started from inetd, and smbd runs as a daemon. I tried stopping smbd: [terminus.stuyts.nl etc/rc.d]90: sudo /usr/local/etc/rc.d/samba.sh stop [terminus.stuyts.nl etc/rc.d]91: !vm vmstat -m | grep sem sem156524 2453K 2453K 156524 16,1024,4096 It doesn't free the sem allocated memory. >But without knowing what software you are running, it's hard to say >if the number is unreasonable, or not. Well, it is really a lightly loaded server, just serving one windows pc here at home. Here is a ps, and the only thing that's missing from it is the occasional pop session. Also note that this system is not connected to the internet, so the http that's running is mostly for my own pleasure (and proxy/cache). I do run ppp and uucp every now and then. USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND dnetc 503 94.2 0.8 960 460 ?? RNs Thu09PM 1529:56.87 /usr/local/distributed.net/dnetc -quiet root 10 0.0 0.0 0 12 ?? DL 1Jan70 0:00.00 (ktrace) root 1 0.0 0.3 700 184 ?? ILs 1Jan70 0:01.26 /sbin/init -- root 11 0.0 0.0 0 12 ?? RL 1Jan70 1:24.27 (idle) root 12 0.0 0.0 0 12 ?? WL 1Jan70 1:01.85 (swi1: net) root 13 0.0 0.0 0 12 ?? WL 1Jan70 7:49.87 (swi6: tty:sio clock) root 15 0.0 0.0 0 12 ?? DL 1Jan70 0:17.51 (random) root 18 0.0 0.0 0 12 ?? WL 1Jan70 0:35.60 (swi3: cambio) root 23 0.0 0.0 0 12 ?? DL 1Jan70 0:33.97 (usb0) root 24 0.0 0.0 0 12 ?? DL 1Jan70 0:00.00 (usbtask) root 25 0.0 0.0 0 12 ?? WL 1Jan70 0:15.98 (irq12: sym0) root 26 0.0 0.0 0 12 ?? WL 1Jan70 0:33.34 (irq9: xl0) root 27 0.0 0.0 0 12 ?? WL 1Jan70 0:00.04 (irq1: atkbd0) root 28 0.0 0.0 0 12 ?? WL 1Jan70 0:00.00 (irq6: fdc0) root 30 0.0 0.0 0 12 ?? WL 1Jan70 0:00.25 (swi0: tty:sio) root 2 0.0 0.0 0 12 ?? DL 1Jan70 0:51.73 (pagedaemon) root 3 0.0 0.0 0 12 ?? DL 1Jan70 0:00.42 (vmdaemon) root 4 0.0 0.0 0 12 ?? RL 1Jan70 0:01.95 (pagezero) root 5 0.0 0.0 0 12 ?? DL 1Jan70 0:05.29 (bufdaemon) root 6 0.0 0.0 0 12 ?? DL 1Jan70 1:26.74 (syncer) root 7 0.0 0.0 0 12 ?? DL 1Jan70 0:04.12 (vnlru) root 123 0.0 0.0 220 8 ?? IWs - 0:00.00 adjkerntz -i root 194 0.0 0.4 628 244 ?? Is Thu09PM 0:09.18 /sbin/natd -dynamic -log -n tun0 root 241 0.0 0.7 1180 420 ?? Ss Thu09PM 0:04.76 /usr/sbin/syslogd -s -v root 255 0.0 2.6 2856 1580 ?? Is Thu09PM 0:23.02 /usr/sbin/named -d 1 root 263 0.0 0.0 1332 12 ?? Is Thu09PM 0:00.06 /usr/sbin/rpcbind root 340 0.0 0.0 1204 12 ?? Is Thu09PM 0:00.03 /usr/sbin/mountd -r root 342 0.0 0.0 1164 12 ?? Is Thu09PM 0:00.30 nfsd: master (nfsd) root 343 0.0 0.0 1116 8 ?? IW - 0:00.00 nfsd: server (nfsd) root 344 0.0 0.0 1116 8 ?? IW - 0:00.00 nfsd: server (nfsd) root 345 0.0 0.0 1116 8 ?? IW - 0:00.00 nfsd: server (nfsd) root 347 0.0 0.0 1116 8 ?? IW - 0:00.00 nfsd: server (nfsd) root 376 0.0 0.0 1188 12 ?? Is Thu09PM 0:00.05 /usr/sbin/lpd root 380 0.0 0.3 1188 168 ?? S Thu09PM 0:02.57 /usr/sbin/lpd root 396 0.0 1.3 1552 804 ?? Ss Thu09PM 0:26.59 /usr/sbin/ntpd -p /var/run/ntpd.pid root 418 0.0 0.1 1132 64 ?? Is Thu09PM 0:00.97 /usr/sbin/usbd root 437 0.0 1.4 3036 820 ?? Ss Thu09PM 0:19.39 sendmail: accepting connections (sendmail) smmsp 440 0.0 0.9 3012 528 ?? Is Thu09PM 0:00.38 sendmail: Queue runner@00:30:00 for /var/spool/clientmqueue (sendmail) root 467 0.0 1.5 2332 908 ?? Ss Thu09PM 0:25.86 /usr/local/sbin/httpd www 485 0.0 0.0 2356 12 ?? I Thu09PM 0:00.01 /usr/local/sbin/httpd www 486 0.0 0.0 2356 12 ?? I Thu09PM 0:00.01 /usr/local/sbin/httpd www 487 0.0 1.7 2380 1040 ?? I Thu09PM 0:00.05 /usr/local/sbin/httpd www 488 0.0 1.8 2392 1060 ?? I Thu09PM 0:00.06 /usr/local/sbin/httpd www 489 0.0 1.7 2392 1056 ?? I Thu09PM 0:00.07 /usr/local/sbin/httpd root 490 0.0 1.0 1960 596 ?? Is Thu09PM 0:00.83 /usr/local/sbin/dhcpd news 495 0.0 0.0 1372 8 con- IW - 0:00.00 nntpd: accepting connections: loadav -1 (nntpd) root 501 0.0 0.0 2672 12 ?? Is Thu09PM 0:00.01 /usr/local/sbin/smbd -D root 504 0.0 1.1 2232 640 ?? Ss Thu09PM 0:15.84 /usr/local/sbin/nmbd -D root 506 0.0 1.3 2248 800 ?? I Thu09PM 0:00.07 /usr/local/sbin/nmbd -D root 516 0.0 0.4 1324 220 ?? Is Thu09PM 0:01.25 /usr/sbin/inetd -wW root 527 0.0 0.5 1232 300 ?? Is Thu09PM 0:05.16 /usr/sbin/cron root 535 0.0 0.0 1180 8 v1 IWs+ - 0:00.00 /usr/libexec/getty Pc ttyv1 root 536 0.0 0.0 1180 8 v2 IWs+ - 0:00.00 /usr/libexec/getty Pc ttyv2 root 537 0.0 0.0 1180 8 v3 IWs+ - 0:00.00 /usr/libexec/getty Pc ttyv3 root 538 0.0 0.0 1180 8 v4 IWs+ - 0:00.00 /usr/libexec/getty Pc ttyv4 root 539 0.0 0.0 1180 8 v5 IWs+ - 0:00.00 /usr/libexec/getty Pc ttyv5 root 540 0.0 0.0 1180 8 v6 IWs+ - 0:00.00 /usr/libexec/getty Pc ttyv6 root 541 0.0 0.0 1180 8 v7 IWs+ - 0:00.00 /usr/libexec/getty Pc ttyv7 ben 546 0.0 2.4 3952 1428 ?? S Thu09PM 3:42.63 /usr/local/sbin/smbd -D root 585 0.0 0.0 1180 8 v0 IWs+ - 0:00.00 /usr/libexec/getty Pc ttyv0 root 587 0.0 0.3 2488 196 ?? Is Thu09PM 0:03.43 telnetd root 588 0.0 0.0 1552 8 p0 IWs - 0:00.00 login -h lodovik -p ben 589 0.0 0.9 1524 568 p0 I Thu09PM 0:00.42 -tcsh (tcsh) root 697 0.0 0.7 2488 444 ?? Ss Thu09PM 0:02.41 telnetd root 698 0.0 0.0 1552 8 p1 IWs - 0:00.00 login -h lodovik -p ben 758 0.0 1.5 1632 904 p1 S Thu09PM 0:01.16 -tcsh (tcsh) ben 790 0.0 0.4 868 220 p1 S Thu09PM 0:34.80 /bin/sh ./vmcheck www 16058 0.0 1.9 2356 1152 ?? I 10:23AM 0:00.02 /usr/local/sbin/httpd www 16642 0.0 2.0 2356 1184 ?? I 10:55AM 0:00.02 /usr/local/sbin/httpd ben 18188 0.0 1.1 1184 660 p0 S+ 12:15PM 0:09.17 uulog -F root 34740 0.0 1.5 1368 932 ?? I 12:05AM 0:00.34 /usr/local/sbin/vgetty cuaa0 ben 34895 0.0 0.1 188 44 p1 S 12:07AM 0:00.00 sleep 20 root 0 0.0 0.0 0 12 ?? DLs 1Jan70 0:00.73 (swapper) ben 34897 0.0 0.8 668 500 p1 R+ 12:07AM 0:00.01 ps -aguxwwww Kind regards, Ben To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message