From: Voluspa <lista1@comhem.se>
To: Fengguang Wu <wfg@mail.ustc.edu.cn>
Cc: Valdis.Kletnieks@vt.edu, diegocg@gmail.com, linux-kernel@vger.kernel.org
Subject: Re: Adaptive Readahead V14 - statistics question...
Date: Thu, 8 Jun 2006 10:04:44 +0200 [thread overview]
Message-ID: <20060608100444.5212162d.lista1@comhem.se> (raw)
In-Reply-To: <349141076.14929@ustc.edu.cn>
My patching was borked as can be seen in:
http://marc.theaimsgroup.com/?l=linux-kernel&m=114956084026066&w=2
I've therefore benchmarked two corrected patches from Wu:
http://web.comhem.se/~u46139355/storetmp/adaptive-readahead-2.6.17-rc5-wu-v1.patch
http://web.comhem.se/~u46139355/storetmp/adaptive-readahead-2.6.17-rc5-wu-v2.patch
Revised Conclusion: On _this_ machine, with _these_ operations, Adaptive
Readahead in its current incarnation and default settings is a slight
_loss_. However, if the readahead size is lowered from 2048 to 256, it
becomes a slight _gain_ or at least stays in parity with normal readahead.
I suggest others to test multi-thread, multi-cpu, more than/less than my
2GB memory, sata-disks, different disk speeds etc etc.
Kernels:
root:sleipner:~# ls -l /boot/kernel-2.6.17-rc5-git10*
1440 -rw-r--r-- 1 root root 1469326 Jun 6 22:27 /boot/kernel-2.6.17-rc5-git10
1440 -rw-r--r-- 1 root root 1470122 Jun 6 22:36 /boot/kernel-2.6.17-rc5-git10-ar1
1440 -rw-r--r-- 1 root root 1470128 Jun 6 22:44 /boot/kernel-2.6.17-rc5-git10-ar2
_Massive READ_
[/usr had some 195000 files]
"cd /usr; time find . -type f -exec md5sum {} \; >/dev/null"
[/sbin/blockdev --setra 256 /dev/hda] * [/sbin/blockdev --setra 2048 /dev/hda]
6.17-rc5-git10 - git10-ar1 - git10-ar2 * 6.17-rc5-git10 - git10-ar1 - git10-ar2
real 8m18.241s - 8m19.053s - 8m16.639s * real 8m24.042s - 8m22.652s - 8m20.812s
user 1m23.556s - 1m24.526s - 1m23.725s * user 1m23.788s - 1m23.741s - 1m24.023s
sys 2m8.514s - 2m5.989s - 2m3.540s * sys 2m7.369s - 2m6.914s - 2m5.317s
real 8m19.171s - 8m17.993s - 8m17.062s * real 8m23.110s - 8m20.409s - 8m19.278s
user 1m23.863s - 1m23.692s - 1m23.980s * user 1m23.770s - 1m23.715s - 1m23.525s
sys 2m9.332s - 2m4.133s - 2m3.602s * sys 2m6.463s - 2m5.735s - 2m3.801s
real 8m17.111s - 8m17.102s - 8m16.859s * real 8m21.891s - 8m19.129s - 8m17.321s
user 1m24.071s - 1m24.126s - 1m24.430s * user 1m23.876s - 1m23.592s - 1m23.024s
sys 2m6.292s - 2m3.543s - 2m3.142s * sys 2m4.768s - 2m4.012s - 2m3.110s
real 8m20.427s - 8m16.972s - 8m17.847s * real 8m25.359s - 8m21.261s - 8m20.365s
user 1m23.730s - 1m23.260s - 1m23.227s * user 1m24.242s - 1m23.825s - 1m23.895s
sys 2m9.524s - 2m3.708s - 2m5.244s * sys 2m7.894s - 2m5.366s - 2m3.971s
_READ/WRITE_
[255 .tga files, each is 1244178 bytes]
[1 .wav file which is 1587644 bytes]
[movie becomes 573298 bytes ~9s long]
"time mencoder -ovc lavc -lavcopts aspect=16/9 mf://picsave/kreation/03-logo-joined/*.tga -oac lavc -audiofile kreation-files/kreation-logo-final.wav -o logo-final-widescreen-speedtest.avi"
[/sbin/blockdev --setra 256 /dev/hda] * [/sbin/blockdev --setra 2048 /dev/hda]
6.17-rc5-git10 - git10-ar1 - git10-ar2 * 6.17-rc5-git10 - git10-ar1 - git10-ar2
real 0m12.961s - 0m12.864s - 0m12.811s * real 0m16.628s - 0m15.862s - 0m16.754s
user 0m3.315s - 0m3.319s - 0m3.316s * user 0m3.335s - 0m3.301s - 0m3.308s
sys 0m1.082s - 0m1.077s - 0m1.086s * sys 0m1.084s - 0m1.122s - 0m1.093s
real 0m12.908s - 0m12.793s - 0m12.813s * real 0m16.601s - 0m15.893s - 0m16.736s
user 0m3.323s - 0m3.305s - 0m3.312s * user 0m3.311s - 0m3.316s - 0m3.308s
sys 0m1.051s - 0m1.079s - 0m1.145s * sys 0m1.046s - 0m1.109s - 0m1.091s
_cp bigfile between different partitions_
[Elephants_Dream_HD.avi 854537054 bytes]
"time cp /home/downloads/Elephants_Dream_HD.avi /root"
[/sbin/blockdev --setra 256 /dev/hda] * [/sbin/blockdev --setra 2048 /dev/hda]
6.17-rc5-git10 - git10-ar1 - git10-ar2 * 6.17-rc5-git10 - git10-ar1 - git10-ar2
real 0m46.463s - 0m46.909s - 0m45.865s * real 0m50.232s - 0m50.863s - 0m50.549s
user 0m0.081s - 0m0.073s - 0m0.068s * user 0m0.069s - 0m0.063s - 0m0.088s
sys 0m6.304s - 0m7.204s - 0m5.949s * sys 0m5.902s - 0m7.174s - 0m6.822s
real 0m46.126s - 0m47.305s - 0m47.174s * real 0m50.875s - 0m50.066s - 0m50.862s
user 0m0.091s - 0m0.095s - 0m0.070s * user 0m0.099s - 0m0.091s - 0m0.071s
sys 0m5.751s - 0m7.159s - 0m6.707s * sys 0m6.271s - 0m6.740s - 0m7.318s
_cp filetree between different partitions_
[compiled kerneltree ~339M]
"time cp -a /usr/src/testing/linux-2.6.17-rc5-git10 /root"
[/sbin/blockdev --setra 256 /dev/hda] * [/sbin/blockdev --setra 2048 /dev/hda]
6.17-rc5-git10 - git10-ar1 - git10-ar2 * 6.17-rc5-git10 - git10-ar1 - git10-ar2
real 0m51.344s - 0m51.886s - 0m51.077s * real 0m52.502s - 0m52.757s - 0m54.794s
user 0m0.193s - 0m0.220s - 0m0.231s * user 0m0.210s - 0m0.198s - 0m0.177s
sys 0m5.508s - 0m6.003s - 0m5.205s * sys 0m5.980s - 0m5.800s - 0m6.372s
real 0m51.148s - 0m51.212s - 0m51.768s * real 0m51.488s - 0m52.098s - 0m51.719s
user 0m0.170s - 0m0.209s - 0m0.184s * user 0m0.198s - 0m0.210s - 0m0.179s
sys 0m5.697s - 0m5.604s - 0m6.438s * sys 0m5.527s - 0m5.918s - 0m5.544s
Mvh
Mats Johannesson
--
next prev parent reply other threads:[~2006-06-08 8:04 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-30 3:36 Voluspa
[not found] ` <20060530064026.GA4950@mail.ustc.edu.cn>
2006-05-30 6:40 ` Wu Fengguang
2006-05-30 16:49 ` Valdis.Kletnieks
2006-05-31 21:06 ` Diego Calleja
2006-05-31 21:50 ` Voluspa
[not found] ` <20060601055143.GA5216@mail.ustc.edu.cn>
2006-06-01 5:51 ` Fengguang Wu
2006-06-01 6:35 ` Voluspa
2006-06-08 8:04 ` Voluspa [this message]
[not found] ` <20060608113731.GA5813@mail.ustc.edu.cn>
2006-06-08 11:37 ` adaptive readahead overheads Fengguang Wu
2006-06-08 12:25 ` Voluspa
[not found] ` <20060608123900.GA6885@mail.ustc.edu.cn>
2006-06-08 12:39 ` Fengguang Wu
2006-06-08 13:05 ` Andi Kleen
2006-06-08 14:00 ` Jens Axboe
[not found] ` <448493E9.9030203@samwel.tk>
[not found] ` <20060606033436.GB6071@mail.ustc.edu.cn>
2006-06-06 3:34 ` Adaptive Readahead V14 - statistics question Wu Fengguang
[not found] <20060604073415.GB5405@mail.ustc.edu.cn>
2006-06-04 7:34 ` [PATCH] readahead: initial method - expected read size - fix fastcall Fengguang Wu
2006-06-04 9:07 ` Andrew Morton
2006-06-04 9:25 ` Arjan van de Ven
2006-06-05 1:17 ` Voluspa
2006-06-05 8:00 ` Arjan van de Ven
[not found] ` <20060606022606.GA6071@mail.ustc.edu.cn>
2006-06-06 2:26 ` Fengguang Wu
2006-06-08 7:31 ` Voluspa
[not found] ` <20060608075722.GA5515@mail.ustc.edu.cn>
2006-06-08 7:57 ` Fengguang Wu
[not found] ` <20060606025728.GA6365@mail.ustc.edu.cn>
2006-06-06 2:57 ` Fengguang Wu
2006-06-08 7:43 ` Voluspa
[not found] ` <20060608081352.GB5515@mail.ustc.edu.cn>
2006-06-08 8:13 ` Fengguang Wu
2006-06-08 8:28 ` Voluspa
[not found] ` <20060608085055.GA5917@mail.ustc.edu.cn>
2006-06-08 8:50 ` Fengguang Wu
2006-06-08 10:04 ` Voluspa
[not found] ` <20060604121328.GA6686@mail.ustc.edu.cn>
2006-06-04 12:13 ` [PATCH] readahead: call scheme - fix fastcall readahead_cache_hit() Fengguang Wu
-- strict thread matches above, loose matches on Subject: below --
2006-05-29 19:44 Adaptive Readahead V14 - statistics question Valdis.Kletnieks
[not found] ` <20060530003757.GA5164@mail.ustc.edu.cn>
2006-05-30 0:37 ` Wu Fengguang
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=20060608100444.5212162d.lista1@comhem.se \
--to=lista1@comhem.se \
--cc=Valdis.Kletnieks@vt.edu \
--cc=diegocg@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=wfg@mail.ustc.edu.cn \
/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
Powered by JetHome