From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755757AbZENQbx (ORCPT ); Thu, 14 May 2009 12:31:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752137AbZENQbo (ORCPT ); Thu, 14 May 2009 12:31:44 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:51183 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751909AbZENQbn (ORCPT ); Thu, 14 May 2009 12:31:43 -0400 Date: Thu, 14 May 2009 09:30:50 -0700 From: Andrew Morton To: MinChan Kim Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, kosaki.motohiro@jp.fujitsu.com, hannes@cmpxchg.org, riel@redhat.com Subject: Re: [PATCH] mmtom: Prevent shrinking of active anon lru list in case of no swap space V3 Message-Id: <20090514093050.43472421.akpm@linux-foundation.org> In-Reply-To: <20090514231555.f52c81eb.minchan.kim@gmail.com> References: <20090514231555.f52c81eb.minchan.kim@gmail.com> X-Mailer: Sylpheed version 2.2.4 (GTK+ 2.8.20; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 14 May 2009 23:15:55 +0900 MinChan Kim wrote: > Now shrink_zone can deactivate active anon pages even if we don't have a swap device. > Many embedded products don't have a swap device. So the deactivation of anon pages is unnecessary. Does shrink_list() need to scan the anon LRUs at all if there's no swap online?