Richard Raya 7fcc841631 mm: Fix OOM crash by limiting memory allocation
This commit reverts:
   - 5ec7cad9b99bf851d6ff2ee5904ece3639e1ec46 {"proc: add seq_put_decimal_ull_width to speed up /proc/pid/smaps"}
   - 603befd8e59eefe263d29f6cfc04455e58354703 {"fs/proc/task_mmu.c: do not show VmExe bigger than total executable virtual memory"}

This commit addresses a critical issue that led to app crashes due to out-of-memory (OOM) conditions. The issue arose when certain apps, such as "Livin' by Mandiri" attempted to allocate close to 1 GB of memory, causing the app to crash. The root cause of the problem was traced to memory allocation logic that allowed excessive memory usage. The commit introduces changes to several source files to mitigate this issue.

These changes address the underlying issue of apps crashing due to excessive memory allocation. By correctly formatting and reporting memory statistics, this commit ensures that apps like "Livin' by Mandiri" can safely allocate memory without encountering OOM crashes.

Change-Id: Ida596ad69c8308d38ca79d0fd51cc8ff87cc09f3
Suggested-by: Cyber Knight <cyberknight755@gmail.com>
Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
2024-09-26 13:16:03 -03:00
..
2024-09-26 13:15:39 -03:00