From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753792Ab1HIACa (ORCPT ); Mon, 8 Aug 2011 20:02:30 -0400 Received: from mail-qy0-f181.google.com ([209.85.216.181]:39559 "EHLO mail-qy0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751525Ab1HIAC3 (ORCPT ); Mon, 8 Aug 2011 20:02:29 -0400 MIME-Version: 1.0 In-Reply-To: <20110808110659.31053.92935.stgit@localhost6> References: <20110808110658.31053.55013.stgit@localhost6> <20110808110659.31053.92935.stgit@localhost6> Date: Tue, 9 Aug 2011 09:02:28 +0900 Message-ID: Subject: Re: [PATCH 2/2] vmscan: activate executable pages after first usage From: Minchan Kim To: Konstantin Khlebnikov Cc: linux-mm@kvack.org, Andrew Morton , linux-kernel@vger.kernel.org, Wu Fengguang , KAMEZAWA Hiroyuki , Johannes Weiner Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 8, 2011 at 8:07 PM, Konstantin Khlebnikov wrote: > Logic added in commit v2.6.30-5507-g8cab475 > (vmscan: make mapped executable pages the first class citizen) > was noticeably weakened in commit v2.6.33-5448-g6457474 > (vmscan: detect mapped file pages used only once) > > Currently these pages can become "first class citizens" only after second usage. > > After this patch page_check_references() will activate they after first usage, > and executable code gets yet better chance to stay in memory. > > TODO: > run some cool tests like in v2.6.30-5507-g8cab475 =) > > Signed-off-by: Konstantin Khlebnikov > --- It might be a very controversial topic. AFAIR, at least, we did when vmscan: make mapped executable pages the first class citizen was merged. :) You try to change behavior. Old : protect *working set* executable page New: protect executable page *unconditionally*. At least, old logic can ignore some executable pages which are not accessed recently. Wu had many testing to persuade others. As you said, we need some number to change policy. -- Kind regards, Minchan Kim