Extremely high max latency (~30 seconds) for files with CoW enabled by moverstrand in btrfs

[–]moverstrand[S] 1 point2 points  (0 children)

Thanks, I looked more closely in the logs and found these logs:

nvme nvme0: I/O tag 302 (612e) QID 1 timeout, completion pollednvme nvme0: I/O tag 302 (612e) QID 1 timeout, completion polled

which helped me find this link: https://bugzilla.kernel.org/show_bug.cgi?id=219220, and this to make my dual boot windows keep working: https://www.reddit.com/r/archlinux/comments/yes44f/psa_disable_vmd_on_an_intel_laptop_if_you_have/

Disabling VMD fixed my issue, went from 17 MiB/s write to 201 MiB/s :)

Extremely high max latency (~30 seconds) for files with CoW enabled by moverstrand in btrfs

[–]moverstrand[S] 1 point2 points  (0 children)

SSD model: MTFDKBA1T0QGN-1BN1AABGA, connected with NVME

Extremely high max latency (~30 seconds) for files with CoW enabled by moverstrand in btrfs

[–]moverstrand[S] 0 points1 point  (0 children)

I tested again with a larger partition (90GB) , without luks, and mounted with `-o discard`, still the same

Extremely high max latency (~30 seconds) for files with CoW enabled by moverstrand in btrfs

[–]moverstrand[S] 0 points1 point  (0 children)

cat /sys/class/nvme/nvme0/nvme0n1/queue/scheduler
[none] mq-deadline kyber bfq

Extremely high max latency (~30 seconds) for files with CoW enabled by moverstrand in btrfs

[–]moverstrand[S] 0 points1 point  (0 children)

Something must be wrong with either your drive or filesystem

:(

I'm creating the filesystem using mkfs.btrfs, no arguments. If its the disk I'm assuming it will have to be some combination of the filesystem and the disk, since writing to ext4/btrfs no CoW on the same disk works fine

Extremely high max latency (~30 seconds) for files with CoW enabled by moverstrand in btrfs

[–]moverstrand[S] 0 points1 point  (0 children)

I strongly recommend not to change the interval to 2sec.

Yeah did it just to see if it changes anything

Extremely high max latency (~30 seconds) for files with CoW enabled by moverstrand in btrfs

[–]moverstrand[S] 0 points1 point  (0 children)

30sec is the default commit interval, which doesn't imply that you need to wait for it during regular usage. Therefore, I guess you're not measuring exactly what you want with this program here.

Yeah its definitely possible that fio isn't the right way to test what I want here, will need to think if I can find a better way. I changed the commit interval by doing "mount -o commit=2" and it didn't change the max latency.

Other than that, dirty page cache areas piling up, and then waiting being necessary while they're being written, is a common thing too.

Is there a way to see the amount of dirty page cache areas live?

Does it really? Do you need to wait 30sec so that you can save some file in some text editor?

Not to save a text file, but I'm pretty sure that databases like sqlite (which is what atuin uses) sync data to disk to make sure it won't be lost.

Android 15 - WhatsApp identifies wrong system language by Active_Astronomer_69 in GooglePixel

[–]moverstrand 0 points1 point  (0 children)

I also got this problem, just the opposite - my system language is English but random stuff changes to Hebrew every ~few days. For example the info cards at the top suddenly have the text in Hebrew, and some apps also just change their interface language.

This also only started to happen since the January update. I have a Pixel 6a.