lkml.org 
[lkml]   [2016]   [Feb]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] mm: scale kswapd watermarks in proportion to memory
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@redhat.com>

Thanks!

\
 
 \ /
  Last update: 2016-02-23 03:41    [W:0.145 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site