HomeFreeBSD

Remove default GFP_NOFS allocations

Description

Remove default GFP_NOFS allocations

As originally described in commit 82b8c8fa64737edfb203156b245b48840139d2c1
this was done to prevent certain deadlocks from occuring in the system.
However, as suspected the price for doing this proved to be too high.
The VM is having a hard time effectively reclaiming memory thus we are
reverting this change.

However, we still need to fundamentally handle the issue. Under
Solaris the KM_PUSHPAGE mask is used commonly in I/O paths to ensure
a memory allocations will succeed. We leverage this fact and redefine
KM_PUSHPAGE to include GFP_NOFS. This ensures that in these common
I/O path we don't trigger additional reclaim. This minimizes the
change to the Solaris code.

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Mar 19 2011, 8:49 PM
Parents
rG181a9b89988a: Prep spl-0.6.0-rc2 tag
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGcb255ae57278: Remove default GFP_NOFS allocations (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Mar 19 2011, 9:50 PM