diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-05-22 08:04:40 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-05-22 08:04:40 -0700 |
| commit | d31d7a1874c710a5c1b589807d53f32d8e7df397 (patch) | |
| tree | 9723b8dcd4de65b8b5210c3081812608204cfd71 /include/linux/i2c-dev.h | |
| parent | c78b023ffcddf5868ec0bedc07942ac62c11154d (diff) | |
[PATCH] numa api: Add shared memory support
From: Andi Kleen <ak@suse.de>
Add support to tmpfs and hugetlbfs to support NUMA API. Shared memory is a
bit of a special case for NUMA policy. Normally policy is associated to VMAs
or to processes, but for a shared memory segment you really want to share the
policy. The core NUMA API has code for that, this patch adds the necessary
changes to tmpfs and hugetlbfs.
First it changes the custom swapping code in tmpfs to follow the policy set
via VMAs.
It is also useful to have a "backing store" of policy that saves the policy
even when nobody has the shared memory segment mapped. This allows command
line tools to pre configure policy, which is then later used by programs.
Note that hugetlbfs needs more changes - it is also required to switch it to
lazy allocation, otherwise the prefault prevents mbind() from working.
Diffstat (limited to 'include/linux/i2c-dev.h')
0 files changed, 0 insertions, 0 deletions
