All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vivek Goyal <vgoyal@redhat.com>
To: Ryo Tsuruta <ryov@valinux.co.jp>
Cc: "Fernando Luis Vázquez Cao" <fernando@oss.ntt.co.jp>,
	linux-kernel@vger.kernel.org,
	"Moyer Jeff Moyer" <jmoyer@redhat.com>,
	dm-devel@redhat.com, "Jens Axboe" <jens.axboe@oracle.com>,
	"Nauman Rafique" <nauman@google.com>,
	"Morton Andrew Morton" <akpm@linux-foundation.org>,
	"Balbir Singh" <balbir@linux.vnet.ibm.com>,
	agk@redhat.com, "Andrea Righi" <righi.andrea@gmail.com>
Subject: Re: dm-ioband: Test results.
Date: Thu, 16 Apr 2009 22:28:51 -0400	[thread overview]
Message-ID: <20090417022851.GC23152@redhat.com> (raw)
In-Reply-To: <20090417021139.GB23152@redhat.com>

On Thu, Apr 16, 2009 at 10:11:39PM -0400, Vivek Goyal wrote:
> On Thu, Apr 16, 2009 at 04:57:20PM -0400, Vivek Goyal wrote:
> > On Mon, Apr 13, 2009 at 01:05:52PM +0900, Ryo Tsuruta wrote:
> > > Hi Alasdair and all,
> > > 
> > > I did more tests on dm-ioband and I've posted the test items and
> > > results on my website. The results are very good.
> > > http://people.valinux.co.jp/~ryov/dm-ioband/test/test-items.xls
> > > 
> > > I hope someone will test dm-ioband and report back to the dm-devel
> > > mailing list.
> > > 
> > 
> 
> Ok, one more test. This time to show that with single queue and FIFO
> dispatch a writer can easily starve the reader.
> 
> I have created two partitions /dev/sda1 and /dev/sda2. Two ioband devices
> ioband1 and ioband2 on /dev/sda1 and /dev/sda2 respectively with weights
> 40 and 20.
> 
> I am launching an aggressive writer dd with prio 7 (Best effort) and a
> reader with prio 0 (Best effort).
> 
> Following is my script.
> 
> ****************************************************************
> rm /mnt/sdd1/aggressivewriter
> 
> sync
> echo 3 > /proc/sys/vm/drop_caches
> 
> #launch an hostile writer
> ionice -c2 -n7 dd if=/dev/zero of=/mnt/sdd1/aggressivewriter bs=4K count=524288 conv=fdatasync &
> 
> # Reader
> ionice -c 2 -n 0 dd if=/mnt/sdd1/testzerofile1 of=/dev/null &
> wait $!
> echo "reader finished"
> **********************************************************************

More results. Same reader writer test as above, the only variation I 
have done is change the class of reader to RT from BE.

ionice -c 1 -n 0 dd if=/mnt/sdd1/testzerofile1 of=/dev/null &

Even chaning the class of reader does not help. Writer still starves the
reader.

Without dm-ioband
=================
First run
2147483648 bytes (2.1 GB) copied, 43.9096 s, 48.9 MB/s (Reader)
reader finished
2147483648 bytes (2.1 GB) copied, 85.9094 s, 25.0 MB/s (Writer)

Second run
2147483648 bytes (2.1 GB) copied, 40.2446 s, 53.4 MB/s (Reader)
reader finished
2147483648 bytes (2.1 GB) copied, 82.723 s, 26.0 MB/s (Writer)

With dm-ioband
==============
First run
2147483648 bytes (2.1 GB) copied, 69.0272 s, 31.1 MB/s (Writer)
2147483648 bytes (2.1 GB) copied, 89.3037 s, 24.0 MB/s (Reader)
reader finished

Second run
2147483648 bytes (2.1 GB) copied, 64.8751 s, 33.1 MB/s (Writer)
2147483648 bytes (2.1 GB) copied, 89.0273 s, 24.1 MB/s (Reader)
reader finished

Thanks
Vivek

WARNING: multiple messages have this Message-ID (diff)
From: Vivek Goyal <vgoyal@redhat.com>
To: Ryo Tsuruta <ryov@valinux.co.jp>
Cc: agk@redhat.com, dm-devel@redhat.com,
	linux-kernel@vger.kernel.org,
	"Nauman Rafique" <nauman@google.com>,
	"Fernando Luis Vázquez Cao" <fernando@oss.ntt.co.jp>,
	"Andrea Righi" <righi.andrea@gmail.com>,
	"Jens Axboe" <jens.axboe@oracle.com>,
	"Balbir Singh" <balbir@linux.vnet.ibm.com>,
	"Moyer Jeff Moyer" <jmoyer@redhat.com>,
	"Morton Andrew Morton" <akpm@linux-foundation.org>
Subject: Re: dm-ioband: Test results.
Date: Thu, 16 Apr 2009 22:28:51 -0400	[thread overview]
Message-ID: <20090417022851.GC23152@redhat.com> (raw)
In-Reply-To: <20090417021139.GB23152@redhat.com>

On Thu, Apr 16, 2009 at 10:11:39PM -0400, Vivek Goyal wrote:
> On Thu, Apr 16, 2009 at 04:57:20PM -0400, Vivek Goyal wrote:
> > On Mon, Apr 13, 2009 at 01:05:52PM +0900, Ryo Tsuruta wrote:
> > > Hi Alasdair and all,
> > > 
> > > I did more tests on dm-ioband and I've posted the test items and
> > > results on my website. The results are very good.
> > > http://people.valinux.co.jp/~ryov/dm-ioband/test/test-items.xls
> > > 
> > > I hope someone will test dm-ioband and report back to the dm-devel
> > > mailing list.
> > > 
> > 
> 
> Ok, one more test. This time to show that with single queue and FIFO
> dispatch a writer can easily starve the reader.
> 
> I have created two partitions /dev/sda1 and /dev/sda2. Two ioband devices
> ioband1 and ioband2 on /dev/sda1 and /dev/sda2 respectively with weights
> 40 and 20.
> 
> I am launching an aggressive writer dd with prio 7 (Best effort) and a
> reader with prio 0 (Best effort).
> 
> Following is my script.
> 
> ****************************************************************
> rm /mnt/sdd1/aggressivewriter
> 
> sync
> echo 3 > /proc/sys/vm/drop_caches
> 
> #launch an hostile writer
> ionice -c2 -n7 dd if=/dev/zero of=/mnt/sdd1/aggressivewriter bs=4K count=524288 conv=fdatasync &
> 
> # Reader
> ionice -c 2 -n 0 dd if=/mnt/sdd1/testzerofile1 of=/dev/null &
> wait $!
> echo "reader finished"
> **********************************************************************

More results. Same reader writer test as above, the only variation I 
have done is change the class of reader to RT from BE.

ionice -c 1 -n 0 dd if=/mnt/sdd1/testzerofile1 of=/dev/null &

Even chaning the class of reader does not help. Writer still starves the
reader.

Without dm-ioband
=================
First run
2147483648 bytes (2.1 GB) copied, 43.9096 s, 48.9 MB/s (Reader)
reader finished
2147483648 bytes (2.1 GB) copied, 85.9094 s, 25.0 MB/s (Writer)

Second run
2147483648 bytes (2.1 GB) copied, 40.2446 s, 53.4 MB/s (Reader)
reader finished
2147483648 bytes (2.1 GB) copied, 82.723 s, 26.0 MB/s (Writer)

With dm-ioband
==============
First run
2147483648 bytes (2.1 GB) copied, 69.0272 s, 31.1 MB/s (Writer)
2147483648 bytes (2.1 GB) copied, 89.3037 s, 24.0 MB/s (Reader)
reader finished

Second run
2147483648 bytes (2.1 GB) copied, 64.8751 s, 33.1 MB/s (Writer)
2147483648 bytes (2.1 GB) copied, 89.0273 s, 24.1 MB/s (Reader)
reader finished

Thanks
Vivek

  reply	other threads:[~2009-04-17  2:28 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-13  4:05 dm-ioband: Test results Ryo Tsuruta
2009-04-13 14:46 ` Vivek Goyal
2009-04-13 14:46   ` Vivek Goyal
2009-04-14  2:49   ` Vivek Goyal
2009-04-14  2:49     ` Vivek Goyal
2009-04-14  5:27     ` Ryo Tsuruta
2009-04-14  9:30   ` Ryo Tsuruta
2009-04-14  9:30     ` [dm-devel] " Ryo Tsuruta
2009-04-15 17:04     ` Vivek Goyal
2009-04-15 17:04       ` [dm-devel] " Vivek Goyal
2009-04-16 12:56       ` Ryo Tsuruta
2009-04-16 12:56         ` Ryo Tsuruta
2009-04-16 13:32         ` Vivek Goyal
2009-04-16 13:32           ` [dm-devel] " Vivek Goyal
2009-04-15  4:37 ` Vivek Goyal
2009-04-15  4:37   ` Vivek Goyal
2009-04-15 13:38   ` Ryo Tsuruta
2009-04-15 14:10     ` Vivek Goyal
2009-04-15 14:10       ` Vivek Goyal
2009-04-15 16:17     ` Vivek Goyal
2009-04-15 16:17       ` Vivek Goyal
2009-04-16  2:47     ` [dm-devel] " Ryo Tsuruta
2009-04-16 14:11       ` Vivek Goyal
2009-04-16 14:11         ` [dm-devel] " Vivek Goyal
2009-04-16 20:24         ` Nauman Rafique
2009-04-20  8:29           ` Ryo Tsuruta
2009-04-20  8:29             ` [dm-devel] " Ryo Tsuruta
2009-04-20  9:07             ` Nauman Rafique
2009-04-21 12:06               ` Ryo Tsuruta
2009-04-21 12:10                 ` Ryo Tsuruta
2009-04-21 12:10                   ` [dm-devel] " Ryo Tsuruta
2009-04-21 13:57                   ` Mike Snitzer
2009-04-21 13:57                     ` Mike Snitzer
2009-04-21 14:16                     ` Vivek Goyal
2009-04-21 14:16                       ` Vivek Goyal
2009-04-22  0:50                       ` Li Zefan
2009-04-22  3:14                       ` Ryo Tsuruta
2009-04-22  3:14                         ` [dm-devel] " Ryo Tsuruta
2009-04-22 15:18                         ` Mike Snitzer
2009-04-22 15:18                           ` Mike Snitzer
2009-04-27 10:30                           ` Ryo Tsuruta
2009-04-27 10:30                             ` Ryo Tsuruta
2009-04-27 12:44                             ` Ryo Tsuruta
2009-04-27 12:44                               ` Ryo Tsuruta
2009-04-27 13:03                             ` Mike Snitzer
2009-04-27 13:03                               ` Mike Snitzer
2009-04-20 21:37             ` Vivek Goyal
2009-04-20 21:37               ` [dm-devel] " Vivek Goyal
2009-04-21 12:18               ` Ryo Tsuruta
2009-04-16 20:57 ` Vivek Goyal
2009-04-16 20:57   ` Vivek Goyal
2009-04-17  2:11   ` Vivek Goyal
2009-04-17  2:11     ` Vivek Goyal
2009-04-17  2:28     ` Vivek Goyal [this message]
2009-04-17  2:28       ` Vivek Goyal

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=20090417022851.GC23152@redhat.com \
    --to=vgoyal@redhat.com \
    --cc=agk@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=balbir@linux.vnet.ibm.com \
    --cc=dm-devel@redhat.com \
    --cc=fernando@oss.ntt.co.jp \
    --cc=jens.axboe@oracle.com \
    --cc=jmoyer@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nauman@google.com \
    --cc=righi.andrea@gmail.com \
    --cc=ryov@valinux.co.jp \
    /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.