Loop Linux-mm, thanks.
I want to know, why lowmemory killer not included ION free memory?
Thnanks.
From: Zhiyuan Zhu(朱志遠)
Sent: Friday, May 12, 2017 4:56 PM
To: vinmenon@codeaurora.org
Cc: Kyle Lin(林昭凱); Zhiyuan Zhu(朱志遠)
Subject: Low memory killer problem
Dear Vinmenon,
I found a part of ION memory will be return to system in android platform,
But these memorys can’t accounted in low-memory-killer strategy.
…
And I also found ION memory comes from, kmalloc/vmalloc/alloc pages/reserved memory.
What affect if account these memorys for free?
Many thanks.
…
Lowmemory killer strategy
|
af6c02b83 (Vinayak Menon 2015-08-27 16:29:37 +0530 418) global_page_state(NR_FILE_PAGES) + zcache_pages()) af6c02b83 (Vinayak Menon 2015-08-27 16:29:37 +0530 419) other_file = global_page_state(NR_FILE_PAGES) + zcache_pages() - 058dbde92 (Vinayak Menon 2014-02-27 00:36:22 +0530 420) global_page_state(NR_SHMEM) - 058dbde92 (Vinayak Menon 2014-02-27 00:36:22 +0530 422) total_swapcache_pages(); |
Meminfo example
|
$ adb shell cat /proc/meminfo MemTotal: 3805312 kB MemFree: 1446220 kB MemAvailable: 2388384 kB Buffers: 16796 kB Cached: 1190868 kB … IonTotal: 224252 kB IonInUse: 199108 kB |
Thanks
BR
Zhiyuan zhu