All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nick Piggin <nickpiggin@yahoo.com.au>
To: Jens Axboe <axboe@suse.de>
Cc: Andrew Morton <akpm@osdl.org>, linux-kernel@vger.kernel.org
Subject: Re: Time sliced CFQ io scheduler
Date: Wed, 08 Dec 2004 10:11:43 +1100	[thread overview]
Message-ID: <41B638AF.9030208@yahoo.com.au> (raw)
In-Reply-To: <20041202203736.GE26695@suse.de>

Jens Axboe wrote:
> On Thu, Dec 02 2004, Andrew Morton wrote:
> 
>>Jens Axboe <axboe@suse.de> wrote:
>>
>>>>So what are you doing different?
>>>
>>>Doing sync io, most likely. My results above are 64k O_DIRECT reads and
>>>writes, see the mention of the test cases in the first mail.
>>
>>OK.
>>
>>Writer:
>>
>>	while true
>>	do
>>	write-and-fsync -o -m 100 -c 65536 foo 
>>	done
>>
>>Reader:
>>
>>	time-read -o -b 65536 -n 256 x      (This is O_DIRECT)
>>or:	time-read -b 65536 -n 256 x	    (This is buffered)
>>
>>`vmstat 1':
>>
>>procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
>> r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id wa
>> 1  1   1032 137412   4276  84388   32    0 15456 25344 1659  1538  0  3 50 47
>> 0  1   1032 137468   4276  84388    0    0     0 32128 1521  1027  0  2 51 48
>> 0  1   1032 137476   4276  84388    0    0     0 32064 1519  1026  0  1 50 49
>> 0  1   1032 137476   4276  84388    0    0     0 33920 1556  1102  0  2 50 49
>> 0  1   1032 137476   4276  84388    0    0     0 33088 1541  1074  0  1 50 49
>> 0  2   1032 135676   4284  85944    0    0  1656 29732 1868  2506  0  3 49 47
>> 1  1   1032  96532   4292 125172    0    0 39220   128 10813 39313  0 31 35 34
>> 0  2   1032  57724   4332 163892    0    0 38828   128 10716 38907  0 28 38 35
>> 0  2   1032  18860   4368 202684    0    0 38768   128 10701 38845  1 28 38 35
>> 0  2   1032   3672   4248 217764    0    0 39188   128 10803 39327  0 28 37 34
>> 0  1   1032   2832   4260 218840    0    0 16812 17932 5504 17457  0 14 46 40
> 
> 
> Well there you go, exactly what I saw. The writer(s) basically make no
> progress as long as the reader is going. Since 'as' treats the sync
> writes like reads internally and given the really bad fairness problems
> demonstrated for same direction clients, that might be the same problem.
> 
> 
>>Ugly.
>>
>>(write-and-fsync and time-read are from
>>http://www.zip.com.au/~akpm/linux/patches/stuff/ext3-tools.tar.gz)
> 
> 
> I'll try and post my cruddy test programs tomorrow as well. Pretty handy
> for getting a good feel for N client read/write performance.
> 


OK, sorry for not jumping in earlier. Yes, it will be synch IO that
is your problem.

I'll see if I can try improving things there for AS. I see (from your
first results in this thread) that CFQ does quite nicely here, better
than deadline.

  reply	other threads:[~2004-12-07 23:12 UTC|newest]

Thread overview: 66+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-02 13:04 Time sliced CFQ io scheduler Jens Axboe
2004-12-02 13:48 ` Jens Axboe
2004-12-02 19:48   ` Andrew Morton
2004-12-02 19:52     ` Jens Axboe
2004-12-02 20:19       ` Andrew Morton
2004-12-02 20:19         ` Jens Axboe
2004-12-02 20:34           ` Andrew Morton
2004-12-02 20:37             ` Jens Axboe
2004-12-07 23:11               ` Nick Piggin [this message]
2004-12-02 22:18         ` Prakash K. Cheemplavam
2004-12-03  7:01           ` Jens Axboe
2004-12-03  9:12             ` Prakash K. Cheemplavam
2004-12-03  9:18               ` Jens Axboe
2004-12-03  9:35                 ` Prakash K. Cheemplavam
2004-12-03  9:43                   ` Jens Axboe
2004-12-03  9:26               ` Andrew Morton
2004-12-03  9:34                 ` Prakash K. Cheemplavam
2004-12-03  9:39                 ` Jens Axboe
2004-12-03  9:54                   ` Prakash K. Cheemplavam
     [not found]                   ` <41B03722.5090001@gmx.de>
2004-12-03 10:31                     ` Jens Axboe
2004-12-03 10:38                       ` Jens Axboe
2004-12-03 10:45                         ` Prakash K. Cheemplavam
2004-12-03 10:48                           ` Jens Axboe
2004-12-03 11:27                             ` Prakash K. Cheemplavam
2004-12-03 11:29                               ` Jens Axboe
2004-12-03 11:52                                 ` Prakash K. Cheemplavam
2004-12-08  0:37       ` Andrea Arcangeli
2004-12-08  0:54         ` Nick Piggin
2004-12-08  1:37           ` Andrea Arcangeli
2004-12-08  1:47             ` Nick Piggin
2004-12-08  2:09               ` Andrea Arcangeli
2004-12-08  2:11                 ` Andrew Morton
2004-12-08  2:22                   ` Andrea Arcangeli
2004-12-08  6:52               ` Jens Axboe
2004-12-08  2:00             ` Andrew Morton
2004-12-08  2:08               ` Andrew Morton
2004-12-08  6:55                 ` Jens Axboe
2004-12-08  2:20               ` Andrea Arcangeli
2004-12-08  2:25                 ` Andrew Morton
2004-12-08  2:33                   ` Andrea Arcangeli
2004-12-08  2:33                   ` Nick Piggin
2004-12-08  2:51                     ` Andrea Arcangeli
2004-12-08  3:02                       ` Nick Piggin
2004-12-08  6:58                     ` Jens Axboe
2004-12-08  7:14                       ` Nick Piggin
2004-12-08  7:20                         ` Jens Axboe
2004-12-08  7:29                           ` Nick Piggin
2004-12-08  7:32                             ` Jens Axboe
2004-12-08  7:30                           ` Andrew Morton
2004-12-08  7:36                             ` Jens Axboe
2004-12-08 13:48                         ` Jens Axboe
2004-12-08  6:55               ` Jens Axboe
2004-12-08  7:08                 ` Nick Piggin
2004-12-08  7:11                   ` Jens Axboe
2004-12-08  7:19                     ` Nick Piggin
2004-12-08  7:26                       ` Jens Axboe
2004-12-08  9:35                         ` Jens Axboe
2004-12-08 10:08                           ` Jens Axboe
2004-12-08 12:47                           ` Jens Axboe
2004-12-08 10:52                 ` Helge Hafting
2004-12-08 10:49                   ` Jens Axboe
2004-12-08  6:49           ` Jens Axboe
2004-12-02 14:28 ` Giuliano Pochini
2004-12-02 14:41   ` Jens Axboe
2004-12-04 13:05     ` Giuliano Pochini
  -- strict thread matches above, loose matches on Subject: below --
2004-12-03 20:52 Chuck Ebbert

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=41B638AF.9030208@yahoo.com.au \
    --to=nickpiggin@yahoo.com.au \
    --cc=akpm@osdl.org \
    --cc=axboe@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.