From: Mike Snitzer <snitzer@redhat.com>
To: Heinz Mauelshagen <heinzm@redhat.com>
Cc: dm-devel@redhat.com
Subject: Re: [PATCH 0/2] dm: add new loop and ram targets
Date: Wed, 17 Jan 2018 19:36:49 -0500 [thread overview]
Message-ID: <20180118003649.GA7649@redhat.com> (raw)
In-Reply-To: <fcba7e3a-2d90-3507-b810-b5186442f051@redhat.com>
On Wed, Jan 17 2018 at 6:21pm -0500,
Heinz Mauelshagen <heinzm@redhat.com> wrote:
> On 01/17/2018 10:29 PM, Mike Snitzer wrote:
>
> >My initial thought for dm-ram was: why? (considering we have brd and
> >pmem and null_blk). But for 100 lines of code if nothing else it could
> >serve as yet another example DM target for those interested in learning
> >more about how to implement a DM target. Would be good to compare its
> >performance with brd, null_blk and pmem though.
>
> With it we get the dm flexibility to set up ramdisks as opposed to
> brd module parameters. It's performance is pretty similar
> to brd but it's faster for larger block sizes.
> Yes, the value of its simplicity for beginners is an additonal goody.
>
> null_blk doesn't quite fit the list lagging backing store support?
Sure, but I was saying null_blk vs dm-ram. dm-ram doesn't use a backing
store.
> Some numbers in brd, dm-ram, null_blk order:
> # fio --bs=32k --rw=randrw --numjobs=99 --group_reporting
> --iodepth=12 --runtime=3 --ioengine=libaio --loops=1 --direct=1
> --exitall --name pipi --filename=/dev/ram0|egrep "read|write"
> read: IOPS=334k, BW=10.2GiB/s (10.0GB/s)(30.7GiB/3009msec)
> write: IOPS=334k, BW=10.2GiB/s (10.0GB/s)(30.7GiB/3009msec)
>
> # fio --bs=32k --rw=randrw --numjobs=99 --group_reporting
> --iodepth=12 --runtime=3 --ioengine=libaio --loops=1 --direct=1
> --exitall --name pipi --filename=/dev/mapper/ram|egrep "read|write"
> read: IOPS=354k, BW=10.8GiB/s (11.6GB/s)(32.4GiB/3005msec)
> write: IOPS=354k, BW=10.8GiB/s (11.6GB/s)(32.5GiB/3005msec)
>
> # fio --bs=32k --rw=randrw --numjobs=99 --group_reporting
> --iodepth=12 --runtime=3 --ioengine=libaio --loops=1 --direct=1
> --exitall --name pipi --filename=/dev/nullb0|egrep "read|write"
> read: IOPS=337k, BW=10.3GiB/s (11.0GB/s)(30.9GiB/3007msec)
> write: IOPS=337k, BW=10.3GiB/s (11.0GB/s)(30.9GiB/3007msec)
Nice, dm-ram is doing best for that test.
> >As for dm-loop, doubling the performance of the loopback driver is quite
> >nice (especially with only 1/7 the number of lines of code as
> >drives/block/loop.c).
>
> Yes, found this challenging in particular too.
> Didn't bother to cover direct io or async io (yet).
> Much rather wanted to keep it simple.
Ah, OK. But still, doubling the buffered case isn't insignificant.
Mike
next prev parent reply other threads:[~2018-01-18 0:36 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-17 19:33 [PATCH 0/2] dm: add new loop and ram targets Heinz Mauelshagen
2018-01-17 19:34 ` [PATCH 1/2] dm loop: new target redirecting io to backing file(s) Heinz Mauelshagen
2018-01-17 19:34 ` [PATCH 2/2] dm ram: new target redirecting io to RAM Heinz Mauelshagen
2018-01-17 21:29 ` [PATCH 0/2] dm: add new loop and ram targets Mike Snitzer
2018-01-17 23:21 ` Heinz Mauelshagen
2018-01-18 0:36 ` Mike Snitzer [this message]
2018-01-18 11:42 ` Bryn M. Reeves
2018-01-18 11:56 ` Mike Snitzer
2018-01-18 12:06 ` Mike Snitzer
2018-01-22 20:19 ` [dm-devel] " Christoph Hellwig
2018-01-24 12:48 ` Heinz Mauelshagen
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=20180118003649.GA7649@redhat.com \
--to=snitzer@redhat.com \
--cc=dm-devel@redhat.com \
--cc=heinzm@redhat.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;
as well as URLs for NNTP newsgroup(s).