Skip to content

Commit

Permalink
benchmark/disk: Use IORING_SETUP_SINGLE_ISSUER flag
Browse files Browse the repository at this point in the history
This should make io_uring slightly faster

Signed-off-by: Free Ekanayaka <free@ekanayaka.io>
  • Loading branch information
freeekanayaka committed Sep 18, 2023
1 parent 42a28ea commit ca379d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/benchmark/disk_uring.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ static int initUring(int fd, struct iovec *iov)

/* See io_uring_setup(2) for io_uring_params.flags you can set */
memset(&p, 0, sizeof(p));
p.flags = IORING_SETUP_SINGLE_ISSUER;
_ring_fd = _io_uring_setup(QUEUE_DEPTH, &p);
if (_ring_fd < 0) {
perror("io_uring_setup");
Expand Down

0 comments on commit ca379d1

Please sign in to comment.