lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250127171724.b9b3dafec55d3101f0ac02bf@linux-foundation.org>
Date: Mon, 27 Jan 2025 17:17:24 -0800
From: Andrew Morton <akpm@...ux-foundation.org>
To: Michal Clapinski <mclapinski@...gle.com>
Cc: Vlastimil Babka <vbabka@...e.cz>, Pasha Tatashin <tatashin@...gle.com>,
 linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3 1/2] mm/compaction: remove low watermark cap for
 proactive compaction

On Mon, 27 Jan 2025 22:50:19 +0100 Michal Clapinski <mclapinski@...gle.com> wrote:

> Previously a min cap of 5 has been set in the commit introducing
> proactive compaction. This was to make sure users don't hurt themselves
> by setting the proactiveness to 100 and making their system
> unresponsive. But the compaction mechanism has a backoff mechanism that
> will sleep for 30s if no progress is made, so I don't see a significant
> risk here. My system (20GB of memory) has been perfectly fine with
> proactiveness set to 100 and leeway set to 0.

Sure.  And if setting a particular value makes your system blow up then
Don't Do That - the kernel needn't care too much about protecting the
sysadmin from misguided configurations.

As long as we've actually documented what the thing does, which appears
to be the case this time.  Please do review
Documentation/admin-guide/sysctl/vm.rst:compaction_proactiveness for
accuracy and completeness?  From what you've said, that final paragraph
sounds too emphatic.


> --- a/mm/compaction.c
> +++ b/mm/compaction.c
> @@ -2253,7 +2253,7 @@ static unsigned int fragmentation_score_wmark(bool low)
>  	 * activity in case a user sets the proactiveness tunable
>  	 * close to 100 (maximum).
>  	 */
> -	wmark_low = max(100U - sysctl_compaction_proactiveness, 5U);
> +	wmark_low = 100U - sysctl_compaction_proactiveness;
>  	return low ? wmark_low : min(wmark_low + 10, 100U);
>  }

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ