mirror of
https://github.com/Evolution-X-Devices/kernel_google_b1c1
synced 2026-01-27 17:26:47 +00:00
mm: Never allow allocations more than our physical memory
This should provide faster allocations than OVERCOMMIT_GUESS, without the significant OOM risk of OVERCOMMIT_ALWAYS. Signed-off-by: Tyler Nijmeh <tylernij@gmail.com>
This commit is contained in:
committed by
DhineshCool
parent
2ae95c14b1
commit
1eaff7a60f
@@ -532,8 +532,8 @@ int __page_mapcount(struct page *page)
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(__page_mapcount);
|
||||
|
||||
int sysctl_overcommit_memory __read_mostly = OVERCOMMIT_GUESS;
|
||||
int sysctl_overcommit_ratio __read_mostly = 50;
|
||||
int sysctl_overcommit_memory __read_mostly = OVERCOMMIT_NEVER;
|
||||
int sysctl_overcommit_ratio __read_mostly = 100;
|
||||
unsigned long sysctl_overcommit_kbytes __read_mostly;
|
||||
int sysctl_max_map_count __read_mostly = DEFAULT_MAX_MAP_COUNT;
|
||||
unsigned long sysctl_user_reserve_kbytes __read_mostly = 1UL << 17; /* 128MB */
|
||||
|
||||
Reference in New Issue
Block a user