Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750922Ab3IFIjB (ORCPT ); Fri, 6 Sep 2013 04:39:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59721 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750727Ab3IFIi7 (ORCPT ); Fri, 6 Sep 2013 04:38:59 -0400 Message-ID: <5229949C.6090904@redhat.com> Date: Fri, 06 Sep 2013 10:38:52 +0200 From: Jerome Marchand User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: Pavel Machek CC: Dave Hansen , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2 v2] mm: allow to set overcommit ratio more precisely References: <1376925478-15506-1-git-send-email-jmarchan@redhat.com> <1376925478-15506-2-git-send-email-jmarchan@redhat.com> <52287E66.9010107@redhat.com> <52289824.20000@intel.com> <5228999B.8010300@redhat.com> <20130905221140.GA29867@amd.pavel.ucw.cz> In-Reply-To: <20130905221140.GA29867@amd.pavel.ucw.cz> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1274 Lines: 30 On 09/06/2013 12:11 AM, Pavel Machek wrote: > hi! > >>>> 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. >>> >>> Looks like a pretty sane solution. Could you also make a Documentation/ >>> update, please? >> >> Damn! I forgot. Will do. > > Actually... would something like overcommit_bytes be better interface? overcommit_pages? > > If system would normally allow allocating "n" pages, with overcommit > it would allow allocating "n + overcommit_pages" pages. That seems > like right granularity... > I don't know what do you mean by "normally". Anyway, I've considered that option: my concern about mixing absolute and proportional values is that they would diverge if the amount of ram varies (e.g. memory hotplug or virt baloon driver). -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/