From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CA6291B59A for ; Tue, 28 Jan 2025 01:18:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738027138; cv=none; b=hORT7I4NgCMXy6YmOHTjaM/P/S71p/niK5UFexpl571eN7G6zRINmYgIF89u70OGlzhjxfCUxMcggJHhzjgQz6QzqVPxG8zPjScR69h54jF9gLBb3w97JbCcQk9g/pcmx7W8Ov9xefyIngd9EaY9nIFG4DEtnZn0DGLJ+n254OQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738027138; c=relaxed/simple; bh=X5o/D/YAuJQichpl9kinMr+bJUHI5S6+DhM7enYkR8g=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=gFoL8SVHUyf8hFxSC8PCg+KU9e6lhrDgzse+JIV3Kxt0iF93gMBPxpIYYaMlV1rPIaNb8snucp1leW3LQmUF8niGBG4OAMPMkRjCPTBYVRgf/tmqerkQYL9sbjmqnh1Evag2QxHZnW2RYrrwmTVBRVsYwwKqGErgWAMHjdbMFzw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=VlpSKe/j; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="VlpSKe/j" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F2FBC4CED2; Tue, 28 Jan 2025 01:18:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1738027138; bh=X5o/D/YAuJQichpl9kinMr+bJUHI5S6+DhM7enYkR8g=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=VlpSKe/j7CqTr9fZ/oQcneajNCFICX0M/tCSDDLVsTMdC3Lan2AhVzdTPqYafcuTD 9NH1c9Po6VgVjO0B1cVLcnM/Qr08FtKLjZTxSiQNK4LA6K64j09c0iBhX1kCX3nd20 fHmxDuEA+jDzMacnv+FCM5r7g4e5IMN2Y1t78MZo= Date: Mon, 27 Jan 2025 17:18:57 -0800 From: Andrew Morton To: Michal Clapinski Cc: Vlastimil Babka , Pasha Tatashin , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/2] mm/compaction: make proactive compaction high watermark configurable via sysctl Message-Id: <20250127171857.34c71d3a6f0cde1953b02a58@linux-foundation.org> In-Reply-To: <20250127215020.4023545-3-mclapinski@google.com> References: <20250127215020.4023545-1-mclapinski@google.com> <20250127215020.4023545-3-mclapinski@google.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 27 Jan 2025 22:50:20 +0100 Michal Clapinski wrote: > Currently, the difference between the high and low watermarks for > proactive compaction is hardcoded to 10. This hardcoded difference is > too large for free page reporting to work well. > > Add a new sysctl, `compaction_proactiveness_leeway`, to control the > difference between the high and low watermarks. > Oh dear, yet another tunable. Is there any way in which we can acceptably improve the kernel without adding this?