So I’ve made myself some bash scripts to use bladebit and rclone so I can simultaneously create plots - store them in my NVME - move to HDDs
I’m still testing it so right now I have 5 scripts (will consolidate when I’m confident it will work)
1: makeplots with bladebit to fill up the nvme drive (4 directories within it)
2-5: Using some bash logic I’ll move existing plots and new plots over (1 by 1) to HDDs
To preface, I previously was doing this exact process in windows with Bladebit & RoboCopy on this same machine, but want to move to Ubuntu for admin reasons.
The problem I think I’m having is that scripts 2-5 are using up close to 250GiB of cache/buff space. So when Bladebit starts spinning up it has to reallocate - and the linux OOM Killer (out of memory killer) kills bladebit and one of rclone scripts at random. Unfortunately this takes a long time to happen and I am unsure how to even tell how the bash scripts are dying as the terminal windows are completely killed by the time I see that something has happened.
Surely this has to do with being less experienced with linux but from what I’ve been able to read it sounds a lot like OOM Killer.
I have a 512GB Ram machine and bladebit + scripts 2-5 can run fine on their own, but I’m unable to run them all simultaneously…
Does anyone know of a way I could pre-allocate and reserve free ram for just one of the scripts or prevent the rclone scripts from eating up so much buff space?
Actual RAM and Swap usage of scripts 2-5 and the rest of my system never exceed 6GiB so I should always have enough available.
I’ve seen others clearing buff space before they call bladebit, but from what I’ve read this is ill advised when you have other processes using it actively.
I wanted to see if anyone else had solutions that they were using to move plots in the background while a bladebit script chugs away.