[lkml]   [2009]   [Aug]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] replace various uses of num_physpages by totalram_pages
>>> Ingo Molnar <> 18.08.09 17:38 >>>
>* Jan Beulich <> wrote:
>> Sizing of memory allocations shouldn't depend on the number of
>> physical pages found in a system, as that generally includes
>> (perhaps a huge amount of) non-RAM pages. The amount of what
>> actually is usable as storage should instead be used as a basis
>> here.
>> Some of the calculations (i.e. those not intending to use high
>> memory) should likely even use (totalram_pages -
>> totalhigh_pages).
>> Signed-off-by: Jan Beulich <>
>> Acked-by: Rusty Russell <>
>> ---
>> arch/x86/kernel/microcode_core.c | 4 ++--
>Acked-by: Ingo Molnar <>
>Just curious: how did you find this bug? Did you find this by
>experiencing problems on a system with a lot of declared non-RAM

Actually, I noticed this on Xen (non-pv-ops) when booting a domain with
a sufficiently large initial balloon. Under that condition, booting would
frequently fail due to various table sizes being calculated way too large.


 \ /
  Last update: 2009-08-18 17:51    [from the cache]
©2003-2014 Jasper Spaans. hosted at Digital Ocean