From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx166.postini.com [74.125.245.166]) by kanga.kvack.org (Postfix) with SMTP id 924F86B004A for ; Wed, 15 Feb 2012 21:10:54 -0500 (EST) Message-ID: <4F3C6594.3030709@fb.com> Date: Wed, 15 Feb 2012 18:10:28 -0800 From: Arun Sharma MIME-Version: 1.0 Subject: Re: [PATCH v5 3/3] fadvise: implement POSIX_FADV_NOREUSE References: <1329006098-5454-1-git-send-email-andrea@betterlinux.com> <1329006098-5454-4-git-send-email-andrea@betterlinux.com> <20120215233537.GA20724@dev3310.snc6.facebook.com> <20120215234724.GA21685@thinkpad> <4F3C467B.1@fb.com> <20120216005608.GC21685@thinkpad> In-Reply-To: <20120216005608.GC21685@thinkpad> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Andrea Righi Cc: Andrew Morton , Minchan Kim , Peter Zijlstra , Johannes Weiner , KAMEZAWA Hiroyuki , KOSAKI Motohiro , Rik van Riel , Hugh Dickins , Alexander Viro , Shaohua Li , =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= , John Stultz , Jerry James , Julius Plenz , linux-mm , linux-fsdevel@vger.kernel.org, LKML On 2/15/12 4:56 PM, Andrea Righi wrote: > Oh sorry, you're right! nocache_tree is not a pointer inside > address_space, so the compiler must know the size. > > mmh... move the definition of the rb_root struct in linux/types.h? or > simply use a rb_root pointer. The (void *) looks a bit scary and too bug > prone. Either way is fine. I did some black box testing of the patch (comparing noreuse vs dontneed) and it behaves as expected. On a file copy, neither one pollutes the page cache. But if I run a random read benchmark on the source file right before and afterwards, page cache is warm with noreuse, but cold with dontneed. Copy performance was unaffected. I can't really comment on the implementation details since I haven't reviewed it, but the functionality sounds useful. -Arun -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org