From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753057AbcEMOPU (ORCPT ); Fri, 13 May 2016 10:15:20 -0400 Received: from smtpoutz28.laposte.net ([194.117.213.103]:39762 "EHLO smtp.laposte.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752821AbcEMOPS (ORCPT ); Fri, 13 May 2016 10:15:18 -0400 Message-ID: <5735E171.3050407@laposte.net> Date: Fri, 13 May 2016 16:15:13 +0200 From: Sebastian Frias User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Michal Hocko , Mason CC: linux-mm@kvack.org, Andrew Morton , Linus Torvalds , LKML Subject: Re: [PATCH] mm: add config option to select the initial overcommit mode References: <5731CC6E.3080807@laposte.net> <20160513080458.GF20141@dhcp22.suse.cz> <573593EE.6010502@free.fr> <20160513095230.GI20141@dhcp22.suse.cz> <5735AA0E.5060605@free.fr> <20160513114429.GJ20141@dhcp22.suse.cz> <5735C567.6030202@free.fr> <20160513140128.GQ20141@dhcp22.suse.cz> In-Reply-To: <20160513140128.GQ20141@dhcp22.suse.cz> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-VR-SrcIP: 83.142.147.193 X-VR-FullState: 0 X-VR-Score: -100 X-VR-Cause-1: gggruggvucftvghtrhhoucdtuddrfeekledrvddugdejfecutefuodetggdotefrodftvfcurfhrohhf X-VR-Cause-2: ihhlvgemucfntefrqffuvffgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhs X-VR-Cause-3: ucdlqddutddtmdenucfjughrpefkfffhfgggvffufhgjtgfgsehtjegrtddtfeehnecuhfhrohhmpefu X-VR-Cause-4: vggsrghsthhirghnucfhrhhirghsuceoshhfkeegsehlrghpohhsthgvrdhnvghtqeenucfkphepkeef X-VR-Cause-5: rddugedvrddugeejrdduleefnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghloheplgdu X-VR-Cause-6: jedvrddvjedrtddrvddugegnpdhinhgvthepkeefrddugedvrddugeejrdduleefpdhmrghilhhfrhho X-VR-Cause-7: mhepshhfkeegsehlrghpohhsthgvrdhnvghtpdhrtghpthhtohepmhhhohgtkhhosehkvghrnhgvlhdr X-VR-Cause-8: ohhrgh X-VR-AvState: No X-VR-State: 0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Michal, On 05/13/2016 04:01 PM, Michal Hocko wrote: > On Fri 13-05-16 14:15:35, Mason wrote: >> On 13/05/2016 13:44, Michal Hocko wrote: >> >>> Anyway, this is my laptop where I do not run anything really special >>> (xfce, browser, few consoles, git, mutt): >>> $ grep Commit /proc/meminfo >>> CommitLimit: 3497288 kB >>> Committed_AS: 3560804 kB >>> >>> I am running with the default overcommit setup so I do not care about >>> the limit but the Committed_AS will tell you how much is actually >>> committed. I am definitelly not out of memory: >>> $ free >>> total used free shared buff/cache available >>> Mem: 3922584 1724120 217336 105264 1981128 2036164 >>> Swap: 1535996 386364 1149632 >> >> I see. Thanks for the data point. >> >> I had a different type of system in mind. >> 256 to 512 MB of RAM, no swap. >> Perhaps Sebastian's choice could be made to depend on CONFIG_EMBEDDED, >> rather than CONFIG_EXPERT? > > Even if the overcommit behavior is different on those systems the > primary question hasn't been answered yet. Why cannot this be done from > the userspace? In other words what wouldn't work properly? > You are right, and I said that since the beginning, nothing prevents the userspace from doing it. But it'd be interesting to know the history of this option, for example, why it is left for userspace. Are there systems that dynamically change this setting? Best regards, Sebastian