[PATCH] fadump: Register the memory reserved by fadump

Srikar Dronamraju srikar at linux.vnet.ibm.com
Fri Aug 5 17:28:38 AEST 2016


* Michael Ellerman <mpe at ellerman.id.au> [2016-08-05 17:07:01]:

> Srikar Dronamraju <srikar at linux.vnet.ibm.com> writes:
> 
> > Fadump kernel reserves large chunks of memory even before the pages are
> > initialized. This could mean memory that corresponds to several nodes might
> > fall in memblock reserved regions.
> >
> ...
> > Register the memory reserved by fadump, so that the cache sizes are
> > calculated based on the free memory (i.e Total memory - reserved
> > memory).
> 
> The memory is reserved, with memblock_reserve(). Why is that not sufficient?
> 
> cheers
> 

Because at page initialization time, the kernel doesnt know how many
pages are reserved. One way to do that would be to walk through the
different memory reserved blocks and calculate the size. But Mel feels
thats an overhead (from his reply to the other thread) esp for just one
use case.

-- 
Thanks and Regards
Srikar Dronamraju



More information about the Linuxppc-dev mailing list