linux/Documentation/ABI/testing
Andi Kleen facb6011f3 HWPOISON: Add soft page offline support
This is a simpler, gentler variant of memory_failure() for soft page
offlining controlled from user space.  It doesn't kill anything, just
tries to invalidate and if that doesn't work migrate the
page away.

This is useful for predictive failure analysis, where a page has
a high rate of corrected errors, but hasn't gone bad yet. Instead
it can be offlined early and avoided.

The offlining is controlled from sysfs, including a new generic
entry point for hard page offlining for symmetry too.

We use the page isolate facility to prevent re-allocation
race. Normally this is only used by memory hotplug. To avoid
races with memory allocation I am using lock_system_sleep().
This avoids the situation where memory hotplug is about
to isolate a page range and then hwpoison undoes that work.
This is a big hammer currently, but the simplest solution
currently.

When the page is not free or LRU we try to free pages
from slab and other caches. The slab freeing is currently
quite dumb and does not try to focus on the specific slab
cache which might own the page. This could be potentially
improved later.

Thanks to Fengguang Wu and Haicheng Li for some fixes.

[Added fix from Andrew Morton to adapt to new migrate_pages prototype]
Signed-off-by: Andi Kleen <ak@linux.intel.com>
2009-12-16 12:20:00 +01:00
..
debugfs-kmemtrace
debugfs-pktcdvd
ima_policy
procfs-diskstats tree-wide: fix assorted typos all over the place 2009-12-04 15:39:55 +01:00
sysfs-block tree-wide: fix assorted typos all over the place 2009-12-04 15:39:55 +01:00
sysfs-bus-css
sysfs-bus-pci
sysfs-bus-pci-devices-cciss
sysfs-bus-umc
sysfs-bus-usb USB: add remove_id sysfs attr for usb drivers 2009-12-11 11:55:26 -08:00
sysfs-bus-usb-devices-usbsevseg
sysfs-c2port
sysfs-class
sysfs-class-bdi
sysfs-class-lcd
sysfs-class-led
sysfs-class-mtd
sysfs-class-pktcdvd
sysfs-class-regulator
sysfs-class-uwb_rc
sysfs-class-uwb_rc-wusbhc USB: wusb: add wusb_phy_rate sysfs file to host controllers 2009-12-11 11:55:16 -08:00
sysfs-dev
sysfs-devices
sysfs-devices-memory mm: add numa node symlink for memory section in sysfs 2009-12-15 08:53:17 -08:00
sysfs-devices-system-cpu Documentation: ABI: /sys/devices/system/cpu/cpu#/node 2009-12-15 08:53:18 -08:00
sysfs-firmware-acpi
sysfs-firmware-memmap
sysfs-firmware-sgi_uv
sysfs-fs-ext4
sysfs-gpio
sysfs-ibft
sysfs-kernel-mm
sysfs-kernel-mm-hugepages
sysfs-kernel-slab
sysfs-kernel-uids
sysfs-memory-page-offline HWPOISON: Add soft page offline support 2009-12-16 12:20:00 +01:00
sysfs-ocfs2
sysfs-platform-asus-laptop
sysfs-platform-eeepc-laptop
sysfs-power
sysfs-pps
sysfs-profiling
sysfs-wusb_cbaf