From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail172.messagelabs.com (mail172.messagelabs.com [216.82.254.3]) by kanga.kvack.org (Postfix) with SMTP id B65E26B007E for ; Tue, 27 Oct 2009 02:57:36 -0400 (EDT) Received: by ywh26 with SMTP id 26so10552246ywh.12 for ; Mon, 26 Oct 2009 23:57:35 -0700 (PDT) Date: Tue, 27 Oct 2009 15:56:59 +0900 From: Minchan Kim Subject: Re: Memory overcommit Message-Id: <20091027155659.bed644ce.minchan.kim@barrios-desktop> In-Reply-To: <20091027154429.E2A4.A69D9226@jp.fujitsu.com> References: <2f11576a0910262310g7aea23c0n9bfc84c900879d45@mail.gmail.com> <20091027153429.b36866c4.minchan.kim@barrios-desktop> <20091027154429.E2A4.A69D9226@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: owner-linux-mm@kvack.org To: KOSAKI Motohiro Cc: Minchan Kim , KAMEZAWA Hiroyuki , vedran.furac@gmail.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org List-ID: On Tue, 27 Oct 2009 15:46:36 +0900 (JST) KOSAKI Motohiro wrote: > > > > %check_badness.pl | sort -n | tail > > > > -- > > > > 89924 A 3938 A A mixer_applet2 > > > > 90210 A 3942 A A tomboy > > > > 94753 A 3936 A A clock-applet > > > > 101994 A 3919 A A pulseaudio > > > > 113525 A 4028 A A gnome-terminal > > > > 127340 A 1 A A A init > > > > 128177 A 3871 A A nautilus > > > > 151003 A 11515 A bash > > > > 256944 A 11653 A mmap > > > > 425561 A 3829 A A gnome-session > > > > -- > > > > Sigh, gnome-session has twice value of mmap(1G). > > > > Of course, gnome-session only uses 6M bytes of anon. > > > > I wonder this is because gnome-session has many children..but need to > > > > dig more. Does anyone has idea ? > > > > (CCed kosaki) > > > > > > Following output address the issue. > > > The fact is, modern desktop application linked pretty many library. it > > > makes bloat VSS size and increase > > > OOM score. > > > > > > Ideally, We shouldn't account evictable file-backed mappings for oom_score. > > > > > Hmm. > > I wonder why we consider VM size for OOM kiling. > > How about RSS size? > > Because, swap out-ed bad body (e.g. fork bomb process) still should > be killed by oom. > RSS + swap-entries is acceptable to me. It's reasonable to me. As I mentioned by reply of kame, in Vedran case, he didn't use swap. I think only considering vm is the problem. -- Kind regards, Minchan Kim -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org