From owner-freebsd-current Wed Oct 16 12:42: 9 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 818F737B401; Wed, 16 Oct 2002 12:42:06 -0700 (PDT) Received: from uucp.nl.uu.net (uucp.nl.uu.net [193.79.237.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C01343E7B; Wed, 16 Oct 2002 12:42:05 -0700 (PDT) (envelope-from ben@stuyts.nl) Received: from stuyts by uucp.nl.uu.net with UUCP id ; Wed, 16 Oct 2002 19:41:55 +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 g9GJg38D010955; Wed, 16 Oct 2002 21:42:04 +0200 (CEST) (envelope-from ben@stuyts.nl) Message-Id: <4.3.2.7.2.20021016213322.01c6d348@terminus> X-Sender: ben@terminus X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Wed, 16 Oct 2002 21:42:14 +0200 To: Terry Lambert From: Ben Stuyts Subject: Re: [Ugly PATCH] Again: panic kmem_malloc() Cc: Robert Watson , current@freebsd.org, jeff@freebsd.org In-Reply-To: <3DA72490.32A10E8@mindspring.com> References: <4.3.2.7.2.20021011100633.03783d58@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 At 21:20 11/10/2002, Terry Lambert wrote: >Please find a (relatively bogus) patch attached, which could cause >things to block for a long time, but will avoid the panic. Terry, I just got the same panic without your patch. (I wanted to verify that it was still panic-ing with the latest src tree.) I am now building a kernel with your patch. I'll also run your vmstat script that you posted in a similar thread. One of the big memory users seems to be sem, and it's growing. Almost every time I do a vmstat -m, sem usage has grown a few k. Type InUse MemUse HighUse Requests Size(s) atkbddev 2 1K 1K 2 32 pfs_fileno 1 32K 32K 1 32768 nexusdev 2 1K 1K 2 16 memdesc 1 4K 4K 1 4096 legacydrv 3 1K 1K 3 16 VM pgdata 1 4K 4K 1 4096 pfs_nodes 20 3K 3K 20 128 MSDOSFS mount 1 8K 8K 1 8192 UFS mount 12 23K 39K 14 256,2048,4096,16384 UFS ihash 1 16K 16K 1 16384 UFS dirhash 57 11K 11K 117 16,32,64,128,512 FFS node 4976 933K 936K 40528 128,256 dirrem 0 0K 31K 5522 32 mkdir 0 0K 3K 520 32 diradd 14 1K 7K 3118 32 freefile 0 0K 26K 4839 32 freeblks 1 1K 186K 3820 256 freefrag 6 1K 1K 2494 32 allocindir 10 1K 86K 8596 64 indirdep 2 1K 876K 577 32,8192 allocdirect 23 3K 16K 8457 128 bmsafemap 3 1K 3K 365 32 newblk 1 1K 1K 17054 64,256 inodedep 16 18K 168K 9570 128,16384 pagedep 2 3K 7K 874 64,2048 p1003.1b 1 1K 1K 1 16 NFS daemon 5 3K 3K 5 256,512 NFS srvsock 2 1K 1K 2 128 ip6_moptions 1 1K 1K 1 16 in6_multi 10 1K 1K 10 16,64 syncache 1 8K 8K 1 8192 IpFw/IpAcct 30 4K 4K 30 64,128 in_multi 2 1K 1K 2 32 routetbl 41 6K 6K 76 16,32,64,128,256 lo 1 1K 1K 1 512 clone 3 12K 12K 3 4096 ether_multi 35 2K 2K 35 16,32,64 ifaddr 22 7K 7K 22 32,256,512,2048 BPF 6 9K 9K 6 128,256,4096 mount 20 4K 4K 24 16,32,128,512 vnodes 23 6K 6K 137 16,32,64,128,256 cluster_save buffer 0 0K 1K 1183 32,64 vfscache 2634 197K 198K 32833 64,128,256,32768 BIO buffer 21 26K 205K 1130 512,1024,2048 DEVFS 121 22K 22K 121 16,32,128,8192 pcb 38 5K 5K 58 16,32,64,2048 soname 4 1K 1K 1415 16,32,128 ptys 2 1K 1K 2 512 ttys 614 81K 81K 1121 128,512 shm 3 18K 19K 8 16,1024,16384 sem167320 2622K 2622K 167320 16,1024,4096 msg 4 25K 25K 4 512,4096,16384 ioctlops 0 0K 1K 22 512,1024 USBdev 1 1K 2K 4 128,512 USB 15 21K 22K 15345 16,32,128,256,4096 taskqueue 1 1K 1K 1 128 sbuf 0 0K 5K 2 32,4096 rman 99 7K 7K 496 16,64,128 mbufmgr 106 15K 15K 106 32,64,128,2048,8192 kobj 127 508K 508K 127 4096 eventhandler 22 2K 2K 22 32,128 bus 470 39K 40K 1363 16,32,64,128,256,512,2048,4096,8192 SWAP 2 73K 73K 2 64 sysctltmp 0 0K 4K 8856 16,32,64,128,256,512,1024,4096 sysctl 0 0K 1K 386 16,32,64 uidinfo 7 1K 1K 525 32,128 cred 34 5K 5K 18178 128 subproc 114 11K 14K 10613 64,256 proc 2 1K 1K 2 512 session 33 5K 5K 68 128 pgrp 40 5K 6K 117 128 module 171 11K 11K 171 64 ip6ndp 3 1K 1K 4 64,128,512 temp 11 54K 55K 19887 16,32,64,128,256,512,1024,2048,4096,8192,16384,32768 devbuf 473 964K 997K 2268 16,32,64,128,256,512,1024,2048,4096,8192,32768 lockf 6 1K 1K 549 64 feeder 48 1K 1K 48 16 linker 65 13K 18K 85 16,32,256,1024,4096,8192 KTRACE 100 13K 13K 100 128 ithread 40 7K 7K 41 64,256 atexit 2 1K 1K 2 16 zombie 0 0K 1K 10455 128 proc-args 50 3K 4K 11585 16,32,64,128,256 kqueue 2 2K 4K 26 256,1024 kenv 46 4K 4K 47 16,32,64,2048 sigio 1 1K 1K 1 32 file desc 97 25K 29K 10553 256 dev_t 51 13K 13K 51 256 ppbusdev 1 1K 1K 1 128 ISOFS mount 1 16K 16K 1 16384 isadev 22 2K 2K 22 64 pfs_vncache 2 1K 1K 8 32 I'll see what the stats are tomorrow. Kind regards, Ben To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message