Skip to content

Commit

Permalink
Low memory solution in lollipop
Browse files Browse the repository at this point in the history
Signed-off-by: Javier Sayago <admin@lonasdigital.com>
  • Loading branch information
javilonas committed May 22, 2015
1 parent 51ce84c commit cdb87c8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions drivers/staging/android/lowmemorykiller.c
Expand Up @@ -74,15 +74,19 @@ static short lowmem_adj[6] = {
1,
6,
12,
13,
15,
};
static int lowmem_adj_size = 4;
static int lowmem_adj_size = 6;
static int lowmem_minfree[6] = {
3 * 512, /* 6MB */
2 * 1024, /* 8MB */
4 * 1024, /* 16MB */
16 * 1024, /* 64MB */
20 * 1024, /* 80MB */
28 * 1024, /* 112MB */
};
static int lowmem_minfree_size = 4;
static int lowmem_minfree_size = 6;

static unsigned long lowmem_deathpending_timeout;

Expand Down
2 changes: 1 addition & 1 deletion fs/dcache.c
Expand Up @@ -78,7 +78,7 @@
* dentry1->d_lock
* dentry2->d_lock
*/
int sysctl_vfs_cache_pressure __read_mostly = 100;
int sysctl_vfs_cache_pressure __read_mostly = 200;
EXPORT_SYMBOL_GPL(sysctl_vfs_cache_pressure);

static __cacheline_aligned_in_smp DEFINE_SPINLOCK(dcache_lru_lock);
Expand Down
2 changes: 1 addition & 1 deletion mm/mmap.c
Expand Up @@ -85,7 +85,7 @@ pgprot_t vm_get_page_prot(unsigned long vm_flags)
EXPORT_SYMBOL(vm_get_page_prot);

int sysctl_overcommit_memory __read_mostly = OVERCOMMIT_GUESS; /* heuristic overcommit */
int sysctl_overcommit_ratio __read_mostly = 50; /* default is 50% */
int sysctl_overcommit_ratio __read_mostly = 20; /* default is 20% */
int sysctl_max_map_count __read_mostly = DEFAULT_MAX_MAP_COUNT;
unsigned long sysctl_user_reserve_kbytes __read_mostly = 1UL << 17; /* 128MB */
unsigned long sysctl_admin_reserve_kbytes __read_mostly = 1UL << 13; /* 8MB */
Expand Down
2 changes: 1 addition & 1 deletion mm/page-writeback.c
Expand Up @@ -105,7 +105,7 @@ EXPORT_SYMBOL_GPL(dirty_writeback_interval);
/*
* The longest time for which data is allowed to remain dirty
*/
unsigned int dirty_expire_interval = 30 * 100; /* centiseconds */
unsigned int dirty_expire_interval = 10 * 100; /* centiseconds */

/*
* Flag that makes the machine dump writes/reads and block dirtyings.
Expand Down

0 comments on commit cdb87c8

Please sign in to comment.