From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754107AbZESIOe (ORCPT ); Tue, 19 May 2009 04:14:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750820AbZESIOX (ORCPT ); Tue, 19 May 2009 04:14:23 -0400 Received: from courier.cs.helsinki.fi ([128.214.9.1]:47019 "EHLO mail.cs.helsinki.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750727AbZESIOW (ORCPT ); Tue, 19 May 2009 04:14:22 -0400 Subject: Re: [PATCH 2/3] vmscan: make mapped executable pages the first class citizen From: Pekka Enberg To: Wu Fengguang Cc: Peter Zijlstra , Andrew Morton , LKML , Elladan , Nick Piggin , Johannes Weiner , Christoph Lameter , KOSAKI Motohiro , Rik van Riel , "tytso@mit.edu" , "linux-mm@kvack.org" , "minchan.kim@gmail.com" In-Reply-To: <20090519081238.GA2121@localhost> References: <20090516090005.916779788@intel.com> <20090516090448.410032840@intel.com> <84144f020905182339o5fb1e78eved95c4c20fd9ffa7@mail.gmail.com> <1242719063.26820.457.camel@twins> <1242720351.20986.0.camel@penberg-laptop> <20090519081238.GA2121@localhost> Date: Tue, 19 May 2009 11:14:22 +0300 Message-Id: <1242720862.20986.7.camel@penberg-laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Mailer: Evolution 2.24.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2009-05-19 at 16:12 +0800, Wu Fengguang wrote: > On Tue, May 19, 2009 at 04:05:51PM +0800, Pekka Enberg wrote: > > Hi Peter, > > > > On Tue, 2009-05-19 at 09:44 +0200, Peter Zijlstra wrote: > > > Its a sekrit conspiracy against bloat by making JIT'd crap run > > > slower :-) > > > > > > > > > Anyway, I just checked, we install tons of mono junk for _2_ > > > applications, f-spot and tomboy, both are shite and both have > > > alternatives not requiring this disease. > > > > > > > :-) > > > > On Tue, 2009-05-19 at 09:44 +0200, Peter Zijlstra wrote: > > > But seriously, like Kosaka-san already said, anonymous pages are treated > > > differently from file pages and should not suffer the same problems. > > > > OK, thanks for the explanation. The comment is a little bit misleading > > because I got the impression that we don't care about anon exec pages. > > Ah yes! Will this one dismiss the possible mis-interception? > > /* > * Identify referenced, file-backed active pages and > * give them one more trip around the active list. So > * that executable code get better chances to stay in > * memory under moderate memory pressure. Anon pages > modified ==> * are not likely to be evicted by use-once streaming > modified ==> * IO, plus JVM can create lots of anon VM_EXEC pages, > modified ==> * so we ignore them here. > */ > if ((vm_flags & VM_EXEC) && !PageAnon(page)) { > list_add(&page->lru, &l_active); > continue; > } Yes, it's better. Even I can understand it now :-). Pekka