From owner-freebsd-hackers Fri Dec 21 9:51:55 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from scanner.secnap.net (scanner.secnap.net [216.241.67.74]) by hub.freebsd.org (Postfix) with ESMTP id F10B337B41B for ; Fri, 21 Dec 2001 09:51:44 -0800 (PST) Received: (from scheidell@localhost) by scanner.secnap.net (8.11.6/8.11.5) id fBLHpcr02576; Fri, 21 Dec 2001 12:51:38 -0500 (EST) (envelope-from scheidell) Message-Id: <200112211751.fBLHpcr02576@scanner.secnap.net> Subject: Re: userland program panics freebsd 4.3 In-Reply-To: <20011221174007.D551C38CC@overcee.netplex.com.au> To: freebsd-hackers@freebsd.org Date: Fri, 21 Dec 2001 12:51:38 -0500 (EST) Cc: peter@wemm.org From: Michael Scheidell X-Loop: scheidell@secnap.net X-Mailer: ELM [version 2.4ME+ PL92 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Kris Kennaway wrote: > > On Thu, Dec 20, 2001 at 09:10:14AM -0500, Michael Scheidell wrote: > > > I doubt hardware related > > > I can get it to do it on two seperate boxes. > > > > OK, then you need to get more details as explained. > > My gut reaction tells me that this is either a kernel stack overflow or out > of KVM. The kernel stack overflow problem was "fixed" in 4.4-STABLE some > time back (change UPAGES from 2 to 3 in the kernel) so that the kernel stack > changes from 4.5K to 8.5K. Ok, 'fixed', thats good, makes me want to try the 4.4 kernel, or could I tune 4.3 kernel to a 8.5k stack? > > The other possibility is that he's configured the kernel so big (maxusers > too high etc) and he's running out of KVM. No tuning information was > supplied (kernel configs, any sysctl/tunable changes etc). maxusers 128, guess I could fiddle with vm,kernfiles, etc, but that was easyest way, the 'one' processes (user) can spawn 32*20 individual processes, each one open several files (yes, I uses ulimits on it) limits -C nessusd Resource limits for class nessusd: cputime infinity secs filesize 131072 kb datasize-cur 65536 kb stacksize-cur 32768 kb coredumpsize-cur 0 kb memoryuse-cur 65536 kb memorylocked-cur 65536 kb maxprocesses 64 openfiles 256 sbsize infinity bytes nothing twiddled in sysctl, but in order to get apache to run, did: options PMAP_SHPGPERPROC=300 (sorry, If I didn't post it here, did both (maxusers and PMAP_) on comp.unix.bsd.freebsd.misc group already) > > I'd be interested to know what this says: > # gdb -k /kernel /dev/mem > (kgdb) print ((struct vm_map *)kernel_map)->size print ((struct vm_map *)kernel_map)->size $1 = 247824384 -- Michael Scheidell Secnap Network Security, LLC scheidell@secnap.net 1+(561) 368-9561 See updated IT Security News at http://www.fdma.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message