RFC powerpc/memtrace: Don't offline memory blocks via offline_pages()
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest3 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | powerpc/memtrace: Enforce power of 2 for memory buffer sizearch/ | +5 | 0 replies | |
| 2/3 | powerpc/memtrace: Factor out readding memory into memtrace_free_node()arch/ | +27 | 0 replies | |
| 3/3 | powerpc/memtrace: Don't offline memory blocks via offline_pages()arch/ arch/ | +112 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH RFC v1 0/3] powerpc/memtrace: Don't offline memory blocks via offline_pages()
This RFC is based on linux-next and
- 2 patches from "PATCH RFC v4 00/13] virtio-mem: paravirtualized memory" -> "mm: Allow to offline unmovable PageOffline() pages via
MEM_GOING_OFFLINE" [1]
-> "mm/memory_hotplug: Introduce offline_and_remove_memory()" [2]
- "mm/memory_hotplug: Don't free usage map when removing a re-added early section" [3]
A branch with all patches (kept updated) is available at:
https://github.com/davidhildenbrand/linux.git memtrace
Stop using offline_pages() to offline memory blocks. Allocate the memory blocks using alloc_contig_pages() first and offline+remove the allcoated memory blocks using a clean MM interface. Offlining of allocated memory is made possible by using PageOffline() in combination with a memory notifier (similar to virto-mem).
Note: In the future, we might want to switch to only removing/readding the page tables of the allocated memory (while still marking it PageOffline()). However, that might have other implications, and requires work from PPC people (IOW, I won't fiddle with that :) ).
[1] https://lkml.kernel.org/r/[email protected]
[2] https://lkml.kernel.org/r/[email protected]
[3] https://lkml.kernel.org/r/[email protected]
David Hildenbrand (3):
powerpc/memtrace: Enforce power of 2 for memory buffer size powerpc/memtrace: Factor out readding memory into memtrace_free_node() powerpc/memtrace: Don't offline memory blocks via offline_pages()
arch/powerpc/platforms/powernv/Kconfig | 1 + arch/powerpc/platforms/powernv/memtrace.c | 217 ++++++++++++++-------- 2 files changed, 136 insertions(+), 82 deletions(-)
Signature · 1 line
2.23.0