fsck: How to reduce memory usage - to avoid out of swap on boot
?
David Malone
dwmalone at maths.tcd.ie
Thu Oct 7 10:56:17 PDT 2004
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.
More information about the freebsd-hackers
mailing list