Files
android_kernel_motorola_sm6225/drivers
huangzq2 347882f665 limit ion cache size
We often see lost ram is still very high even we close the camera app.
That's because camera's ion memory goes into ion cache after use, not
buddy system. And this cache was not counted in proc/meminfo/memAvailable,
so it can not reflect the true memAvailable in this state. It may affects
some components l(CR) camera or lmkd which need evaluate true memAvailable
in system. Take camera as example, while launching camera, camera app needs
calcuate the available memory then call framework api to kill processes,
without this patch, we will see overkill.

This patch is only for 4.14 & 4.19, on kernel 5.4, ion cache will
be counted in memAvailable, so memAvailable is always trustable.

Change-Id: I4a9678530d387bd8da404d797f7d6e33bd258ac4
Signed-off-by: huangzq2 <huangzq2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1792299
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
(cherry picked from commit a9acaa732c7fcb5e9ec9eea08bb6bb390c316722)
Reviewed-on: https://gerrit.mot.com/1795665
2023-06-01 00:47:14 -03:00
..
…
…
…
…
…
2021-09-26 22:35:51 -07:00
2023-06-01 00:47:06 -03:00
2022-11-04 02:36:16 -07:00
…
…
…
2023-06-01 00:47:10 -03:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2023-01-23 12:01:43 +05:30
2023-06-01 00:47:05 -03:00
…
…
…
…
2023-06-01 00:47:05 -03:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2023-06-01 00:47:14 -03:00
…
…
2023-06-01 00:47:13 -03:00
…
…
…
…
…
…
…
…