Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1243285
| From | Dmitry Monakhov <dmonakhov@openvz.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: submit bio directly from userspace |
| Date | 2015-10-09 13:50 +0200 |
| Message-ID | <qhElr-129-9@gated-at.bofh.it> (permalink) |
| References | <qgYcy-7Ng-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
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)?
There are several places where we can pass such flag
1) iocb->aio_flag, add IOCB_FLAG_DIRECT_ASYNC
2) add new flag O_DIRECT_ASYNC to file->f_flags
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
submit bio directly from userspace Mike Krinkin <krinkin.m.u@gmail.com> - 2015-10-07 16:50 +0200
Re: submit bio directly from userspace Dmitry Monakhov <dmonakhov@openvz.org> - 2015-10-09 13:50 +0200
Re: submit bio directly from userspace Jens Axboe <axboe@kernel.dk> - 2015-10-09 16:40 +0200
csiph-web