diff options
author | Brian Behlendorf <[email protected]> | 2011-03-29 18:08:59 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-04-07 09:52:10 -0700 |
commit | 7cb67b45f33fd7a61af24c675c7347eb5264b38c (patch) | |
tree | 519875ed0fdffbd9946299ca5b3eda533cda0623 /AUTHORS | |
parent | 1834f2d8b715d25bafbb0e4a099994f45c3211ae (diff) |
Add direct+indirect ARC reclaim
Under OpenSolaris all memory reclaim is done asyncronously. Under
Linux memory reclaim is done asynchronously _and_ synchronously.
When a process allocates memory with GFP_KERNEL it explicitly allows
the kernel to do reclaim on its behalf to satify the allocation.
If that GFP_KERNEL allocation fails the kernel may take more drastic
measures to reclaim the memory such as killing user space processes.
This was observed to happen with ZFS because the ARC could consume
a large fraction of the system memory but no synchronous reclaim
could be performed on it. The result was GFP_KERNEL allocations
could fail resulting in OOM events, and only moments latter the
arc_reclaim thread would free unused memory from the ARC.
This change leaves the arc_thread in place to manage the fundamental
ARC behavior. But it adds a synchronous (direct) reclaim path for
the ARC which can be called when memory is badly needed. It also
adds an asynchronous (indirect) reclaim path which is called
much more frequently to prune the ARC slab caches.
Diffstat (limited to 'AUTHORS')
0 files changed, 0 insertions, 0 deletions