Date: Thu, 7 Oct 2004 18:56:15 +0100 From: David Malone <dwmalone@maths.tcd.ie> To: Julian Stacey <jhs@berklix.org> Cc: jhs@berklix.com Subject: Re: fsck: How to reduce memory usage - to avoid out of swap on boot ? Message-ID: <20041007175615.GA64782@walton.maths.tcd.ie> In-Reply-To: <200410061401.i96E1QfJ003850@laps.jhs.private> References: <200410061401.i96E1QfJ003850@laps.jhs.private>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041007175615.GA64782>