Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764727AbZAONkg (ORCPT ); Thu, 15 Jan 2009 08:40:36 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1761874AbZAONkI (ORCPT ); Thu, 15 Jan 2009 08:40:08 -0500 Received: from wf-out-1314.google.com ([209.85.200.169]:35619 "EHLO wf-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1764922AbZAONkG convert rfc822-to-8bit (ORCPT ); Thu, 15 Jan 2009 08:40:06 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=XU6gBZ7SK9eNzOPl0JyhA64BvDIa/ndRQIIl5RWWr4SRDQ6h1sw2EcYE5lryvtXiz4 UTZqzeyqc7x+dl7DYPXHpXmVr0JR4WRM1X95Kl9Ywx2q5vuVayFMQFdzRqV3aBfFBtiq a4xDDbPkHSxQ9vwJEHnyqW88wmElgOj5Zaxo8= MIME-Version: 1.0 In-Reply-To: <20090115001224.GC11328@kroah.com> References: <20090114010223.GA21380@kroah.com> <20090114021801.GA14759@bulgaria.corp.google.com> <20090114035237.GB16442@kroah.com> <20090114104307.GA20451@elf.ucw.cz> <20090114104834.18387fca@lxorguk.ukuu.org.uk> <20090114231739.GB24111@kroah.com> <20090115001224.GC11328@kroah.com> Date: Thu, 15 Jan 2009 19:02:48 +0530 Message-ID: <5d5443650901150532r20a4c25q834afadde2f98a3@mail.gmail.com> Subject: Re: lowmemory android driver not needed? From: Trilok Soni To: Greg KH Cc: =?ISO-8859-1?Q?Arve_Hj=F8nnev=E5g?= , Alan Cox , Pavel Machek , Brian Swetland , arve@google.com, San Mehat , Robert Love , linux-kernel@vger.kernel.org, "linux-omap@vger.kernel.org" , Tony Lindgren , =?ISO-8859-1?Q?ext_Juha_Yrj=F6l=E4?= , viktor.rosendahl@nokia.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1862 Lines: 41 Hi Greg, On Thu, Jan 15, 2009 at 5:42 AM, Greg KH wrote: > On Wed, Jan 14, 2009 at 03:32:38PM -0800, Arve Hj?nnev?g wrote: >> On Wed, Jan 14, 2009 at 3:17 PM, Greg KH wrote: >> >> We actually use 6 different thresholds for killing processes. I don't >> >> know what all the classes are, processes with a higher oom_adj value >> >> can be killed with less impact to the user than processes with a lower >> >> oom_adj value. The first few classes only affect latency when >> >> switching apps, but later classes stop non critical background >> >> services and finally the foreground app. Another reason to not kill >> >> every process at the same threshold is that memory may not be free >> >> immediately when the process is killed. >> > >> > But the lowmemorykiller android module doesn't have anything to do with >> > this, right? >> > >> >> It does. We write the thresholds to >> /sys/module/lowmemorykiller/parameters/adj and >> /sys/module/lowmemorykiller/parameters/minfree then set the oom_adj >> value per process. If the standard oom killer can be adjusted in a >> similar way, then we will not need the lowmemorykiller module. > > Great, care to document this somewhere so people like me don't get > confused? And there is one more lowmem driver developed by Nokia for Nokia 8xx tablets it seems. CCed Tony Lindgren, Juha and Viktor. http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=blob;f=security/lowmem.c;h=ae78a530af39703e335ad769f1e6f097f63ec6dd;hb=HEAD -- ---Trilok Soni http://triloksoni.wordpress.com http://www.linkedin.com/in/triloksoni -- 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/