-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Sometimes a delay of up to zfs_txg_timeout seconds when doing ftruncate #14290
Comments
May I suggest the title and description of this issue be altered to make it more generic? It appears to not be specific to RPM, and is at least a more general issue with sqlite, and likely even more generally just ftruncate. There are a few linked issues above where other uses of sqlite on ZFS see this problem. |
I can trivially reproduce this in my setup (zfs over luks2 as well). |
Would you say it is just ftruncate or also fsync? |
I think it's only Quoting myself from that issue:
|
Not sure if it makes a difference, but |
Oh also, |
wasn't able to trigger it with It's interesting that it comes in waves for atuin. Sometimes there are minutes without this issue and thn it triggers several times in a row. The loadavg of this machine is negligible (0.44 0.73 0.75 on a 12-core box), the ram is almost free. There's a VM slowly spinning (but mostly doing nothing) in the background. iotop is mostly journald and zvol activity. |
I'm going to say some things I don't really understand in the hopes that it triggers something in someone who knows what they're doing... I hear the ZIL has a default time for "flush" for every 5s set by the module param I'm wondering if maybe the ZIL must flush txgs before the return, thus sometimes it's in the low ms if that timer was already about to fire or other times if the Looking at |
I previously tested this, changing that timeout to 20s made |
System information
Describe the problem you're observing
Usually
rpm
commands execute quickly, but pretty often (10% of the cases) there is 4 second extra delay:I have ZFS as root fs running on top of LUKS2. NVMe Corsair MP510 (Max Random Write QD32 IOMeter: Up to 440K IOPS) with practically zero other IO operations when I run
rpm
.Describe how to reproduce the problem
Just try rpm again.
Include any warning/errors/backtraces from the system logs
zpool show no errors and:
The text was updated successfully, but these errors were encountered: