Skip to content
Snippets Groups Projects
Commit ff2bb7c5 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Override default Gecko LMK settings for low-memory targets"

parents 67bb86b2 eb2a7273
No related branches found
Tags LF.BR.1.2.3-15400-8x09.0
No related merge requests found
......@@ -61,3 +61,25 @@ $(foreach file,$(GAIA_DISTRIBUTION_SRC_FILES),\
$(eval $(call mk_gaia_distribution_file, $(file), $(GAIA_DISTRIBUTION_DIR)/$(notdir $(file)))))
endif
ifeq ($(TARGET_USES_265MB_CONFIG), true)
# Gecko low-memory killer setting overrides
#
# It would be nice to use PRODUCT_COPY_FILES here instead but that is not
# currently possible due to various |rm -rf ...| commands in
# {gaia,gonk-misc}/Android.mk that Make does not know about.
#
$(TARGET_OUT)/gecko: gaia/profile/defaults/pref/lmk.js
.PHONY: gaia/profile/defaults/pref/lmk.js
gaia/profile/defaults/pref/lmk.js: gaia/profile.tar.gz
mkdir -p $(@D)
echo '// Give background applications more headroom' > $@
echo 'pref("hal.processPriorityManager.gonk.BACKGROUND.KillUnderKB", 14336);' >> $@
echo '// Notify low memory between BACKGROUND and BACKGROUND_HOMESCREEN' >> $@
echo 'pref("hal.processPriorityManager.gonk.notifyLowMemUnderKB", 12288);' >> $@
echo '// Kill the preallocated process before any foreground app (FOREGROUND_KEYBOARD)' >> $@
echo 'pref("hal.processPriorityManager.gonk.PREALLOC.OomScoreAdjust", 300);' >> $@
endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment