18c2ecf20Sopenharmony_ciWhat: /sys/devices/system/memory/soft_offline_page 28c2ecf20Sopenharmony_ciDate: Sep 2009 38c2ecf20Sopenharmony_ciKernelVersion: 2.6.33 48c2ecf20Sopenharmony_ciContact: andi@firstfloor.org 58c2ecf20Sopenharmony_ciDescription: 68c2ecf20Sopenharmony_ci Soft-offline the memory page containing the physical address 78c2ecf20Sopenharmony_ci written into this file. Input is a hex number specifying the 88c2ecf20Sopenharmony_ci physical address of the page. The kernel will then attempt 98c2ecf20Sopenharmony_ci to soft-offline it, by moving the contents elsewhere or 108c2ecf20Sopenharmony_ci dropping it if possible. The kernel will then be placed 118c2ecf20Sopenharmony_ci on the bad page list and never be reused. 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci The offlining is done in kernel specific granuality. 148c2ecf20Sopenharmony_ci Normally it's the base page size of the kernel, but 158c2ecf20Sopenharmony_ci this might change. 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci The page must be still accessible, not poisoned. The 188c2ecf20Sopenharmony_ci kernel will never kill anything for this, but rather 198c2ecf20Sopenharmony_ci fail the offline. Return value is the size of the 208c2ecf20Sopenharmony_ci number, or a error when the offlining failed. Reading 218c2ecf20Sopenharmony_ci the file is not allowed. 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ciWhat: /sys/devices/system/memory/hard_offline_page 248c2ecf20Sopenharmony_ciDate: Sep 2009 258c2ecf20Sopenharmony_ciKernelVersion: 2.6.33 268c2ecf20Sopenharmony_ciContact: andi@firstfloor.org 278c2ecf20Sopenharmony_ciDescription: 288c2ecf20Sopenharmony_ci Hard-offline the memory page containing the physical 298c2ecf20Sopenharmony_ci address written into this file. Input is a hex number 308c2ecf20Sopenharmony_ci specifying the physical address of the page. The 318c2ecf20Sopenharmony_ci kernel will then attempt to hard-offline the page, by 328c2ecf20Sopenharmony_ci trying to drop the page or killing any owner or 338c2ecf20Sopenharmony_ci triggering IO errors if needed. Note this may kill 348c2ecf20Sopenharmony_ci any processes owning the page. The kernel will avoid 358c2ecf20Sopenharmony_ci to access this page assuming it's poisoned by the 368c2ecf20Sopenharmony_ci hardware. 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ci The offlining is done in kernel specific granuality. 398c2ecf20Sopenharmony_ci Normally it's the base page size of the kernel, but 408c2ecf20Sopenharmony_ci this might change. 418c2ecf20Sopenharmony_ci 428c2ecf20Sopenharmony_ci Return value is the size of the number, or a error when 438c2ecf20Sopenharmony_ci the offlining failed. 448c2ecf20Sopenharmony_ci Reading the file is not allowed. 45