Re: [patch] minimum buffer hash size set to 128k (even on 4mbyte

Andrea Arcangeli (andrea@suse.de)
Fri, 29 Oct 1999 21:11:37 +0200 (CEST)


On Fri, 29 Oct 1999, Alan Cox wrote:

>> have only 4mbyte of memory. So 2.2.13 (and 2.2.14pre2) using a order of 5
>> is wasting lots of precious memory in low mem boxes.
>
>[2.2.13ac not 2.2.13]

All kernels from 2.2.7 to 2.2.13 included.

andrea@alpha:~ > egrep -C 'order.*5' kernel/2.2.13/fs/buffer.c

memory_size >>= 20;
for (order = 5; (1UL << order) < memory_size; order++);

/* try to allocate something until we get it or we're asking

Andrea

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/