From: Jens Axboe <axboe@kernel.dk>
To: Dmitry Monakhov <dmonakhov@openvz.org>,
Mike Krinkin <krinkin.m.u@gmail.com>,
linux-kernel@vger.kernel.org
Cc: hch@lst.de, kmo@daterainc.com
Subject: Re: submit bio directly from userspace
Date: Fri, 9 Oct 2015 08:32:51 -0600 [thread overview]
Message-ID: <5617D013.6070507@kernel.dk> (raw)
In-Reply-To: <87si5kz2ta.fsf@openvz.org>
On 10/09/2015 05:41 AM, Dmitry Monakhov wrote:
> Mike Krinkin <krinkin.m.u@gmail.com> writes:
>
>> Hi,
>>
>
>> i'm developing block layer workload simulator/player and need to
>> generate bios as close as possible to the ones in original workload.
>> To play workload i employ aio + O_DIRECT, but all IOs end up as bios
>> with SYNC flag set. So i wonder is there any way to control bios
>> flags from userspace or, maybe, any other options to generate
>> workload from userspace except aio + O_DIRECT with more precise
>> control over bio flags?
> 100% agree, I've investigated existing io-load replay tools and
> seems that they all use O_DIRECT(like btreplay) or
> buffered-aio/{sync_file_range,fadvise} ( like fio).
> So it looks like they all very inaccurate.
>
> Jens, what do to do to replay real load in order to test fs/ioscheduler
> harness? Are you interested in having such fine-tuning interface
> (probably guarded by CAP_SYS_ADMIN)?
A long time ago I wrote binject, which was meant to be a way to directly
inject bio's on a queue:
http://git.kernel.dk/cgit/linux-block/log/?h=binject
It hasn't been moved forward, however. I haven't looked, is is SYNC the
only flag addition we are worried about here? There are a slew of other
flags that may impact how IO is treated. For instance, file system has
tagged the request META. We can't pass that in either. Same is true for
FLUSH or FUA writes.
--
Jens Axboe
prev parent reply other threads:[~2015-10-09 14:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-07 14:42 submit bio directly from userspace Mike Krinkin
2015-10-09 11:41 ` Dmitry Monakhov
2015-10-09 14:32 ` Jens Axboe [this message]
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=5617D013.6070507@kernel.dk \
--to=axboe@kernel.dk \
--cc=dmonakhov@openvz.org \
--cc=hch@lst.de \
--cc=kmo@daterainc.com \
--cc=krinkin.m.u@gmail.com \
--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 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).