Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753084AbWL1K6B (ORCPT ); Thu, 28 Dec 2006 05:58:01 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754822AbWL1K6B (ORCPT ); Thu, 28 Dec 2006 05:58:01 -0500 Received: from smtp.ustc.edu.cn ([202.38.64.16]:34753 "HELO ustc.edu.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with SMTP id S1753084AbWL1K6A (ORCPT ); Thu, 28 Dec 2006 05:58:00 -0500 Message-ID: <367303459.19953@ustc.edu.cn> X-EYOUMAIL-SMTPAUTH: wfg@mail.ustc.edu.cn Date: Thu, 28 Dec 2006 18:57:55 +0800 From: Fengguang Wu To: Andrew Morton Cc: "Zhang, Yanmin" , LKML Subject: Re: [PATCH] drop page cache of a single file Message-ID: <20061228105755.GA7152@mail.ustc.edu.cn> Mail-Followup-To: Andrew Morton , "Zhang, Yanmin" , LKML References: <1167275845.15989.153.camel@ymzhang> <20061227194959.0ebce0e4.akpm@osdl.org> <367290328.14058@ustc.edu.cn> <20061228022926.4287ca33.akpm@osdl.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061228022926.4287ca33.akpm@osdl.org> X-GPG-Fingerprint: 53D2 DDCE AB5C 8DC6 188B 1CB1 F766 DA34 8D8B 1C6D User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1232 Lines: 29 On Thu, Dec 28, 2006 at 02:29:26AM -0800, Andrew Morton wrote: > On Thu, 28 Dec 2006 15:19:04 +0800 > Fengguang Wu wrote: > > > Yanmin: I've been using the fadvise tool from > > http://www.zip.com.au/~akpm/linux/patches/stuff/ext3-tools.tar.gz > > > > It's a nice tool: > > > > % fadvise > > Usage: fadvise filename offset length advice [loops] > > advice: normal sequential willneed noreuse dontneed asyncwrite writewait > > % fadvise /var/sparse 0 0x7fffffff dontneed > > > > I was a bit reluctant to point at that because it has nasty hacks to make > it mostly-work on old glibc's which don't implement posix_fadvise(). > > Hopefully if you're running a recent distro, you have glibc support for > fadvise() and it's possible to write a portable version of that app which > doesn't need to know about per-arch syscall numbers. Bad news: it's still broken. posix_fadvise() here just failed silently. I'm running Debian Etch with libc6=2.3.6.ds1-7. - 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/