From: Qu Wenruo <wqu@suse.com>
To: "linux-block@vger.kernel.org" <linux-block@vger.kernel.org>,
minchan@kernel.org, senozhatsky@chromium.org
Subject: Super slow subpage IO on zram block devices?
Date: Tue, 31 Mar 2026 16:15:14 +1030 [thread overview]
Message-ID: <92361cd3-fb8b-482e-bc89-15ff1acb9a59@suse.com> (raw)
Hi,
Not sure if it's a regression or not, but on the latest 7.0-rc kernels,
the discard is unacceptable slow on zram devices, if the block size is
smaller than page size:
# uname -a
Linux btrfs-aarch64 7.0.0-rc5-custom-64k+ #7 SMP PREEMPT_DYNAMIC Tue
Mar 24 13:38:13 ACDT 2026 aarch64 GNU/Linux
# getconf PAGESIZE
65536
# zramctl
NAME ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram0 zstd 128M 0B 0B 0B
# time blkdiscard -p 4k /dev/zram0
[ It takes too long time that exceed my patient ]
After a reboot, if discarding using page size (64K), it finishes in seconds:
# time blkdiscard -p 64k /dev/zram0
real 0m0.024s
user 0m0.004s
sys 0m0.011s
I understand that using block size smaller than page size would cause
some overhead, but seemingly eternal is beyond my expectation of "overhead".
Is this a known bug or something else?
Thanks,
Qu
next reply other threads:[~2026-03-31 5:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-31 5:45 Qu Wenruo [this message]
2026-03-31 7:02 ` Super slow subpage IO on zram block devices? Sergey Senozhatsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=92361cd3-fb8b-482e-bc89-15ff1acb9a59@suse.com \
--to=wqu@suse.com \
--cc=linux-block@vger.kernel.org \
--cc=minchan@kernel.org \
--cc=senozhatsky@chromium.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox