From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761959AbZEGRNe (ORCPT ); Thu, 7 May 2009 13:13:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756127AbZEGRNZ (ORCPT ); Thu, 7 May 2009 13:13:25 -0400 Received: from mx2.redhat.com ([66.187.237.31]:51420 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755523AbZEGRNY (ORCPT ); Thu, 7 May 2009 13:13:24 -0400 Message-ID: <4A03164D.90203@redhat.com> Date: Thu, 07 May 2009 13:11:41 -0400 From: Rik van Riel User-Agent: Thunderbird 2.0.0.21 (X11/20090320) MIME-Version: 1.0 To: Christoph Lameter CC: Lee Schermerhorn , Peter Zijlstra , Wu Fengguang , Andrew Morton , "linux-kernel@vger.kernel.org" , "tytso@mit.edu" , "linux-mm@kvack.org" , Elladan , Nick Piggin , Johannes Weiner , KOSAKI Motohiro Subject: Re: [PATCH -mm] vmscan: make mapped executable pages the first class citizen References: <20090430072057.GA4663@eskimo.com> <20090430174536.d0f438dd.akpm@linux-foundation.org> <20090430205936.0f8b29fc@riellaptop.surriel.com> <20090430181340.6f07421d.akpm@linux-foundation.org> <20090430215034.4748e615@riellaptop.surriel.com> <20090430195439.e02edc26.akpm@linux-foundation.org> <49FB01C1.6050204@redhat.com> <20090501123541.7983a8ae.akpm@linux-foundation.org> <20090503031539.GC5702@localhost> <1241432635.7620.4732.camel@twins> <20090507121101.GB20934@localhost> <1241705702.11251.156.camel@twins> <1241712000.18617.7.camel@lts-notebook> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christoph Lameter wrote: > We need some way to control this. If there would be a way to simply switch > off eviction of exec pages (via /proc/sys/vm/never_reclaim_exec_pages or > so) I'd use it. Nobody (except you) is proposing that we completely disable the eviction of executable pages. I believe that your idea could easily lead to a denial of service attack, with a user creating a very large executable file and mmaping it. Giving executable pages some priority over other file cache pages is nowhere near as dangerous wrt. unexpected side effects and should work just as well.