메모리 양이 0에 가까워질 때 컴퓨터가 응답하지 않는 것을 방지할 수 있는 방법이 있습니까?

메모리 양이 0에 가까워질 때 컴퓨터가 응답하지 않는 것을 방지할 수 있는 방법이 있습니까?

메모리에서 컴퓨터를 실행하고 과도한 작업을 수행한 후 많은 양의 메모리가 해제될 때까지 컴퓨터가 응답하지 않습니다.

내 컴퓨터는 16GB이고 이미지는 약 3.5GB이며 intellij, maven 등을 실행합니다. 나는 아직도 16GB는 물론이고 12GB 이상을 확보하는 것을 상상할 수 없습니다. 이러한 상황에 가까웠다면 응답하지 않는 것보다 "메모리를 할당할 수 없습니다"라는 오류 메시지가 표시되는 편이 낫습니다.

내 메모리 설정:

vm.oom_dump_tasks = 1
vm.oom_kill_allocating_task = 0

vm.overcommit_kbytes = 0
vm.overcommit_memory = 2
vm.overcommit_ratio = 100

vm.swappiness = 60

이 문제를 시뮬레이션하는 동안 발생한 유일한 오류는 다음과 같습니다.

[Wed Nov  1 21:47:47 2017] wlan0: failed to remove key (1, 

ff:ff:ff:ff:ff:ff) from hardware (-22)
[Wed Nov  1 21:47:47 2017] wlan0: failed to remove key (2, ff:ff:ff:ff:ff:ff) from hardware (-22)
[Wed Nov  1 21:50:26 2017] udevd[3187]: worker [13086] /devices/platform/regulatory.0 is taking a long time
[Wed Nov  1 21:51:54 2017] udevd[3187]: worker [13086] /devices/platform/regulatory.0 timeout; kill it
[Wed Nov  1 21:51:54 2017] udevd[3187]: seq 2620 '/devices/platform/regulatory.0' killed
[Wed Nov  1 21:52:27 2017] udevd[3187]: worker [13086] terminated by signal 9 (Killed)
[Wed Nov  1 21:52:27 2017] udevd[3187]: worker [13086] failed while handling '/devices/platform/regulatory.0'
[Wed Nov  1 21:52:32 2017] crond (13080) used greatest stack depth: 12120 bytes left
[Wed Nov  1 21:54:12 2017] udevd[3187]: worker [13099] /devices/platform/regulatory.0 is taking a long time
[Wed Nov  1 21:55:55 2017] udevd[13099]: timeout '/usr/sbin/crda'
[Wed Nov  1 21:55:55 2017] udevd[13099]: slow: '/usr/sbin/crda' [13101]
[Wed Nov  1 21:55:55 2017] udevd[3187]: worker [13099] /devices/platform/regulatory.0 timeout; kill it
[Wed Nov  1 21:55:55 2017] udevd[3187]: seq 2621 '/devices/platform/regulatory.0' killed
[Wed Nov  1 21:57:03 2017] udevd[3187]: worker [13099] terminated by signal 9 (Killed)
[Wed Nov  1 21:57:03 2017] udevd[3187]: worker [13099] failed while handling '/devices/platform/regulatory.0'
[Wed Nov  1 21:59:01 2017] udevd[3187]: worker [13118] /devices/platform/regulatory.0 is taking a long time
[Wed Nov  1 22:00:48 2017] udevd[13118]: timeout '/usr/sbin/crda'
[Wed Nov  1 22:00:57 2017] udevd[13118]: slow: '/usr/sbin/crda' [13122]
[Wed Nov  1 22:00:57 2017] udevd[3187]: worker [13118] /devices/platform/regulatory.0 timeout; kill it
[Wed Nov  1 22:00:57 2017] udevd[3187]: seq 2622 '/devices/platform/regulatory.0' killed
[Wed Nov  1 22:01:35 2017] udevd[3187]: worker [13118] terminated by signal 9 (Killed)
[Wed Nov  1 22:01:46 2017] udevd[3187]: worker [13118] failed while handling '/devices/platform/regulatory.0'
[Wed Nov  1 22:03:40 2017] udevd[3187]: worker [13140] /devices/platform/regulatory.0 is taking a long time
[Wed Nov  1 22:05:49 2017] udevd[13140]: timeout '/usr/sbin/crda'
[Wed Nov  1 22:05:54 2017] udevd[3187]: worker [13140] /devices/platform/regulatory.0 timeout; kill it
[Wed Nov  1 22:05:54 2017] udevd[3187]: seq 2623 '/devices/platform/regulatory.0' killed
[Wed Nov  1 22:06:03 2017] udevd[3187]: worker [13140] terminated by signal 9 (Killed)
[Wed Nov  1 22:06:03 2017] udevd[3187]: worker [13140] failed while handling '/devices/platform/regulatory.0'
[Wed Nov  1 22:08:00 2017] udevd[3187]: worker [13164] /devices/platform/regulatory.0 is taking a long time
[Wed Nov  1 22:09:50 2017] udevd[3187]: worker [13164] /devices/platform/regulatory.0 timeout; kill it
[Wed Nov  1 22:09:50 2017] udevd[3187]: seq 2624 '/devices/platform/regulatory.0' killed
[Wed Nov  1 22:09:50 2017] crda (13170) used greatest stack depth: 12104 bytes left
[Wed Nov  1 22:10:08 2017] udevd[3187]: worker [13164] terminated by signal 9 (Killed)
[Wed Nov  1 22:10:21 2017] udevd[3187]: worker [13164] failed while handling '/devices/platform/regulatory.0'
[Wed Nov  1 22:11:49 2017] udevd[3187]: worker [13180] /devices/platform/regulatory.0 is taking a long time
[Wed Nov  1 22:13:57 2017] udevd[3187]: worker [13180] /devices/platform/regulatory.0 timeout; kill it
[Wed Nov  1 22:13:57 2017] udevd[3187]: seq 2625 '/devices/platform/regulatory.0' killed

관련 정보