kernel: Increase the OOM threshold to 4 MiB free
All checks were successful
continuous-integration/drone/pr Build is passing
All checks were successful
continuous-integration/drone/pr Build is passing
This commit is contained in:
parent
b42497e05e
commit
52b04bd33b
@ -157,10 +157,10 @@ namespace MemoryManager
|
|||||||
used_mem += ARCH_PAGE_SIZE;
|
used_mem += ARCH_PAGE_SIZE;
|
||||||
free_mem -= ARCH_PAGE_SIZE;
|
free_mem -= ARCH_PAGE_SIZE;
|
||||||
|
|
||||||
if (free_mem < 1024 * 1024)
|
if (free_mem < 4 * 1024 * 1024)
|
||||||
{
|
{
|
||||||
// Less than 1 MiB of free memory! Let's start clearing caches...
|
// Less than 4 MiB of free memory! Let's start clearing caches...
|
||||||
kwarnln("Less than 1 MiB of free memory, clearing caches to try to gain extra memory");
|
kwarnln("Less than 4 MiB of free memory, clearing caches to try to gain extra memory");
|
||||||
Scheduler::signal_oom_thread();
|
Scheduler::signal_oom_thread();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user