How to disable lowmemorykiller [answered]
I've tried all the suggested methods (upping overcommit_ratio, putting 0,0,0,0... into minfree), cc1plus is still being killed when compiling on device.
I've tried all the suggested methods (upping overcommit_ratio, putting 0,0,0,0... into minfree), cc1plus is still being killed when compiling on device.
From https://answers.launchpad.net/ubuntu/+question/236764 the answe on how to disable OOM seems to be to set
/sys/module/lowmemorykiller/parameters/adj to 9999
and
/sys/module/lowmemorykiller/parameters/minfree to 1
If you really intendo to compile on-device, try this:
http://stackoverflow.com/questions/12964013/reducing-memory-allocation-gcc-command
Asked: 2015-07-14 04:52:12 +0300
Seen: 4,650 times
Last updated: Jul 14 '15
why, just why do you compile on-device?
tortoisedoc ( 2015-07-14 07:24:00 +0300 )editBecause I can (at least in theory, not atm), with tohkbd hoping this will work just like n900 so will be able to put all the commute time to use
szopin ( 2015-07-14 08:45:56 +0300 )editThanks, but cc1plus still gets killed (it does act weridly with those values, as it didn't kill the browser running in the background, with the previous settings I tried everything running in the background was killed too)
szopin ( 2015-07-14 10:41:58 +0300 )edit@Nieldk this is proper answer, weird behaviour of not killing browser was the oom not kicking in, just watched htop to see how gcc eats through all swap and remaining ram, will need to increase swap (pls convert to answer)
szopin ( 2015-07-14 19:07:08 +0300 )edit