From: WU Fengguang <wfg@mail.ustc.edu.cn>
To: Paolo Ornati <ornati@fastwebnet.it>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Adaptive read-ahead: benchmarks
Date: Thu, 15 Sep 2005 22:52:53 +0800 [thread overview]
Message-ID: <20050915145253.GA6040@mail.ustc.edu.cn> (raw)
In-Reply-To: <20050915162856.1fd5bb38@localhost>
On Thu, Sep 15, 2005 at 04:28:56PM +0200, Paolo Ornati wrote:
> On Thu, 15 Sep 2005 21:16:51 +0800
> WU Fengguang <wfg@mail.ustc.edu.cn> wrote:
>
> > oprofile() {
> > opcontrol --vmlinux=/temp/kernel/linux-2.6.13ra/vmlinux
> > opcontrol --start
> > opcontrol --reset
> > echo $1 > /proc/sys/vm/readahead_ratio
> > dd if=/temp/kernel/hugefile of=/dev/null bs=$bs
> > opreport -l -o oprofile.$1.$bs /temp/kernel/linux-2.6.13ra/vmlinux
> > opcontrol --stop
> > }
>
> just a side note: shouldn't you umount and remount "/temp" to remove
> the pagecache? Or is the file so big that it doesn't matter?
Thanks for the reminding. I'm currently using huge files for testing:
# ll bigfile hugefile
-rw-r--r-- 2 root root 626M 2005-09-07 20:29 bigfile
-rw-r--r-- 2 root root 3.7G 2005-09-11 11:24 hugefile
The umount tip seems nice and I'll use it for future testing :)
>
> PS: instead of unmount/remount you can use "fadvise":
> http://www.zip.com.au/~akpm/linux/patches/stuff/ext3-tools.tar.gz
OK, I'll check it.
>
> --
> Paolo Ornati
> Linux 2.6.14-rc1 on x86_64
--
WU Fengguang
Dept. of Automation
University of Science and Technology of China
Hefei, Anhui
prev parent reply other threads:[~2005-09-15 14:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-15 13:16 Adaptive read-ahead: benchmarks WU Fengguang
2005-09-15 14:28 ` Paolo Ornati
2005-09-15 14:52 ` WU Fengguang [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050915145253.GA6040@mail.ustc.edu.cn \
--to=wfg@mail.ustc.edu.cn \
--cc=linux-kernel@vger.kernel.org \
--cc=ornati@fastwebnet.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox