linux/drivers/staging/android
Heesub Shin 0cd2dc4db3 staging: ion: shrink highmem pages on kswapd
ION system heap keeps pages in its pool for better performance. When the
system is under memory pressure, slab shrinker calls the callback
registered and then the pages pooled get freed.

When the shrinker is called, it checks gfp_mask and determines whether
the pages from highmem need to be freed or the pages from lowmem.
Usually, slab shrinker is invoked on kswapd context which gfp_mask is
always GFP_KERNEL, so only lowmem pages are released on kswapd context.
This means that highmem pages in the pool are never reclaimed until
direct reclaim occurs. This can be problematic when the page pool holds
excessive amounts of highmem.

For now, the shrinker callback cannot know exactly which zone should be
targeted for reclamation, as enough information are not passed to. Thus,
it makes sense to shrink both lowmem and highmem zone on kswapd context.

Reported-by: Wonseo Choi <wonseo.choi@samsung.com>
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Reviewed-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Tested-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-29 13:40:46 -07:00
..
ion staging: ion: shrink highmem pages on kswapd 2014-05-29 13:40:46 -07:00
trace
uapi staging: android: uapi: fix coding style 2014-04-16 20:17:31 -07:00
alarm-dev.c staging: android: fix missing a blank line after declarations 2014-05-03 19:46:30 -04:00
android_alarm.h staging: android: Split uapi out of android_alarm.h 2014-02-18 11:03:28 -08:00
ashmem.c staging: ashmem: Avoid deadlock between read and mmap calls 2014-02-07 09:03:16 -08:00
ashmem.h staging: android: Split uapi out of ashmem.h 2014-02-18 11:03:28 -08:00
binder_trace.h staging: binder: Support concurrent 32 bit and 64 bit processes. 2014-02-24 16:29:40 -08:00
binder.c staging: binder: fix usage of uninit scalar in binder_transaction() 2014-05-23 20:51:32 +09:00
binder.h staging: binder: Support concurrent 32 bit and 64 bit processes. 2014-02-24 16:29:40 -08:00
Kconfig Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2014-04-02 16:23:38 -07:00
logger.c staging: android: fix missing a blank line after declarations 2014-05-03 19:46:30 -04:00
logger.h
lowmemorykiller.c staging: android: lowmemorykiller: neglect swap cached pages in other_file 2014-02-27 14:51:27 -08:00
Makefile ion: Reenable the build 2013-12-15 09:40:11 -08:00
sw_sync.c staging: android: fix missing a blank line after declarations 2014-05-03 19:46:30 -04:00
sw_sync.h staging: android: split uapi out of sync.h and sw_sync.h 2014-02-18 11:03:28 -08:00
sync.c staging: android: describe use of memory barrier on sync.c 2014-05-25 11:09:14 -07:00
sync.h staging: android: split uapi out of sync.h and sw_sync.h 2014-02-18 11:03:28 -08:00
timed_gpio.c staging : android: Fixes a coding style issue in timed_gpio.c 2014-05-24 01:54:55 +09:00
timed_gpio.h
timed_output.c
timed_output.h staging: android: timed_output: fix a checkpatch warning 2014-02-11 12:27:30 -08:00
TODO