cosmos72 / fstransform

tool for in-place filesystem conversion (for example from jfs/xfs/reiser to ext2/ext3/ext4) without backup
GNU General Public License v2.0
278 stars 28 forks source link

Please consider self-protecting fsremap against OOM killer #11

Open patrakov opened 7 years ago

patrakov commented 7 years ago

In a test VM, I got fsremap OOM-killed. I think it is a good idea to add protection against this, by having fsremap (or maybe even the fstransform script?) write -1000 into its own oom_score_adj file.

cosmos72 commented 7 years ago

That's an interesting idea, I did not know it was possible. Thanks

jordandalley commented 2 years ago

Definitely +1 on this. I was doing a ext4 to xfs conversion on a Raspberry Pi 4 (Model B) and it got to the fsremap stage and all it would say was "killed". dmesg showed the process being killed by the OOM reaper.

FYI for anyone ever getting stuck with this on the RPI 4 is to enable arm_64bit=1 in /boot/config.txt, reboot and resume it.