From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750797AbXCOUcE (ORCPT ); Thu, 15 Mar 2007 16:32:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750872AbXCOUcE (ORCPT ); Thu, 15 Mar 2007 16:32:04 -0400 Received: from rhlx01.hs-esslingen.de ([129.143.116.10]:41251 "EHLO rhlx01.hs-esslingen.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750797AbXCOUcB (ORCPT ); Thu, 15 Mar 2007 16:32:01 -0400 Date: Thu, 15 Mar 2007 21:31:59 +0100 From: Andreas Mohr To: Nick Piggin Cc: Ashif Harji , Chuck Ebbert , linux-mm@kvack.org, Jan Kara , linux-kernel@vger.kernel.org, akpm@linux-foundation.org, Rik van Riel Subject: Re: [PATCH] mm/filemap.c: unconditionally call mark_page_accessed Message-ID: <20070315203159.GA15463@rhlx01.hs-esslingen.de> References: <20070312151355.GB23532@duck.suse.cz> <20070312173500.GF23532@duck.suse.cz> <20070313185554.GA5105@duck.suse.cz> <45F96CCB.4000709@redhat.com> <20070315162944.GI8321@wotan.suse.de> <20070315200739.GD19625@wotan.suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070315200739.GD19625@wotan.suse.de> User-Agent: Mutt/1.4.2.2i X-Priority: none Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, Mar 15, 2007 at 09:07:39PM +0100, Nick Piggin wrote: > Well in general we like to help applications that help themselves. It > is actually a good heuristic, surprisingly. If an application randomly > accesses the same page (and there is no write activity going on), then > it would be better off to cache it in userspace, and if it doesn't care > to do that then it won't mind having to read it off disk now and again :) Sounds like a good plan since this probably is a nice way to make stupid apps doing stupid things sit up and take notice, and maybe the authors will then go so far as fixing up a few more things that are hurting them once they actually recognize that something is weird due to overly bad performance. Why go to great lengths to support stupid apps when there are still so many things which could be done to help well-behaving ones? ;) Andreas Mohr