diff options
author | Wu Fengguang <fengguang.wu@intel.com> | 2009-12-16 06:19:58 -0500 |
---|---|---|
committer | Andi Kleen <ak@linux.intel.com> | 2009-12-16 06:19:58 -0500 |
commit | 847ce401df392b0704369fd3f75df614ac1414b4 (patch) | |
tree | 7c5021386dedea0d12f8a05b00c5267c4d28e426 /Documentation/vm | |
parent | 8d22ba1b74aa9420b6032d856446564fb21f8090 (diff) |
HWPOISON: Add unpoisoning support
The unpoisoning interface is useful for stress testing tools to
reclaim poisoned pages (to prevent OOM)
There is no hardware level unpoisioning, so this
cannot be used for real memory errors, only for software injected errors.
Note that it may leak pages silently - those who have been removed from
LRU cache, but not isolated from page cache/swap cache at hwpoison time.
Especially the stress test of dirty swap cache pages shall reboot system
before exhausting memory.
AK: Fix comments, add documentation, add printks, rename symbol
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'Documentation/vm')
-rw-r--r-- | Documentation/vm/hwpoison.txt | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/Documentation/vm/hwpoison.txt b/Documentation/vm/hwpoison.txt index 3ffadf8da61f..f047e75acb23 100644 --- a/Documentation/vm/hwpoison.txt +++ b/Documentation/vm/hwpoison.txt | |||
@@ -98,10 +98,22 @@ madvise(MADV_POISON, ....) | |||
98 | 98 | ||
99 | 99 | ||
100 | hwpoison-inject module through debugfs | 100 | hwpoison-inject module through debugfs |
101 | /sys/debug/hwpoison/corrupt-pfn | ||
102 | 101 | ||
103 | Inject hwpoison fault at PFN echoed into this file | 102 | /sys/debug/hwpoison/ |
104 | 103 | ||
104 | corrupt-pfn | ||
105 | |||
106 | Inject hwpoison fault at PFN echoed into this file. | ||
107 | |||
108 | unpoison-pfn | ||
109 | |||
110 | Software-unpoison page at PFN echoed into this file. This | ||
111 | way a page can be reused again. | ||
112 | This only works for Linux injected failures, not for real | ||
113 | memory failures. | ||
114 | |||
115 | Note these injection interfaces are not stable and might change between | ||
116 | kernel versions | ||
105 | 117 | ||
106 | Architecture specific MCE injector | 118 | Architecture specific MCE injector |
107 | 119 | ||