[Top] [All Lists]

TAKE - pre-allocated buffer heads in pagebuf / OOM

Subject: TAKE - pre-allocated buffer heads in pagebuf / OOM
From: Eric Sandeen <sandeen@xxxxxxx>
Date: Mon, 27 Aug 2001 14:55:53 -0500
Sender: owner-linux-xfs@xxxxxxxxxxx
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
Workarea:  stout.americas.sgi.com:/localhome/eric/2.4.x-xfs/workarea

The following file(s) were checked into:

Modid:  2.4.x-xfs:slinx:101656a
linux/fs/pagebuf/page_buf.c - 1.98
        - Add pre-allocated buffer head pool for low memory situations

<Prev in Thread] Current Thread [Next in Thread>
  • TAKE - pre-allocated buffer heads in pagebuf / OOM, Eric Sandeen <=