Re: Question about the laziness of MADV_FREE

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

 



On Thu 29-11-18 20:21:49, Niklas Hambüchen wrote:
> Hello Michal,
> 
> thanks for the swift reply and patch!
> 
> > We batch multiple pages to become really lazyfree. This means that those
> > pages are sitting on a per-cpu list (see mark_page_lazyfree). So the
> > the number drift depends on the number of CPUs.
> 
> Is there an upper bound that I can rely on in order to judge how far off the accounting is (perhaps depending on the number of CPUs as you say)?
> For example, if the drift is bounded to, say 10%, that would probably be fine, while if it could be off by 2x or so, that would make system inspection tough.

>From a quick look it should be 15*number_of_cpus unless I have missed
other caching. So this shouldn't be all that much unless you have a
giant machine with hundreds of cpus.
-- 
Michal Hocko
SUSE Labs




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux