From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 7 17:56:17 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 634AF16A4CE for ; Thu, 7 Oct 2004 17:56:17 +0000 (GMT) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id 6953D43D45 for ; Thu, 7 Oct 2004 17:56:16 +0000 (GMT) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 7 Oct 2004 18:56:15 +0100 (BST) Date: Thu, 7 Oct 2004 18:56:15 +0100 From: David Malone To: Julian Stacey Message-ID: <20041007175615.GA64782@walton.maths.tcd.ie> References: <200410061401.i96E1QfJ003850@laps.jhs.private> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200410061401.i96E1QfJ003850@laps.jhs.private> User-Agent: Mutt/1.5.6i Sender: dwmalone@maths.tcd.ie cc: freebsd-hackers@freebsd.org cc: jhs@berklix.com Subject: Re: fsck: How to reduce memory usage - to avoid out of swap on boot ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Oct 2004 17:56:17 -0000 On Wed, Oct 06, 2004 at 04:01:26PM +0200, Julian Stacey wrote: > - /usr/src/sbin/fsck/fsck.h, maybe I could eg halve one or both of these: > #define MAXBUFSPACE 40*1024 /* maximum space to allocate to buffers */ > #define INOBUFSIZE 56*1024 /* size of buffer to read inodes in pass1 */ > I quickly paged through all of /usr/src/sbin/fsck/ but didnt see > much else likely. Any suggestion what to hack ? Must be some > define type `take so much RAM' lines in there :-) I'd guess these might help. Recently there have been some improvements to the speed of fsck that involve using more memory - you probably want to disable these if you're running with such a small amount of memory. David.