On Tue 01-08-23 10:11:13, Aneesh Kumar K.V wrote: [...] > + if (mode == MEMMAP_ON_MEMORY_FORCE) { > + unsigned long memmap_pages = memory_block_memmap_on_memory_pages(); unsigned long wastage = memmap_pages - PFN_UP(memory_block_memmap_size()); if (wastage) pr_info_once("memmap_on_memory=force will waste %ld pages in each memory block %ld\n", wastage, memory_block_size_bytes() >> PAGE_SHIFT); would be more useful IMHO. > + > + pr_info_once("Memory hotplug will waste %ld pages in each memory block\n", > + memmap_pages - PFN_UP(memory_block_memmap_size())); -- Michal Hocko SUSE Labs