Files
kernel_xiaomi_sm8250/include/linux
Paul Jackson 101a50019a [PATCH] cpuset memory spread slab cache implementation
Provide the slab cache infrastructure to support cpuset memory spreading.

See the previous patches, cpuset_mem_spread, for an explanation of cpuset
memory spreading.

This patch provides a slab cache SLAB_MEM_SPREAD flag.  If set in the
kmem_cache_create() call defining a slab cache, then any task marked with the
process state flag PF_MEMSPREAD will spread memory page allocations for that
cache over all the allowed nodes, instead of preferring the local (faulting)
node.

On systems not configured with CONFIG_NUMA, this results in no change to the
page allocation code path for slab caches.

On systems with cpusets configured in the kernel, but the "memory_spread"
cpuset option not enabled for the current tasks cpuset, this adds a call to a
cpuset routine and failed bit test of the processor state flag PF_SPREAD_SLAB.

For tasks so marked, a second inline test is done for the slab cache flag
SLAB_MEM_SPREAD, and if that is set and if the allocation is not
in_interrupt(), this adds a call to to a cpuset routine that computes which of
the tasks mems_allowed nodes should be preferred for this allocation.

==> This patch adds another hook into the performance critical
    code path to allocating objects from the slab cache, in the
    ____cache_alloc() chunk, below.  The next patch optimizes this
    hook, reducing the impact of the combined mempolicy plus memory
    spreading hooks on this critical code path to a single check
    against the tasks task_struct flags word.

This patch provides the generic slab flags and logic needed to apply memory
spreading to a particular slab.

A subsequent patch will mark a few specific slab caches for this placement
policy.

Signed-off-by: Paul Jackson <pj@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-03-24 07:33:23 -08:00
..
2006-03-21 08:52:18 -08:00
2006-02-22 09:32:46 +00:00
2006-01-18 19:20:24 -08:00
2006-01-13 16:29:56 -08:00
2006-03-20 22:35:41 -08:00
2006-01-13 09:12:21 -08:00
2006-03-24 07:33:20 -08:00
2006-02-03 08:32:00 -08:00
2006-03-23 07:38:09 -08:00
2006-02-11 21:41:11 -08:00
2006-03-20 13:42:59 -08:00
2006-03-22 10:53:19 +01:00
2006-01-18 19:20:29 -08:00
2006-01-14 18:27:09 -08:00
2006-03-20 17:09:11 -08:00
2006-03-20 22:41:23 -08:00
2006-02-01 08:53:13 -08:00
2006-02-08 01:03:52 -05:00
2006-03-20 22:21:10 -08:00
2006-02-10 08:13:12 -08:00
2006-03-20 13:42:59 -08:00
2006-03-23 07:38:12 -08:00
2006-03-22 19:13:54 -05:00
2006-03-23 07:38:12 -08:00
2006-03-22 07:54:06 -08:00
2006-03-22 07:53:57 -08:00
2006-03-22 07:54:02 -08:00
2006-01-18 19:20:29 -08:00
2006-03-23 07:38:13 -08:00
2006-03-23 07:38:14 -08:00
2006-03-23 07:38:14 -08:00
2006-01-14 18:27:12 -08:00
2006-03-20 22:32:28 -08:00
2006-03-08 14:14:01 -08:00
2006-01-15 02:12:54 +01:00
2006-03-23 07:38:11 -08:00
2006-03-22 07:53:55 -08:00
2006-03-20 22:41:23 -08:00
2006-03-23 07:38:12 -08:00
2006-01-14 18:27:13 -08:00
2006-03-20 22:41:23 -08:00
2006-03-23 07:38:07 -08:00
2006-02-11 21:41:11 -08:00
2006-01-12 14:06:38 -08:00
2006-01-18 19:20:17 -08:00
2006-03-23 07:38:16 -08:00
2006-03-23 07:38:11 -08:00
2006-02-01 08:53:13 -08:00
2006-03-23 07:38:14 -08:00
2006-03-21 08:52:18 -08:00
2006-03-23 07:12:57 -05:00