Lines Matching +full:mode +full:- +full:recovery
11 (``MCA recovery``). This requires the OS to declare a page "poisoned",
43 The code consists of a the high level handler in mm/memory-failure.c,
48 of applications. KVM support requires a recent qemu-kvm release.
56 Failure recovery modes
59 There are two (actually three) modes memory failure recovery can be in:
62 All memory failures cause a panic. Do not attempt recovery.
71 This is the mode used by KVM qemu.
85 Enable early kill mode globally
88 Set early/late kill mode/revert to system default
93 arg2 defines thread specific mode
108 return current mode
113 * madvise(MADV_HWPOISON, ....) (as root) - Poison a page in the
116 * hwpoison-inject module through debugfs ``/sys/kernel/debug/hwpoison/``
118 corrupt-pfn
122 unpoison-pfn
123 Software-unpoison page at PFN echoed into this file. This way
130 corrupt-filter-dev-major, corrupt-filter-dev-minor
132 system defined by block device major/minor. -1U is the
136 corrupt-filter-memcg
144 usemem -m 100 -s 1000 &
145 echo `jobs -p` > /sys/fs/cgroup/mem/hwpoison/tasks
147 memcg_ino=$(ls -id /sys/fs/cgroup/mem/hwpoison | cut -f1 -d' ')
148 echo $memcg_ino > /debug/hwpoison/corrupt-filter-memcg
150 page-types -p `pidof init` --hwpoison # shall do nothing
151 page-types -p `pidof usemem` --hwpoison # poison its pages
153 corrupt-filter-flags-mask, corrupt-filter-flags-value
157 flag bits are defined in include/linux/kernel-page-flags.h and
158 documented in Documentation/admin-guide/mm/pagemap.rst
162 x86 has mce-inject, mce-test
164 Some portable hwpoison test programs in mce-test, see below.
169 http://halobates.de/mce-lc09-2.pdf
172 git://git.kernel.org/pub/scm/utils/cpu/mce/mce-test.git
175 git://git.kernel.org/pub/scm/utils/cpu/mce/mce-inject.git
181 - Not all page types are supported and never will. Most kernel internal
183 - Right now hugepage support is missing.
185 ---