162306a36Sopenharmony_ciWhat: /sys/devices/system/memory/soft_offline_page 262306a36Sopenharmony_ciDate: Sep 2009 362306a36Sopenharmony_ciKernelVersion: 2.6.33 462306a36Sopenharmony_ciContact: andi@firstfloor.org 562306a36Sopenharmony_ciDescription: 662306a36Sopenharmony_ci Soft-offline the memory page containing the physical address 762306a36Sopenharmony_ci written into this file. Input is a hex number specifying the 862306a36Sopenharmony_ci physical address of the page. The kernel will then attempt 962306a36Sopenharmony_ci to soft-offline it, by moving the contents elsewhere or 1062306a36Sopenharmony_ci dropping it if possible. The kernel will then be placed 1162306a36Sopenharmony_ci on the bad page list and never be reused. 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ci The offlining is done in kernel specific granularity. 1462306a36Sopenharmony_ci Normally it's the base page size of the kernel, but 1562306a36Sopenharmony_ci this might change. 1662306a36Sopenharmony_ci 1762306a36Sopenharmony_ci The page must be still accessible, not poisoned. The 1862306a36Sopenharmony_ci kernel will never kill anything for this, but rather 1962306a36Sopenharmony_ci fail the offline. Return value is the size of the 2062306a36Sopenharmony_ci number, or a error when the offlining failed. Reading 2162306a36Sopenharmony_ci the file is not allowed. 2262306a36Sopenharmony_ci 2362306a36Sopenharmony_ciWhat: /sys/devices/system/memory/hard_offline_page 2462306a36Sopenharmony_ciDate: Sep 2009 2562306a36Sopenharmony_ciKernelVersion: 2.6.33 2662306a36Sopenharmony_ciContact: andi@firstfloor.org 2762306a36Sopenharmony_ciDescription: 2862306a36Sopenharmony_ci Hard-offline the memory page containing the physical 2962306a36Sopenharmony_ci address written into this file. Input is a hex number 3062306a36Sopenharmony_ci specifying the physical address of the page. The 3162306a36Sopenharmony_ci kernel will then attempt to hard-offline the page, by 3262306a36Sopenharmony_ci trying to drop the page or killing any owner or 3362306a36Sopenharmony_ci triggering IO errors if needed. Note this may kill 3462306a36Sopenharmony_ci any processes owning the page. The kernel will avoid 3562306a36Sopenharmony_ci to access this page assuming it's poisoned by the 3662306a36Sopenharmony_ci hardware. 3762306a36Sopenharmony_ci 3862306a36Sopenharmony_ci The offlining is done in kernel specific granularity. 3962306a36Sopenharmony_ci Normally it's the base page size of the kernel, but 4062306a36Sopenharmony_ci this might change. 4162306a36Sopenharmony_ci 4262306a36Sopenharmony_ci Return value is the size of the number, or a error when 4362306a36Sopenharmony_ci the offlining failed. 4462306a36Sopenharmony_ci Reading the file is not allowed. 45