All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bart Van Assche <Bart.VanAssche@wdc.com>
To: "shli@kernel.org" <shli@kernel.org>, "axboe@kernel.dk" <axboe@kernel.dk>
Cc: "linux-raid@vger.kernel.org" <linux-raid@vger.kernel.org>,
	"kernel-team@fb.com" <kernel-team@fb.com>,
	"hare@suse.de" <hare@suse.de>,
	"linux-block@vger.kernel.org" <linux-block@vger.kernel.org>,
	"kyungchan.koh@gmail.com" <kyungchan.koh@gmail.com>,
	"shli@fb.com" <shli@fb.com>
Subject: Re: [PATCH 0/5] block: a virtual block device driver for testing
Date: Tue, 8 Aug 2017 22:00:21 +0000	[thread overview]
Message-ID: <1502229619.2686.1.camel@wdc.com> (raw)
In-Reply-To: <73342715-25af-da8e-ae7e-f24015432055@kernel.dk>

T24gVHVlLCAyMDE3LTA4LTA4IGF0IDE1OjEzIC0wNjAwLCBKZW5zIEF4Ym9lIHdyb3RlOg0KPiBP
biAwOC8wOC8yMDE3IDAzOjA1IFBNLCBTaGFvaHVhIExpIHdyb3RlOg0KPiA+ID4gSSdtIGN1cmlv
dXMgd2h5IG51bGxfYmxrIGlzbid0IGEgZ29vZCBmaXQ/IFlvdSdkIGp1c3QgbmVlZCB0byBhZGQg
UkFNDQo+ID4gPiBzdG9yYWdlIHRvIGl0LiBUaGF0IHdvdWxkIGp1c3QgYmUgYSBzZXBhcmF0ZSBv
cHRpb24gdGhhdCBzaG91bGQgYmUNCj4gPiA+IHNldCwNCj4gPiA+IHJhbV9iYWNraW5nPTEgb3Ig
c29tZXRoaW5nIGxpa2UgdGhhdC4gVGhhdCB3b3VsZCBtYWtlIGl0IGxlc3MgY3JpdGljYWwNCj4g
PiA+IHRoYW4gdXNpbmcgdGhlIFJBTSBkaXNrIGRyaXZlciBhcyB3ZWxsLCBzaW5jZSBvbmx5IHBl
b3BsZSB0aGF0IHdhbnQgYQ0KPiA+ID4gInJlYWwiDQo+ID4gPiBkYXRhIGJhY2tpbmcgd291bGQg
ZW5hYm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JlYWxseSBwcmVmZXIgYSBzaW5nbGUN
Cj4gPiBkcml2ZXIgZm9yIGFsbCB0ZXN0IHB1cnBvc2UsIEkgY2FuIG1vdmUgdGhlIHRlc3RfYmxr
IGZ1bmN0aW9uYWxpdGllcw0KPiA+IHRvIG51bGxfYmxrLg0KPiANCj4gVGhlIGlkZWEgd2l0aCBu
dWxsX2JsayBpcyBqdXN0IHRoYXQgaXQncyBhIHRlc3QgdmVoaWNsZS4gQXMgc3VjaCwgaXQNCj4g
d291bGQgYWN0dWFsbHkgYmUgdXNlZnVsIHRvIGhhdmUgYSBtb2RlIHdoZXJlIGl0IGRvZXMgc3Rv
cmUgdGhlIGRhdGEgaW4NCj4gUkFNLCBzaW5jZSB0aGF0IGVuYWJsZXMgeW91IHRvIGRvIG90aGVy
IGtpbmRzIG9mIHRlc3RpbmcgYXMgd2VsbC4gSSdkIGJlDQo+IGZpbmUgd2l0aCBhdWdtZW50aW5n
IGl0IHdpdGggY29uZmlnZnMgZm9yIGNlcnRhaW4gdGhpbmdzLg0KDQpIZWxsbyBKZW5zLA0KDQpX
b3VsZCB5b3UgY29uc2lkZXIgaXQgYWNjZXB0YWJsZSB0byBtYWtlIHRoZSBtb2RlIGluIHdoaWNo
IG51bGxfYmxrIHN0b3Jlcw0KZGF0YSB0aGUgZGVmYXVsdD8gSSBrbm93IHNldmVyYWwgcGVvcGxl
IHdobyBnb3QgY29uZnVzZWQgYnkgbnVsbF9ibGsgYnkNCmRlZmF1bHQgbm90IHJldGFpbmluZyBk
YXRhIC4uLg0KDQpUaGFua3MsDQoNCkJhcnQu

WARNING: multiple messages have this Message-ID (diff)
From: Bart Van Assche <Bart.VanAssche@wdc.com>
To: "shli@kernel.org" <shli@kernel.org>, "axboe@kernel.dk" <axboe@kernel.dk>
Cc: "linux-raid@vger.kernel.org" <linux-raid@vger.kernel.org>,
	"kernel-team@fb.com" <kernel-team@fb.com>,
	"hare@suse.de" <hare@suse.de>,
	"linux-block@vger.kernel.org" <linux-block@vger.kernel.org>,
	"kyungchan.koh@gmail.com" <kyungchan.koh@gmail.com>,
	"shli@fb.com" <shli@fb.com>
Subject: Re: [PATCH 0/5] block: a virtual block device driver for testing
Date: Tue, 8 Aug 2017 22:00:21 +0000	[thread overview]
Message-ID: <1502229619.2686.1.camel@wdc.com> (raw)
In-Reply-To: <73342715-25af-da8e-ae7e-f24015432055@kernel.dk>

On Tue, 2017-08-08 at 15:13 -0600, Jens Axboe wrote:
> On 08/08/2017 03:05 PM, Shaohua Li wrote:
> > > I'm curious why null_blk isn't a good fit? You'd just need to add RAM
> > > storage to it. That would just be a separate option that should be
> > > set,
> > > ram_backing=1 or something like that. That would make it less critical
> > > than using the RAM disk driver as well, since only people that want a
> > > "real"
> > > data backing would enable it.
> > > 
> > > It's not that I'm extremely opposed to adding a(nother) test block
> > > driver,
> > > but we at least need some sort of reasoning behind why, which isn't
> > > just
> > > "not a good fit".
> > 
> > Ah, I thought the 'null' of null_blk means we do nothing for the
> > disks. Of course we can rename it, which means this point less
> > meaningful. I think the main reason is the interface. We will
> > configure the disks with different parameters and do power on/off for
> > each disks (which is the key we can emulate disk cache and power
> > loss). The module paramter interface of null_blk doesn't work for the
> > usage. Of course, these issues can be fixed, for example, we can make
> > null_blk use the configfs interface. If you really prefer a single
> > driver for all test purpose, I can move the test_blk functionalities
> > to null_blk.
> 
> The idea with null_blk is just that it's a test vehicle. As such, it
> would actually be useful to have a mode where it does store the data in
> RAM, since that enables you to do other kinds of testing as well. I'd be
> fine with augmenting it with configfs for certain things.

Hello Jens,

Would you consider it acceptable to make the mode in which null_blk stores
data the default? I know several people who got confused by null_blk by
default not retaining data ...

Thanks,

Bart.

  reply	other threads:[~2017-08-08 22:00 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-05 15:51 [PATCH 0/5] block: a virtual block device driver for testing Shaohua Li
2017-08-05 15:51 ` [PATCH 1/5] testb: add interface Shaohua Li
2017-08-05 15:51 ` [PATCH 2/5] testb: implement block device operations Shaohua Li
2017-08-08 20:34   ` Jens Axboe
2017-08-05 15:51 ` [PATCH 3/5] testb: implement bandwidth control Shaohua Li
2017-08-05 15:51 ` [PATCH 4/5] testb: emulate disk cache Shaohua Li
2017-08-05 15:51 ` [PATCH 5/5] testb: badblock support Shaohua Li
2017-08-06  1:56   ` Dan Williams
2017-08-07  4:39     ` Shaohua Li
2017-08-07  8:29 ` [PATCH 0/5] block: a virtual block device driver for testing Hannes Reinecke
2017-08-07 16:36   ` Shaohua Li
2017-08-08 20:31     ` Jens Axboe
2017-08-08 21:05       ` Shaohua Li
2017-08-08 21:13         ` Jens Axboe
2017-08-08 22:00           ` Bart Van Assche [this message]
2017-08-08 22:00             ` Bart Van Assche
2017-08-08 22:07             ` Jens Axboe
2017-08-08 22:08             ` Omar Sandoval

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=1502229619.2686.1.camel@wdc.com \
    --to=bart.vanassche@wdc.com \
    --cc=axboe@kernel.dk \
    --cc=hare@suse.de \
    --cc=kernel-team@fb.com \
    --cc=kyungchan.koh@gmail.com \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-raid@vger.kernel.org \
    --cc=shli@fb.com \
    --cc=shli@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.