lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 6 Nov 2013 14:33:13 -0800
From:	Andrew Morton <akpm@...ux-foundation.org>
To:	Jerome Marchand <jmarchan@...hat.com>
Cc:	linux-mm@...ck.org, linux-kernel@...r.kernel.org,
	dave hansen <dave.hansen@...el.com>
Subject: Re: [PATCH v4 2/2] mm: allow to set overcommit ratio more precisely

On Wed, 6 Nov 2013 03:42:20 -0500 (EST) Jerome Marchand <jmarchan@...hat.com> wrote:

> 
> 
> ----- Original Message -----
> > From: "Andrew Morton" <akpm@...ux-foundation.org>
> > To: "Jerome Marchand" <jmarchan@...hat.com>
> > Cc: linux-mm@...ck.org, linux-kernel@...r.kernel.org, "dave hansen" <dave.hansen@...el.com>
> > Sent: Wednesday, November 6, 2013 12:53:19 AM
> > Subject: Re: [PATCH v4 2/2] mm: allow to set overcommit ratio more precisely
> > 
> > On Fri, 18 Oct 2013 14:56:59 +0200 Jerome Marchand <jmarchan@...hat.com>
> > wrote:
> > 
> > > Some applications that run on HPC clusters are designed around the
> > > availability of RAM and the overcommit ratio is fine tuned to get the
> > > maximum usage of memory without swapping. With growing memory, the 1%
> > > of all RAM grain provided by overcommit_ratio has become too coarse
> > > for these workload (on a 2TB machine it represents no less than
> > > 20GB).
> > > 
> > > This patch adds the new overcommit_ratio_ppm sysctl variable that
> > > allow to set overcommit ratio with a part per million precision.
> > > The old overcommit_ratio variable can still be used to set and read
> > > the ratio with a 1% precision. That way, overcommit_ratio interface
> > > isn't broken in any way that I can imagine.
> > 
> > The way we've permanently squished this mistake in the past is to
> > switch to "bytes".  See /proc/sys/vm/*bytes.
> > 
> > Would that approach work in this case?
> > 
> 
> That was my first version of this patch (actually "kbytes" to avoid
> overflow).
> Dave raised the issue that it silently breaks the user interface:
> overcommit_ratio is zero while the system behaves differently.

I don't understand that at all.  We keep overcommit_ratio as-is, with
the same default values and add a different way of altering it.  That
should be back-compatible?

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ