Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp6469176pxu; Thu, 24 Dec 2020 03:16:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJz/lShemLMeWnql5hsUMDksH/hMeAQp4r4h/qAXTQWSUtXUTfp7SKRvDWgV8XTn7Wsy6JvX X-Received: by 2002:a17:906:c414:: with SMTP id u20mr27214214ejz.511.1608808561079; Thu, 24 Dec 2020 03:16:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608808561; cv=none; d=google.com; s=arc-20160816; b=bZM86Whq3Y1mEzFDYnBqUq6r1pui5PthfIWB7vkAlIv3S/I61FSfr+RI59QsPZ2XW8 3g7e9OyTuw9xZJpuSXnJ1w4t0deelx8N7GjR8Cl7IHlldne7oG/PPOx4d4G83dJXKQYF WRXbce6ySyIscxwUHEqWCvCRs/vDiL0fi47llsOHdGXx4boEJ37C5O8oQGhRTAjY9YPB 8hduZ1z8redcjgWoXhGt2oHNbugVGX62Z7PAx7cyGlBnHyn2Rw4AZfeXc7IzX9doBy6G wo2kKy5dWuT2OG2Dp05Vp/rG23dLoc1rLGDlhMFAqNkZG4gNR78vNtw5Ab0aSYcbb7Fe nEdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=gU2GHX8ErPj4WjP6+ZyvbnUEfSR5V0an6n9r08YKmTI=; b=sUxlFlXzWb3vcjLzVLL3wwJnvUaD/RHEjxHUm9v+LWS3pViAdWMrwsXR1NwpatcfGD Ma0FM5ZBjdMSM86vYkV7pzYJOUrDfFg53LJlbsXWk77g4/EwTQ+3Epr9gvAUsjMbv+Yk vsvUovmfv5sunje2w403slJIhLA2e3RV+sg90JH9D9FaStuOSh5+6E+Cq3RcBqixZlxA mVnDFWTBq7Ty4oGixfetucna2Nlgi0QhkV5HUiXwuYJGd0vV+Q/y0xtJzjw6jhzg42OQ WJBns/MlGsTCaMbmfeKWGHyy1Q0m23V25Edhb7mAB94FPiDEAEW5RZQOzrnXbfHEeWv1 4pzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@natalenko.name header.s=dkim-20170712 header.b=GlVlOf7z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=natalenko.name Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x18si14678012ejd.80.2020.12.24.03.15.34; Thu, 24 Dec 2020 03:16:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@natalenko.name header.s=dkim-20170712 header.b=GlVlOf7z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=natalenko.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728312AbgLXLOS (ORCPT + 99 others); Thu, 24 Dec 2020 06:14:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726591AbgLXLOS (ORCPT ); Thu, 24 Dec 2020 06:14:18 -0500 Received: from vulcan.natalenko.name (vulcan.natalenko.name [IPv6:2001:19f0:6c00:8846:5400:ff:fe0c:dfa0]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2CDFC061794 for ; Thu, 24 Dec 2020 03:13:37 -0800 (PST) Received: from localhost (home.natalenko.name [151.237.229.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by vulcan.natalenko.name (Postfix) with ESMTPSA id D7AD18F90CF; Thu, 24 Dec 2020 12:13:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=natalenko.name; s=dkim-20170712; t=1608808408; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=gU2GHX8ErPj4WjP6+ZyvbnUEfSR5V0an6n9r08YKmTI=; b=GlVlOf7zNLC6z0NZkpy/jvc683cBEzTUPITSuQnHFVZjRiKmij5x9Fb9umr/+NzCNXr1+v yCc4XHFduiZ9/q78BvpYfatQ0xS2og6pff9RIAl6PUpFMzrG5qBRejqi0h6PwZ8aGLKQem 2t2pKl00Ab9liNtso+RIxzTymTZLWmc= Date: Thu, 24 Dec 2020 12:13:27 +0100 From: Oleksandr Natalenko To: linux-kernel@vger.kernel.org Cc: Mandeep Singh Baines , Guenter Roeck , Andrew Morton , linux-mm@kvack.org Subject: min_filelist_kbytes vs file_is_tiny Message-ID: <20201224111327.knhqdz3hloxfcksv@spock.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Mandeep, Guenter et al. I came across the out-of-tree patch [1] that apparently is still alive after 10 years of residing in the Chromium OS tree, and I have a couple of questions if you don't mind spending your time answering them. 1. is this knob really necessary given there's an explicit bailout mechanism relying on `file_is_tiny` which depends on the sum of high watermarks across the zones? Wouldn't increasing `vm.min_free_kbytes` achieve basically the same? 2. if `vm.min_free_kbytes` is not an option, would setting `file_is_tiny` based on your `min_filelist_kbytes` knob achieve the same? 3. if not, is `memory.min` cgroup2 knob supposed to work in a similar manner? it looks to be unavailable for the root cgroup, though. What I'm looking for, basically, is to achieve the effect of the mentioned patch using mechanisms that are already available in the upstream kernel. Thank you. [1] https://chromium.googlesource.com/chromiumos/third_party/kernel-next/+/545e2917dbd863760a51379de8c26631e667c563^!/ -- Oleksandr Natalenko (post-factum)