linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] Slow down of LTP tests aiodio_sparse.c and dio_sparse.c in kernel 6.6
@ 2024-07-19 17:43 Petr Vorel
  2024-07-19 18:36 ` Jens Axboe
  2024-07-22  9:00 ` Jan Kara
  0 siblings, 2 replies; 8+ messages in thread
From: Petr Vorel @ 2024-07-19 17:43 UTC (permalink / raw)
  To: ltp
  Cc: linux-block, linux-btrfs, linux-xfs, fstests, Jens Axboe,
	Jan Kara, David Sterba, Filipe Manana, Amir Goldstein,
	Cyril Hrubis, Andrea Cervesato, Avinesh Kumar

Hi all,

LTP AIO DIO tests aiodio_sparse.c [1] and dio_sparse.c [2] (using [3]) slowed
down on kernel 6.6 on Btrfs and XFS, when run with default parameters. These
tests create 100 MB sparse file and write zeros (using libaio or O_DIRECT) while
16 other processes reads the buffer and check only zero is there.

Runtime of this particular setup (i.e. 100 MB file) on Btrfs and XFS on the
same system slowed down 9x (6.5: ~1 min 6.6: ~9 min). Ext4 is not affected.
(Non default parameter creates much smaller file, thus the change is not that
obvious).

Because the slowdown has been here for few kernel releases I suppose nobody
complained and the test is somehow artificial (nobody uses this in a real world).
But still it'd be good to double check the problem. I can bisect a particular
commit.

Because 2 filesystems affected, could be "Improve asynchronous iomap DIO
performance" [4] block layer change somehow related?

Kind regards,
Petr

[1] https://github.com/linux-test-project/ltp/tree/master/testcases/kernel/io/ltp-aiodio/aiodio_sparse.c
[2] https://github.com/linux-test-project/ltp/tree/master/testcases/kernel/io/ltp-aiodio/dio_sparse.c
[3] https://github.com/linux-test-project/ltp/tree/master/testcases/kernel/io/ltp-aiodio/common.h
[4] https://kernelnewbies.org/Linux_6.6#Block_layer

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-07-24 16:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-19 17:43 [RFC] Slow down of LTP tests aiodio_sparse.c and dio_sparse.c in kernel 6.6 Petr Vorel
2024-07-19 18:36 ` Jens Axboe
2024-07-19 20:13   ` Petr Vorel
2024-07-19 20:21     ` Jens Axboe
2024-07-22  9:00 ` Jan Kara
2024-07-22 13:13   ` Petr Vorel
2024-07-24 13:18   ` Petr Vorel
2024-07-24 16:29     ` Mike Galbraith

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).