Re: [PATCH v2] mm: scale kswapd watermarks in proportion to memory

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

 



On Mon, Feb 22, 2016 at 08:36:33PM -0500, Rik van Riel wrote:
> On Mon, 2016-02-22 at 15:33 -0800, Johannes Weiner wrote:
> 
> > Beyond 1G of memory, this will produce bigger watermark steps than 
> 
> Is that supposed to be beyond 16GB?

The old formula formula is

  min = sqrt(kb * 16)
  low = min >> 2

and the new one is

  low = kb * 0.001

and

  sqrt(x/1024 * 16) >> 2 = x/1024 * 0.001

puts x at

  x = 1 << 30

Did I miss something?

> Acked-by: Rik van Riel <riel@xxxxxxxxxx>

Thanks!

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



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