Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754314Ab0A0HJn (ORCPT ); Wed, 27 Jan 2010 02:09:43 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754212Ab0A0HJm (ORCPT ); Wed, 27 Jan 2010 02:09:42 -0500 Received: from mail-px0-f182.google.com ([209.85.216.182]:44312 "EHLO mail-px0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751728Ab0A0HJl (ORCPT ); Wed, 27 Jan 2010 02:09:41 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Dk0JlNo3jBTGF9EiJ6e8SyaQVA5raoWHJKgZUq9H7in0ejBciw3e46lauJan5VFlGn MnIqRQuFNFD2Gz9iUv1ngCYKpkeqlTLoJ2lIRmOO+gFm8Inm5fLZAAXABMob7WQgunsg My8xaTIuGZfaBXHPgeWmZ0kQijWnstxw7Zxnw= MIME-Version: 1.0 In-Reply-To: <20100121054734.GC24236@localhost> References: <20100120215536.GN27212@frostnet.net> <20100121054734.GC24236@localhost> Date: Wed, 27 Jan 2010 16:09:40 +0900 Message-ID: <28c262361001262309x332a895aoa906dda0bc040859@mail.gmail.com> Subject: Re: [PATCH] mm/readahead.c: update the LRU positions of in-core pages, too From: Minchan Kim To: Wu Fengguang Cc: Chris Frost , Andrew Morton , Steve Dickson , David Howells , Xu Chenfeng , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Steve VanDeBogart Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1697 Lines: 45 Hi, Wu. I have missed this thread until now. Before review, first of all, Thanks for adding to good feature, Chris and Wu. I have some questions. 2010/1/21 Wu Fengguang : > Years ago I wrote a similar function, which can be called for both > in-kernel-readahead (when it decides not to bring in new pages, but > only retain existing pages) and fadvise-readahead (where it want to > read new pages as well as retain existing pages). Why doesn't it merged into mainline? It's private patch or has some problem? Actually I am worried about this patch. That's because it makes shortcut promotion in reclaim exceptionally. Of course If readahead is working well, this patch effect also would be good. But let's think about it. This patch effect happens when inactive file list is small, I think. It means it's high memory pressure. so if we move ra pages into head of inactive list, other application which require free page urgently suffer from latency or are killed. If VM don't have this patch, of course ra pages are discarded and then I/O performance would be bad. but as I mentioned, it's time high memory pressure. so I/O performance low makes system natural throttling. It can help out of system memory pressure. In summary I think it's good about viewpoint of I/O but I am not sure it's good about viewpoint of system. I will review this patch after my concern is solved. :) Thanks. -- Kind regards, Minchan Kim -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/