Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755857AbYFZAh2 (ORCPT ); Wed, 25 Jun 2008 20:37:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751628AbYFZAhP (ORCPT ); Wed, 25 Jun 2008 20:37:15 -0400 Received: from fgwmail6.fujitsu.co.jp ([192.51.44.36]:59229 "EHLO fgwmail6.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751893AbYFZAhN (ORCPT ); Wed, 25 Jun 2008 20:37:13 -0400 Date: Thu, 26 Jun 2008 09:36:01 +0900 From: KOSAKI Motohiro To: Peter Zijlstra Subject: Re: [RFC][PATCH] prevent incorrect oom under split_lru Cc: kosaki.motohiro@jp.fujitsu.com, MinChan Kim , Rik van Riel , linux-mm , LKML , Lee Schermerhorn , akpm@linux-foundation.org, Takenori Nagano In-Reply-To: <1214395885.15232.17.camel@twins> References: <28c262360806242356n3f7e02abwfee1f6acf0fd2c61@mail.gmail.com> <1214395885.15232.17.camel@twins> Message-Id: <20080626093338.FCF7.KOSAKI.MOTOHIRO@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.42 [ja] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1060 Lines: 30 > > But if such emergency happen in embedded system, application can't be > > executed for some time. > > I am not sure how long time it take. > > But In some application, schedule period is very important than memory > > reclaim latency. > > > > Now, In your patch, when such emergency happen, it continue to reclaim > > page until it will scan entire page of lru list. > > It > > IMHO embedded real-time apps shoud mlockall() and not do anything that > can result in memory allocations in their fast (deterministic) paths. Indeed. > The much more important case is desktop usage - that is where we run non > real-time code, but do expect 'low' latency due to user-interaction. > > >From hitting swap on my 512M laptop (rather frequent occurance) I know > we can do better here,.. nice suggestion. thanks. -- 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/