All of lore.kernel.org
 help / color / mirror / Atom feed
* [dm-devel] fstrim on raid1 LV with writemostly PV leads to system freeze
@ 2023-09-21 20:34 Kirill Kirilenko
  2023-09-21 21:45   ` Mike Snitzer
  0 siblings, 1 reply; 19+ messages in thread
From: Kirill Kirilenko @ 2023-09-21 20:34 UTC (permalink / raw)
  To: Alasdair Kergon, Mike Snitzer; +Cc: dm-devel

Hello.

I created two LVM physical volumes: one on NVMe device and one on SATA 
SSD. I added them to a volume group and created a logical RAID1 volume 
in it. Then I enabled 'writemostly' flag on the second (slowest) PV.
And my system started to freeze at random times with no messages in 
syslog. I was able to determine that the freezing was happening during 
execution of 'fstrim' (via systemd timer). I checked this by running 
'fstrim' manually.
If I disable the 'writemostly' flag, I experience no freezes. I can 
reproduce this behavior on vanilla 6.5.0 kernel.

My LV is 150 GB ext4 volume, and it has lots of files in it, so running 
'fstrim' takes around a minute. This may be important.

Additional information:
OS: Linux Mint 21.2
CPU: AMD Ryzen 7 5800X
NVMe: Samsung SSD 980 500GB
SATA SSD: Samsung SSD 850 EVO M.2 250GB

Best regards,
Kirill Kirilenko.

--
dm-devel mailing list
dm-devel@redhat.com
https://listman.redhat.com/mailman/listinfo/dm-devel


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

end of thread, other threads:[~2023-09-26 20:31 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-21 20:34 [dm-devel] fstrim on raid1 LV with writemostly PV leads to system freeze Kirill Kirilenko
2023-09-21 21:45 ` Mike Snitzer
2023-09-21 21:45   ` Mike Snitzer
2023-09-21 22:03   ` [dm-devel] " Roman Mamedov
2023-09-21 22:03     ` Roman Mamedov
2023-09-22 16:16     ` [dm-devel] " Kirill Kirilenko
2023-09-22 16:16       ` Kirill Kirilenko
2023-09-22 23:08       ` [dm-devel] " Song Liu
2023-09-22 23:08         ` Song Liu
2023-09-25  2:58     ` [dm-devel] " Yu Kuai
2023-09-25  2:58       ` Yu Kuai
2023-09-25 23:59       ` [dm-devel] " Kirill Kirilenko
2023-09-25 23:59         ` Kirill Kirilenko
2023-09-26  3:28         ` [dm-devel] " Yu Kuai
2023-09-26  3:28           ` Yu Kuai
     [not found]           ` <a4d3f9b0-15d5-4a90-f2c1-cad633badbbf@ultracoder.org>
2023-09-26 13:21             ` [dm-devel] " Yu Kuai
2023-09-26 13:21               ` Yu Kuai
2023-09-26 20:27               ` [dm-devel] " Kirill Kirilenko
2023-09-26 20:27                 ` Kirill Kirilenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.