0001 What: /sys/devices/system/memory/soft_offline_page
0002 Date: Sep 2009
0003 KernelVersion: 2.6.33
0004 Contact: andi@firstfloor.org
0005 Description:
0006 Soft-offline the memory page containing the physical address
0007 written into this file. Input is a hex number specifying the
0008 physical address of the page. The kernel will then attempt
0009 to soft-offline it, by moving the contents elsewhere or
0010 dropping it if possible. The kernel will then be placed
0011 on the bad page list and never be reused.
0012
0013 The offlining is done in kernel specific granuality.
0014 Normally it's the base page size of the kernel, but
0015 this might change.
0016
0017 The page must be still accessible, not poisoned. The
0018 kernel will never kill anything for this, but rather
0019 fail the offline. Return value is the size of the
0020 number, or a error when the offlining failed. Reading
0021 the file is not allowed.
0022
0023 What: /sys/devices/system/memory/hard_offline_page
0024 Date: Sep 2009
0025 KernelVersion: 2.6.33
0026 Contact: andi@firstfloor.org
0027 Description:
0028 Hard-offline the memory page containing the physical
0029 address written into this file. Input is a hex number
0030 specifying the physical address of the page. The
0031 kernel will then attempt to hard-offline the page, by
0032 trying to drop the page or killing any owner or
0033 triggering IO errors if needed. Note this may kill
0034 any processes owning the page. The kernel will avoid
0035 to access this page assuming it's poisoned by the
0036 hardware.
0037
0038 The offlining is done in kernel specific granuality.
0039 Normally it's the base page size of the kernel, but
0040 this might change.
0041
0042 Return value is the size of the number, or a error when
0043 the offlining failed.
0044 Reading the file is not allowed.