XFS doesn't like asking for memory and not getting any.
This mod adds a pre-allocated pool of NR_RESERVED_BH (64) buffer heads
for pagebuf to use; if a normal buffer head allocation request fails,
it will draw from this pool to make sure XFS gets what it wants.
If the pool is empty, the process will sleep until some get returned
to the pool.
Even restricting XFS to _ONLY_ getting buffer heads from this pool,
a filesystem will still mount & pass a small fsstress run, so hopefully
this will be enough to get us out of sticky situations.
If people have been having XFS OOM problems, please give this a shot and
see if it helps.
Date: Mon Aug 27 12:48:45 PDT 2001
The following file(s) were checked into:
linux/fs/pagebuf/page_buf.c - 1.98
- Add pre-allocated buffer head pool for low memory situations