I have recently started using Jupyter Lab and my problem is that I work with quite large datasets (usually the dataset itself is approx. 1/4 of my computer RAM). After few trans
If you are using Ubuntu, check out OOM killers, you can get information from here
You can use earlyoom. It can be configured as you wish, e.g. earlyoom -s 90 -m 15
will start the earlyoom
and when swap size is less than %90 and memory is less than %15, it will kill the process that causes OOM and prevent the whole system to freeze. You can also configure the priority of the processes.