From owner-freebsd-hackers Tue Apr 11 9:43:10 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 9D38537BACC for ; Tue, 11 Apr 2000 09:43:07 -0700 (PDT) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id e3BH9o719150; Tue, 11 Apr 2000 10:09:50 -0700 (PDT) Date: Tue, 11 Apr 2000 10:09:50 -0700 From: Alfred Perlstein To: Bjoern Fischer Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: efficiency of maxproc hardlimit Message-ID: <20000411100950.E4381@fw.wintelcom.net> References: <20000410094436.A778@frolic.no-support.loc> <20000410013139.R4381@fw.wintelcom.net> <20000411125643.A282@frolic.no-support.loc> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000411125643.A282@frolic.no-support.loc>; from bfischer@Techfak.Uni-Bielefeld.DE on Tue, Apr 11, 2000 at 12:56:43PM +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Bjoern Fischer [000411 10:06] wrote: > On Mon, Apr 10, 2000 at 01:31:39AM -0700, Alfred Perlstein wrote: > [...] > > > main(){fork();main();} > > > > > > leaves the machine in an unusable state (it does ping > > > back, one may break into the kernel debugger, but no > > > io). > > > > > > Any way to prevent this (without harming the user)? > > > > Please reread the documentation on limits. > > > > cputime unlimited > > filesize unlimited > > datasize 256MB <- > > stacksize 64MB <- > > coredumpsize unlimited > > memoryuse unlimited > > memorylocked unlimited > > maxproc 4115 > > descriptors 8232 > > sockbufsize unlimited > > > > If appropriate limits are in place and you still get problems > > then let us know. > > Already set: > > ... > datasize 1048576 kb > stacksize-cur 16384 kb > ... > > Some more information: This happens on a diskless client (265MB RAM, > lots of swap (1.2G) on the server). When I limit the stacksize to 3MB, > all fork-processes fit into RAM and the situation is recoverable > with some effort and `/usr/bin/killall' (Eww, that's a perl script). > > With a stacksize limit of 16M 64 fork processes sould easily fit > into swap, so I don't think it is an out-of-swap situation. > > Listening to the ether on the server, I realized heavy RPC traffic > (swapping, probably) and then silence. Any idea how to find out, > whether swap in not really full, the client won't answer but maybe > looking for some kind of NFS write errors or something? > > As this is a strange setup (1.2G swap via NFS) this issue > in not critical at all. It's also silly. If you've found limits that "work" then why insist on giving your users enough rope to hang you? Either enforce proper limits or rmuser. If you could get a traceback of the stuck client, that would be helpful. -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message