Re: [PATCH] Fix NUMA node sizing in nr_free_zone_pages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>> We are iterating over all nodes in nr_free_zone_pages(). Because the 
>>  fallback zonelists contain all nodes in the system, and we walk all
>>  the zonelists, we're counting memory multiple times (once for each
>>  node). This caused us to make a size estimate of 32GB for an 8GB
>>  AMD64 box, which makes all the dirty ratio calculations, etc incorrect.
>> 
>>  There's still a further bug to fix from e820 holes causing overestimation
>>  as well, but this fix is separate, and good as is, and fixes one class
>>  of problems. Problem found by Badari, and tested by Ram Pai - thanks!
> 
> Alas my non-NUMA EMT64 box still gets it wrong.
> 
> nr_free_pagecache_pages() is still returning 1572864 on a 4G box.

Yeah, it will do - is the e820 bug I mentioned above. Patch is half-written,
will finish it off ASAP, but I'll be out today ;-(

M.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux