Bug 838615 - Add missing process-priority nice values to b2g.js. r=cjones

This sets background_perceivable's nice at 10 and
background{,_homescreen}'s nice at 20.  I'm a bit worried that this will
de-prioritize background_perceivable so much that music players may
start skipping.  But we need to test.

--HG--
extra : rebase_source : e759ffb5bb58b89838c1dafdc49f737832593961
This commit is contained in:
Justin Lebar 2013-02-08 14:32:24 +00:00
parent 1c3c24b55e
commit 9d51477c3d

View File

@ -565,9 +565,11 @@ pref("hal.processPriorityManager.gonk.backgroundKillUnderMB", 8);
pref("hal.processPriorityManager.gonk.notifyLowMemUnderMB", 10);
// Niceness values (i.e., CPU priorities) for B2G processes.
pref("hal.processPriorityManager.gonk.masterNice", -1);
pref("hal.processPriorityManager.gonk.foregroundNice", 0);
pref("hal.processPriorityManager.gonk.backgroundNice", 10);
pref("hal.processPriorityManager.gonk.masterNice", 0);
pref("hal.processPriorityManager.gonk.foregroundNice", 1);
pref("hal.processPriorityManager.gonk.backgroundPerceivableNice", 10);
pref("hal.processPriorityManager.gonk.backgroundHomescreenNice", 20);
pref("hal.processPriorityManager.gonk.backgroundNice", 20);
#ifndef DEBUG
// Enable pre-launching content processes for improved startup time