summaryrefslogtreecommitdiff
path: root/target/linux/goldfish/patches-2.6.30/0053-lowmemorykiller-Don-t-count-free-space-unless-it-me.patch
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-12-18 17:53:53 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-12-18 17:53:53 +0000
commit13e1228de3690c8c831b9cccbe5a34674e743362 (patch)
tree0c747bbe3b9ccb30a4e4c5e277825d9a8ba914e4 /target/linux/goldfish/patches-2.6.30/0053-lowmemorykiller-Don-t-count-free-space-unless-it-me.patch
parent8f54e709747e711460f8a49acdcf86841920db8b (diff)
goldfish: R.I.P.
It is broken and it is not maintained by anyone since long time. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34766 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/goldfish/patches-2.6.30/0053-lowmemorykiller-Don-t-count-free-space-unless-it-me.patch')
-rw-r--r--target/linux/goldfish/patches-2.6.30/0053-lowmemorykiller-Don-t-count-free-space-unless-it-me.patch48
1 files changed, 0 insertions, 48 deletions
diff --git a/target/linux/goldfish/patches-2.6.30/0053-lowmemorykiller-Don-t-count-free-space-unless-it-me.patch b/target/linux/goldfish/patches-2.6.30/0053-lowmemorykiller-Don-t-count-free-space-unless-it-me.patch
deleted file mode 100644
index 605e723187..0000000000
--- a/target/linux/goldfish/patches-2.6.30/0053-lowmemorykiller-Don-t-count-free-space-unless-it-me.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-From f82da10dcae73652a6f0355e4398b4be1af17e6b Mon Sep 17 00:00:00 2001
-From: =?utf-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?= <arve@android.com>
-Date: Mon, 26 Jan 2009 19:22:19 -0800
-Subject: [PATCH 053/134] lowmemorykiller: Don't count free space unless it meets the specified limit by itself
-MIME-Version: 1.0
-Content-Type: text/plain; charset=utf-8
-Content-Transfer-Encoding: 8bit
-
-This allows processes to be killed when the kernel evict cache pages in
-an attempt to get more contiguous free memory.
-
-Signed-off-by: Arve Hjønnevåg <arve@android.com>
----
- drivers/staging/android/lowmemorykiller.c | 13 +++++++++----
- 1 files changed, 9 insertions(+), 4 deletions(-)
-
---- a/drivers/staging/android/lowmemorykiller.c
-+++ b/drivers/staging/android/lowmemorykiller.c
-@@ -58,20 +58,25 @@ static int lowmem_shrink(int nr_to_scan,
- int min_adj = OOM_ADJUST_MAX + 1;
- int selected_tasksize = 0;
- int array_size = ARRAY_SIZE(lowmem_adj);
-- int other_free = global_page_state(NR_FREE_PAGES) + global_page_state(NR_FILE_PAGES);
-+ int other_free = global_page_state(NR_FREE_PAGES);
-+ int other_file = global_page_state(NR_FILE_PAGES);
- if(lowmem_adj_size < array_size)
- array_size = lowmem_adj_size;
- if(lowmem_minfree_size < array_size)
- array_size = lowmem_minfree_size;
- for(i = 0; i < array_size; i++) {
-- if(other_free < lowmem_minfree[i]) {
-+ if (other_free < lowmem_minfree[i] &&
-+ other_file < lowmem_minfree[i]) {
- min_adj = lowmem_adj[i];
- break;
- }
- }
- if(nr_to_scan > 0)
-- lowmem_print(3, "lowmem_shrink %d, %x, ofree %d, ma %d\n", nr_to_scan, gfp_mask, other_free, min_adj);
-- rem = global_page_state(NR_ACTIVE) + global_page_state(NR_INACTIVE);
-+ lowmem_print(3, "lowmem_shrink %d, %x, ofree %d %d, ma %d\n", nr_to_scan, gfp_mask, other_free, other_file, min_adj);
-+ rem = global_page_state(NR_ACTIVE_ANON) +
-+ global_page_state(NR_ACTIVE_FILE) +
-+ global_page_state(NR_INACTIVE_ANON) +
-+ global_page_state(NR_INACTIVE_FILE);
- if (nr_to_scan <= 0 || min_adj == OOM_ADJUST_MAX + 1) {
- lowmem_print(5, "lowmem_shrink %d, %x, return %d\n", nr_to_scan, gfp_mask, rem);
- return rem;