[oe] app launchers should NOT modify /proc/sys/vm

Sebastian Spaeth Sebastian at SSpaeth.de
Tue Nov 24 12:29:32 UTC 2009


P.S. Sorry if this comes through twice. Dreamhost mail server was having
issues...

Currently, the navit (routing app) launcher script modifies
/proc/sys/vm/overcommit_memory without ever setting it back. This change
should -if at all- should only be done with serious evaluation on the
respective devices IMHO. I don't want to introduce random OOM process
killings for everyone because apps start using the RAM the kernel has
promised to them.

Do I get the OK to remove the launcher which is only doing this hackery?
I will follow up on this mail with a patch that you can ACK.

spaetz

Commit introducing this:
http://cgit.openembedded.net/cgit.cgi/openembedded/commit/?id=742fb4ae71e6a7e655385086ba9edebbf00b6ebd

author	Matthias Hentges <oe at hentges.net>
committer	Matthias Hentges <oe at hentges.net>	2008-01-05
commit	742fb4ae71e6a7e655385086ba9edebbf00b6ebd
--- a/dev/null
+++ b/packages/navit/files/navit.launcher
...
+ if test "$USER" = "root"
+ then
+ echo "Enabling low-mem workaround..."
+ echo 1 > /proc/sys/vm/overcommit_memory







More information about the Openembedded-devel mailing list