[PATCH] reduce size of bio mempools
commitb0e6e962992b76580f4900b166a337bad7c1e81b
authorBenjamin LaHaise <bcrl@kvack.org>
Thu, 23 Mar 2006 11:01:08 +0000 (23 03:01 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 23 Mar 2006 15:38:18 +0000 (23 07:38 -0800)
tree0caae9380c729a437e89acd5d5817a285156e26e
parentb73b459f72f746a031d1ef4cc7659b20a1f1acb9
[PATCH] reduce size of bio mempools

The biovec default mempool limit of 256 entries results in over 3MB of RAM
being permanently pinned, even on systems with only 128MB of RAM.  Since
mempool tries to allocate from the system pool first, it makes sense to
reduce the size of the mempool fallbacks to a more reasonable limit of 1-5
entries -- enough for the system to be able to make progress even under
load.

Signed-off-by: Benjamin LaHaise <bcrl@kvack.org>
Acked-by: Jens Axboe <axboe@suse.de>
Cc: Matt Mackall <mpm@selenic.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/bio.c