Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong read speed result for Samsung SSD 970 EVO Plus #1202

Closed
1 task done
tim77 opened this issue Mar 10, 2021 · 7 comments
Closed
1 task done

Wrong read speed result for Samsung SSD 970 EVO Plus #1202

tim77 opened this issue Mar 10, 2021 · 7 comments

Comments

@tim77
Copy link

tim77 commented Mar 10, 2021

Please acknowledge the following before creating a ticket

Description of the bug:
Strange speed results for Samsung SSD 970 EVO Plus (1TB version and others). By datasheet speed rated at 3500MB/s. In gnome-disks i have ~3500MB/s sequential read but kdiskmark and fio shows me only ~1500MB/s. And write speed ~2900MB/s. So read speed shows half of stated speed.

Environment:

  • Fedora 33
  • kernel 5.10.20

fio version: 3.21

Reproduction steps

echo 3 | sudo tee /proc/sys/vm/drop_caches
fio --ioengine=libaio --direct=1 --randrepeat=0 --refill_buffers --end_fsync=1 --filename=test-fio.tmp --name=readjob --size=128M --bs=1m --rw=read --iodepth=8 --loops=5

Seems like this issue appears first time in 5.10 kernel. In 5.9 no such weird speed deviation.

Downstream bug report: JonMagon/KDiskMark#48

@axboe
Copy link
Owner

axboe commented Mar 10, 2021

This sounds like a kernel issue, not a fio issue. Are you familiar with building and booting your own kernels? Would likely be the easiest to pin-point by doing a bisect between 5.9 and 5.10.

Are you using an IO scheduler for the nvme device? Assuming you have just the one NVMe device, do:

$ cat /sys/block/nvme0n1/queue/scheduler

and see what that says.

@tim77
Copy link
Author

tim77 commented Mar 10, 2021

❯ cat /sys/block/nvme0n1/queue/scheduler
[none] mq-deadline kyber bfq

@axboe
Copy link
Owner

axboe commented Mar 10, 2021

OK, can't be the scheduler then. Are you able to build and boot kernels? If not, we can tentatively try -rc builds, if they are available...

@tim77
Copy link
Author

tim77 commented Mar 10, 2021

Yep. Need some time. Forgot to say that we tried kernel 5.11.5 and problem is still here.

Maybe we should report to Red Hat bugzilla into kernel as well?

@axboe
Copy link
Owner

axboe commented Mar 10, 2021

Yes, report it to RH if that's your distro, or send an email to linux-kernel@vger.kernel.org with the details - note, however, that particularly the latter will end up with folks (or me) asking you go bisect it as well. I'll be happy to debug it with you here, as long as you can bisect, build, and boot each kernel and run your test case. Then we should trivially be able to narrow it down to the change that caused it.

@axboe
Copy link
Owner

axboe commented Mar 31, 2021

Closing, not a fio issue.

@axboe axboe closed this as completed Mar 31, 2021
@RokeJulianLockhart
Copy link

RokeJulianLockhart commented Jun 30, 2022

@tim77, have you reported it?

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

No branches or pull requests

3 participants