~francois-leblanc50/session-manager/ubuntu-session.d

« back to all changes in this revision

Viewing changes to ubuntu-session

  • Committer: Tarmac
  • Author(s): Ricardo Salveti de Araujo
  • Date: 2013-02-23 02:06:41 UTC
  • mfrom: (42.1.1 ubuntu-session)
  • Revision ID: tarmac-20130223020641-68xf095cm41j46b9
Increasing the default oom_adj for core applications to avoid being killed
by the android low memory killer.

Approved by PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
exec &> "$HOME/.ubuntu-session/logs/ubuntu-session.log"
22
22
 
23
23
# Default for any application executed from this script
24
 
DEFAULT_OOMADJ=2
 
24
DEFAULT_OOMADJ=-10
25
25
 
26
26
# /proc is is not properly mapped yet, so we need to use ps to find the
27
27
# right pid to be able to modify oom_adj