Skip to content

fuse: {io-uring} Prefer the current core over mapping#93

Merged
bsbernd merged 1 commit intoredfs-ubuntu-noble-6.8.0-58.60from
prefer-cur-core-redfs-ubuntu-noble-6.8.0-58.60
Feb 13, 2026
Merged

fuse: {io-uring} Prefer the current core over mapping#93
bsbernd merged 1 commit intoredfs-ubuntu-noble-6.8.0-58.60from
prefer-cur-core-redfs-ubuntu-noble-6.8.0-58.60

Conversation

@bsbernd
Copy link
Collaborator

@bsbernd bsbernd commented Feb 11, 2026

Mapping might point to a totally different core due to random assignment. For performance using the current core might be beneficial

Example (with core binding)

unpatched WRITE: bw=841MiB/s
patched WRITE: bw=1363MiB/s

With
fio --name=test --ioengine=psync --direct=1
--rw=write --bs=1M --iodepth=1 --numjobs=1
--filename_format=/redfs/testfile.$jobnum --size=100G
--thread --create_on_open=1 --runtime=30s --cpus_allowed=1

In order to get the good number --cpus_allowed=1 is needed. This could be improved by a future change that avoids cpu migration in fuse_request_end() on wake_up() call.

@bsbernd bsbernd requested review from hbirth and yongzech February 11, 2026 16:29
hbirth
hbirth previously approved these changes Feb 11, 2026
Copy link
Collaborator

@hbirth hbirth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

yongzech
yongzech previously approved these changes Feb 12, 2026
@bsbernd bsbernd dismissed stale reviews from yongzech and hbirth via 51be590 February 13, 2026 09:44
@bsbernd bsbernd force-pushed the prefer-cur-core-redfs-ubuntu-noble-6.8.0-58.60 branch 2 times, most recently from 51be590 to e27deeb Compare February 13, 2026 10:00
Mapping might point to a totally different core due to
random assignment. For performance using the current
core might be beneficial

Example (with core binding)

unpatched WRITE: bw=841MiB/s
patched   WRITE: bw=1363MiB/s

With
fio --name=test --ioengine=psync --direct=1 \
    --rw=write --bs=1M --iodepth=1 --numjobs=1 \
    --filename_format=/redfs/testfile.\$jobnum --size=100G \
    --thread --create_on_open=1 --runtime=30s --cpus_allowed=1

In order to get the good number `--cpus_allowed=1` is needed.
This could be improved by a future change that avoids
cpu migration in fuse_request_end() on wake_up() call.
@bsbernd bsbernd force-pushed the prefer-cur-core-redfs-ubuntu-noble-6.8.0-58.60 branch from e27deeb to e550593 Compare February 13, 2026 12:02
@bsbernd bsbernd merged commit 32e0073 into redfs-ubuntu-noble-6.8.0-58.60 Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants