From: Andrew Morton <akpm@osdl.org>
To: spaminos-ker@yahoo.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: cfq misbehaving on 2.6.11-1.14_FC3
Date: Tue, 14 Jun 2005 00:03:52 -0700 [thread overview]
Message-ID: <20050614000352.7289d8f1.akpm@osdl.org> (raw)
In-Reply-To: <20050614021959.99775.qmail@web30707.mail.mud.yahoo.com>
<spaminos-ker@yahoo.com> wrote:
>
> --- Andrew Morton <akpm@osdl.org> wrote:
> > It might be useful to test 2.6.12-rc6-mm1 - it has a substantially
> > rewritten CFQ implementation.
> >
>
> Just did, and while things seem to be a little better, cfq still gets
> performance even worst than noop.
>
> For this type of load, I think that cfq should get latencies much lower than
> noop.
>
> I ran an automated vi "write to file", to get a more persistant test, on the
> different i/o scheduler.
>
> while true ; do time vi -c '%s/a/aa/g' -c '%s/aa/a/g' -c 'x' /root/somefile >
> /dev/null ; sleep 1m ; done
Bear in mind that after one minute, all of vi's text may have been
reclaimed from pagecache, so the above would have to do a lot of randomish
reads to reload vi into memory. Try reducing the sleep interval a lot.
> For some reason, doing a "cp" or appending to files is very fast. I suspect
> that vi's mmap calls are the reason for the latency problem.
Don't know. Try to work out (from vmstat or diskstats) how much reading is
going on.
Try stracing the check, see if your version of vi is doing a sync() or
something odd like that.
> the times I got (to save a 200 bytes file on ext3) in seconds:
>
> cfq 13,19,23,19,23,15,14,16,14 = 17.3 avg
>
> deadline 7,12,11,15,15,8,17,14,16,11 = 12.6 avg
>
> noop 23,12,14,12,12,13,14,14,14 = 14.2 avg
>
> anticipatory 9,13,13,15,19,15,23,15,12 = 14.8 avg
>
OK, well if the latency is mainly due to reads then one would hope that the
anticipatory scheduler would do better than that.
But what happened to this, from your first report?
> On the other hand, opening a blank new file in vi and saving it takes about 5
> minutes or so.
Are you able to reproduce that 5-minute stall in the more recent testing?
next prev parent reply other threads:[~2005-06-14 7:04 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-10 22:54 spaminos-ker
2005-06-11 9:29 ` Andrew Morton
2005-06-14 2:19 ` spaminos-ker
2005-06-14 7:03 ` Andrew Morton [this message]
2005-06-14 23:21 ` spaminos-ker
2005-06-17 14:10 ` Jens Axboe
2005-06-17 15:51 ` Andrea Arcangeli
2005-06-17 18:16 ` Jens Axboe
2005-06-17 23:01 ` spaminos-ker
2005-06-22 9:24 ` Jens Axboe
2005-06-22 17:54 ` spaminos-ker
2005-06-22 20:43 ` Jens Axboe
2005-06-23 18:30 ` spaminos-ker
2005-06-23 23:33 ` Con Kolivas
2005-06-24 2:33 ` spaminos-ker
2005-06-24 3:27 ` Con Kolivas
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=20050614000352.7289d8f1.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=spaminos-ker@yahoo.com \
/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
all inboxes | Powered by JetHome®