From owner-freebsd-questions Tue Feb 19 15:38:59 2002 Delivered-To: freebsd-questions@freebsd.org Received: from darius.2y.net (korpen-86-205.ip-pluggen.com [212.181.86.205]) by hub.freebsd.org (Postfix) with ESMTP id 3EC6137B419 for ; Tue, 19 Feb 2002 15:38:54 -0800 (PST) Received: by darius.2y.net (Postfix, from userid 1001) id C44E21C4F; Wed, 20 Feb 2002 00:38:46 +0100 (CET) Date: Wed, 20 Feb 2002 00:38:46 +0100 From: Morsal Rodbay To: Lowell Gilbert Cc: freebsd-questions@freebsd.org Subject: Re: how to set resource limits Message-ID: <20020220003846.A72059@zigman.2y.net> Reply-To: Morsal Rodbay References: <20020121111645.GA381@moo.holy.cow> <20020212115013.A51934@zigman.2y.net> <44k7ticx30.fsf@lowellg.ne.mediaone.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <44k7ticx30.fsf@lowellg.ne.mediaone.net>; from lowell@world.std.com on Tue, Feb 12, 2002 at 02:35:31PM -0500 X-Operating-System: FreeBSD 4.4 [up 37 days, 7:16] X-Return-Path: morsal@swipnet.se Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Feb 12, 2002 at 02:35:31PM -0500, Lowell Gilbert wrote: > Morsal Rodbay writes: > > > On Mon, Jan 21, 2002 at 06:16:45AM -0500, parv wrote: > > > last time i set the limits in /etc/login.conf, i couldn't start the > > > X server (not enough memory allocation). i don't want to repeat my > > > previous mistake as to start X again it involved 2-3 reboots. > > > > > > a few minutes ago, netscape 4.79 swelled to about >500M in both SIZE > > > and RES as indicated by top(1) (everything slowed, had to kill it). > > > > > > i had read the man pages for limits, my shell (bash), and > > > login.conf. in login.conf, everything is unlimited; current limits > > > are... > > > > > > > > > cputime infinity secs > > > filesize infinity kb > > > datasize 524288 kb > > > stacksize 65536 kb > > > coredumpsize infinity kb > > > memoryuse infinity kb > > > memorylocked infinity kb > > > maxprocesses 1861 > > > openfiles 3722 > > > sbsize infinity bytes > > > > > > > > > will (top(1)) "RES" be affected by changing (login.conf(5)) > > > "memoryuse" and "memorylocked" eventually, and "SIZE" by "datasize", > > > "filesize", and "stacksize"? > > > > > > how should i start setting/testing resource limits again? > > > > > > - parv > > > > I have the same problem... login.conf has set datasizes to unlimited but > > when I login through ssh it is set to 524288 kb.. :-( > > Isn't that just the kernel limit? I'm not sure but I'm going to take a look. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message