diff options
author | Wu Fengguang <fengguang.wu@intel.com> | 2009-12-16 06:19:59 -0500 |
---|---|---|
committer | Andi Kleen <ak@linux.intel.com> | 2009-12-16 06:19:59 -0500 |
commit | 478c5ffc0b50527bd2390f2daa46cc16276b8413 (patch) | |
tree | f58f5be9760fd0e81567611cf6e9f9bc77d1d3cd /Documentation/vm | |
parent | 1a9b5b7fe0c5dad8a635288882d36785dea742f9 (diff) |
HWPOISON: add page flags filter
When specified, only poison pages if ((page_flags & mask) == value).
- corrupt-filter-flags-mask
- corrupt-filter-flags-value
This allows stress testing of many kinds of pages.
Strictly speaking, the buddy pages requires taking zone lock, to avoid
setting PG_hwpoison on a "was buddy but now allocated to someone" page.
However we can just do nothing because we set PG_locked in the beginning,
this prevents the page allocator from allocating it to someone. (It will
BUG() on the unexpected PG_locked, which is fine for hwpoison testing.)
[AK: Add select PROC_PAGE_MONITOR to satisfy dependency]
CC: Nick Piggin <npiggin@suse.de>
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 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/vm/hwpoison.txt b/Documentation/vm/hwpoison.txt index 4ef7bb30d15c..f454d3cd4d60 100644 --- a/Documentation/vm/hwpoison.txt +++ b/Documentation/vm/hwpoison.txt | |||
@@ -123,6 +123,16 @@ Only handle memory failures to pages associated with the file system defined | |||
123 | by block device major/minor. -1U is the wildcard value. | 123 | by block device major/minor. -1U is the wildcard value. |
124 | This should be only used for testing with artificial injection. | 124 | This should be only used for testing with artificial injection. |
125 | 125 | ||
126 | |||
127 | corrupt-filter-flags-mask | ||
128 | corrupt-filter-flags-value | ||
129 | |||
130 | When specified, only poison pages if ((page_flags & mask) == value). | ||
131 | This allows stress testing of many kinds of pages. The page_flags | ||
132 | are the same as in /proc/kpageflags. The flag bits are defined in | ||
133 | include/linux/kernel-page-flags.h and documented in | ||
134 | Documentation/vm/pagemap.txt | ||
135 | |||
126 | Architecture specific MCE injector | 136 | Architecture specific MCE injector |
127 | 137 | ||
128 | x86 has mce-inject, mce-test | 138 | x86 has mce-inject, mce-test |