From: Voluspa <lista1@comhem.se>
To: wfg@mail.ustc.edu.cn
Cc: akpm@osdl.org, arjan@infradead.org, Valdis.Kletnieks@vt.edu,
diegocg@gmail.com, lista1@comhem.se,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] readahead: initial method - expected read size - fix fastcall
Date: Mon, 5 Jun 2006 03:17:20 +0200 [thread overview]
Message-ID: <20060605031720.0017ae5e.lista1@comhem.se> (raw)
In-Reply-To: <1149413103.3109.90.camel@laptopd505.fenrus.org>
On Sun, 04 Jun 2006 11:25:03 +0200 Arjan van de Ven wrote:
> On Sun, 2006-06-04 at 02:07 -0700, Andrew Morton wrote:
> > On Sun, 4 Jun 2006 15:34:15 +0800
> > Fengguang Wu wrote:
> >
> > > Remove 'fastcall' directive for function readahead_close().
> > >
> > > It has drawn concerns from Andrew Morton.
> >
> > Well. I think fastcall is ugly and vaguely silly. Now if we has a
> > really_really_fastcall then I'd like to use that!
> >
> >
> > > Now I have some benchmarks
> > > on it, and proved it as a _false_ optimization.
> >
> > Sorry, I don't believe this will be measurable (and with CONFIG_REGPARM
> > it'll be a no-op).
>
> we should just make CONFIG_REGPARM be "it" always (and thus make it go
> away as config option) and then just remove all "fastcall" from the
> kernel...
Wu, I don't know anything about REGPARM, which my x86_64 config doesn't have,
(only the never kernel-updated i686 machine) but your last 2 patches - I
didn't apply the, to me, seemingly unrelated radixtree thing - sure is
measurable. In a most negative way regarding READ/WRITE and a completely
unchanged READ.
Patch:
http://web.comhem.se/~u46139355/storetmp/adaptive-readahead-v14-linux-2.6.17-rc5-git-updated-june-04-2006.patch
Kernel config:
http://web.comhem.se/~u46139355/storetmp/voluspa-2.6.17-rc5-git10-ar-.config
Hard/soft-ware and testing procedure:
http://marc.theaimsgroup.com/?l=linux-kernel&m=114911241320301&w=2
I should add that CFQ is the IO scheduler used and what I mean by default
adaptive readahead options is just that, minus the debug stuff (not compiled).
Also, I've verified that the CFQ updates in -git10 didn't regress plain
-rc5.
_Massive READ_
[/usr had some 166000 files]
By routing screen writes to /dev/null, this test became so stable that a
one-shot would have sufficed, but I did two for those who crave pudding.
"cd /usr; time find . -type f -exec md5sum {} \; >/dev/null"
2.6.17-rc5-git10 ---------- 2.6.17-rc5-git10-ar
real 7m15.525s 7m15.425s -- 7m19.720s 7m19.065s
user 1m11.596s 1m11.894s -- 1m12.111s 1m11.585s
sys 1m49.211s 1m48.068s -- 1m46.223s 1m46.887s
When the target had 490000 files (and wrote to screen) the difference was
16.5 seconds, so the 4s here is in line (time hovered at 7m34s for -git10
and 7m39s for -git10-ar when writing to screen, +/- 1-2s).
_READ/WRITE_
[255 .tga files, each is 1244178 bytes]
[1 .wav file which is 1587644 bytes]
[movie becomes 573298 bytes ~9s long]
This is also extremely accurate _between runs_. Time varies depending on
file order and placement on disk, but the actual runs are 'klockrena'
('dead accurate'?)
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
2.6.17-rc5-git10 ---------- 2.6.17-rc5-git10-ar
real 0m12.892s 0m12.903s -- 0m16.555s 0m16.611s
user 0m3.289s 0m3.314s -- 0m3.315s 0m3.307s
sys 0m1.124s 0m1.085s -- 0m1.096s 0m1.121s
Without the 2 new patches, the difference was 0.6s, still bad on a 9s movie,
but these 3.5s are flabbergasting!
And, no. I don't know which of the 2 that caused this. I am prepared to hand
out a link to a .bz2 archive of all the files involved. Just send a private
message. You only need mplayer [mencoder] installed, and then a one-shot tells
it all.
Mvh
Mats Johannesson
--
next prev parent reply other threads:[~2006-06-05 1:17 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20060604073415.GB5405@mail.ustc.edu.cn>
2006-06-04 7:34 ` Fengguang Wu
2006-06-04 9:07 ` Andrew Morton
2006-06-04 9:25 ` Arjan van de Ven
2006-06-05 1:17 ` Voluspa [this message]
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
2006-05-30 3:36 Adaptive Readahead V14 - statistics question 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
[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
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=20060605031720.0017ae5e.lista1@comhem.se \
--to=lista1@comhem.se \
--cc=Valdis.Kletnieks@vt.edu \
--cc=akpm@osdl.org \
--cc=arjan@infradead.org \
--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