From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx139.postini.com [74.125.245.139]) by kanga.kvack.org (Postfix) with SMTP id D85356B004F for ; Mon, 19 Dec 2011 12:34:23 -0500 (EST) Received: by yhgm50 with SMTP id m50so2936606yhg.14 for ; Mon, 19 Dec 2011 09:34:23 -0800 (PST) Message-ID: <4EEF75A0.2080503@gmail.com> Date: Mon, 19 Dec 2011 12:34:24 -0500 From: KOSAKI Motohiro MIME-Version: 1.0 Subject: Re: Android low memory killer vs. memory pressure notifications References: <20111219025328.GA26249@oksana.dev.rtsoft.ru> <4EEF74AC.1060503@gmail.com> In-Reply-To: <4EEF74AC.1060503@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Anton Vorontsov Cc: KOSAKI Motohiro , =?UTF-8?B?QXJ2ZSBIag==?= =?UTF-8?B?w7hubmV2w6Vn?= , Rik van Riel , Pavel Machek , Greg Kroah-Hartman , Andrew Morton , David Rientjes , Michal Hocko , John Stultz , linux-mm@kvack.org, linux-kernel@vger.kernel.org >> + read_lock(&tasklist_lock); > > Crazy inefficient. mere slab shrinker shouldn't take tasklist_lock. > Imagine if tasks are much plenty... > > Moreover, if system have plenty file cache, any process shouldn't killed > at all! That's fundamental downside of this patch. In addition, this code is reused a lot of code of oom-killer. But it is bad idea. oom killer is really exceptional case. then it don't pay attention faster processing. But, no free memory is not rare. we don't have much free memory EVERY TIME. because we have file cache. -- 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/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org