Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755026Ab0KXAN5 (ORCPT ); Tue, 23 Nov 2010 19:13:57 -0500 Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]:49907 "EHLO fgwmail5.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753622Ab0KXAN4 (ORCPT ); Tue, 23 Nov 2010 19:13:56 -0500 X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.3.1 From: KOSAKI Motohiro To: Ben Gamari Subject: Re: [RFC 1/2] deactive invalidated pages Cc: kosaki.motohiro@jp.fujitsu.com, Minchan Kim , Andrew Morton , linux-mm , LKML , Peter Zijlstra , Rik van Riel , Johannes Weiner , Nick Piggin In-Reply-To: <87hbf89jfk.fsf@gmail.com> References: <20101122143817.E242.A69D9226@jp.fujitsu.com> <87hbf89jfk.fsf@gmail.com> Message-Id: <20101124091249.7BEB.A69D9226@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.50.07 [ja] Date: Wed, 24 Nov 2010 09:13:51 +0900 (JST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1461 Lines: 32 > On Tue, 23 Nov 2010 16:16:55 +0900 (JST), KOSAKI Motohiro wrote: > > > By Other approach, app developer uses POSIX_FADV_DONTNEED. > > > But it has a problem. If kernel meets page is writing > > > during invalidate_mapping_pages, it can't work. > > > It is very hard for application programmer to use it. > > > Because they always have to sync data before calling > > > fadivse(..POSIX_FADV_DONTNEED) to make sure the pages could > > > be discardable. At last, they can't use deferred write of kernel > > > so that they could see performance loss. > > > (http://insights.oetiker.ch/linux/fadvise.html) > > > > If rsync use the above url patch, we don't need your patch. > > fdatasync() + POSIX_FADV_DONTNEED should work fine. > > > This is quite true, but the patch itself is fairly invasive and > unnecessarily so which makes it unsuitable for merging in the eyes of > the rsync maintainers (not that I can blame them). This is by no fault > of its author; using fadvise is just far harder than it should be. Yeah. I agree with this patch don't have negative impact. I was only curious why Minchan drop autodetect logic. Please don't think I'm against your effort. Thanks. -- 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/