Jupyter Lab freezes the computer when out of RAM - how to prevent it?

后端 未结 7 1302
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-04 08:11

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

7条回答
  •  悲&欢浪女
    2021-02-04 08:39

    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.

提交回复
热议问题