We have moved to a new Sailfish OS Forum. Please start new discussions there.
5

How to disable lowmemorykiller [answered]

asked 2015-07-14 04:52:12 +0200

szopin gravatar image

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.

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by szopin
close date 2015-07-14 21:37:43.703249

Comments

why, just why do you compile on-device?

tortoisedoc ( 2015-07-14 07:24:00 +0200 )edit
5

Because 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 +0200 )edit
1

Thanks, 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 +0200 )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 +0200 )edit

2 Answers

Sort by » oldest newest most voted
5

answered 2015-07-14 09:54:55 +0200

Nieldk gravatar image

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

edit flag offensive delete publish link more

Comments

Thank you so much! Now i can do real multitasking again! :-D Will this be persistent or will i have to re-do this after reboot?

DLQ ( 2016-07-02 19:09:15 +0200 )edit
1

answered 2015-07-14 11:30:46 +0200

tortoisedoc gravatar image

If you really intendo to compile on-device, try this:

http://stackoverflow.com/questions/12964013/reducing-memory-allocation-gcc-command

edit flag offensive delete publish link more

Comments

thanks but that does nothing, gcc fails at allocating memory, so same end result unless you didn't mean ulimit but what the guy had in mind asking that question and lowering memory usage of already compiled app, but that is irrelevant here

szopin ( 2015-07-14 18:03:22 +0200 )edit

Yes, I meant ulimit

tortoisedoc ( 2015-07-14 18:18:30 +0200 )edit

Question tools

Follow
9 followers

Stats

Asked: 2015-07-14 04:52:12 +0200

Seen: 4,377 times

Last updated: Jul 14 '15