Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 378eb426 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mm: set the watermark_boost before updating the low and high wmarks"

parents f1adcf99 c0580dc2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -115,3 +115,4 @@ CONFIG_CRYPTO_DEV_QCRYPTO=y
CONFIG_CRYPTO_DEV_QCEDEV=y
CONFIG_THERMAL_TSENS=y
CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y
CONFIG_HAVE_USERSPACE_LOW_MEMORY_KILLER=y
+2 −0
Original line number Diff line number Diff line
@@ -47,3 +47,5 @@ CONFIG_SLIMBUS_MSM_NGD=y
CONFIG_QCOM_SMCINVOKE=y
CONFIG_MSM_DEBUGCC_LAHAINA=y
CONFIG_QRTR_MHI=y
CONFIG_DEBUG_PANIC_ON_OOM=y
# CONFIG_USB_F_FS_IPC_LOGGING is not set
+5 −1
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ int sysctl_panic_on_oom =
IS_ENABLED(CONFIG_DEBUG_PANIC_ON_OOM) ? 2 : 0;
int sysctl_oom_kill_allocating_task;
int sysctl_oom_dump_tasks = 1;
int sysctl_reap_mem_on_sigkill;
int sysctl_reap_mem_on_sigkill = 1;

/*
 * Serializes oom killer invocations (out_of_memory()) from all contexts to
@@ -1177,6 +1177,10 @@ void pagefault_out_of_memory(void)
		.order = 0,
	};

	if (IS_ENABLED(CONFIG_HAVE_LOW_MEMORY_KILLER) ||
	    IS_ENABLED(CONFIG_HAVE_USERSPACE_LOW_MEMORY_KILLER))
		return;

	if (mem_cgroup_oom_synchronize(true))
		return;

+1 −1
Original line number Diff line number Diff line
@@ -7896,11 +7896,11 @@ static void __setup_per_zone_wmarks(void)
			    mult_frac(zone_managed_pages(zone),
				      watermark_scale_factor, 10000));

		zone->watermark_boost = 0;
		zone->_watermark[WMARK_LOW]  = min_wmark_pages(zone) +
					low + tmp;
		zone->_watermark[WMARK_HIGH] = min_wmark_pages(zone) +
					low + tmp * 2;
		zone->watermark_boost = 0;

		spin_unlock_irqrestore(&zone->lock, flags);
	}