diff options
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/vm/hwpoison.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Documentation/vm/hwpoison.txt b/Documentation/vm/hwpoison.txt index f454d3cd4d60..989e5afe740f 100644 --- a/Documentation/vm/hwpoison.txt +++ b/Documentation/vm/hwpoison.txt | |||
@@ -123,6 +123,22 @@ 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 | corrupt-filter-memcg | ||
127 | |||
128 | Limit injection to pages owned by memgroup. Specified by inode number | ||
129 | of the memcg. | ||
130 | |||
131 | Example: | ||
132 | mkdir /cgroup/hwpoison | ||
133 | |||
134 | usemem -m 100 -s 1000 & | ||
135 | echo `jobs -p` > /cgroup/hwpoison/tasks | ||
136 | |||
137 | memcg_ino=$(ls -id /cgroup/hwpoison | cut -f1 -d' ') | ||
138 | echo $memcg_ino > /debug/hwpoison/corrupt-filter-memcg | ||
139 | |||
140 | page-types -p `pidof init` --hwpoison # shall do nothing | ||
141 | page-types -p `pidof usemem` --hwpoison # poison its pages | ||
126 | 142 | ||
127 | corrupt-filter-flags-mask | 143 | corrupt-filter-flags-mask |
128 | corrupt-filter-flags-value | 144 | corrupt-filter-flags-value |