Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1190160pxu; Fri, 27 Nov 2020 01:43:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJxyMs0b7XYwh7JxDdAB3j25SnyksOaJl8cAleVrQA1e334IBPxobVs1Q7L3kyNGQVLmI6zM X-Received: by 2002:a50:a689:: with SMTP id e9mr6608440edc.233.1606470180333; Fri, 27 Nov 2020 01:43:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606470180; cv=none; d=google.com; s=arc-20160816; b=Dmq164liUOfkXhdEqMcOMSHojy4XwiHdcc6T35Wim7aExHXtrPjmMaEkjezEasYayI p0JnAEohqZekJUGA1dkAjWUXq2DCTxb2EvOLhb3j4L+pk6ExcoQ1XyXPuzNdKs557lzL AyYuRchoZ/Sw524ABXOSamuWKKseMU/Lv5ogaw75obT+5i2Xs8cznFnsEpZdZ7ypnCH3 sjroIpFrDvNPh7N/3tXiK1fZ4hKR8MNose1qa06ZE1eMgp5UHmB55/i1tUFvK+ywm3Rf rOPYf/Kl4ODyk+PKGJxh7fckMjTTokwHV3CfOKiyJNE1hDLTW3fN3hMySTM4eWdE+ssJ hdtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id; bh=QzNgwUCq5hZWF291qE3nVo8sqt0f3vHPKo5rQkdVlIY=; b=P4U11W75d9Y9WpumfMMyaNzrdt0svL7++r3dLVW4LaDieg00chcYWowBAbnbxIagua n83Txullf1Cu+56tw4joScW4aEHDPS2Y2MlH4lhDgnZZUIod/oljMMP9OwK85qOjXwUC jkNzmiUzXlMrEhIzU1NBOC5cBJSyr0tKaRVLGM4tlRM4ca/rKUpW60gK7dPz5NUFz+W2 WzbHYJ88DrkjjTK8z6L7soDUwHF630aHTNGKOe0Feeox8aQ0X6hjCn4k5cPMNeKs6j9V vMkjN4YJcuzUnaFIn8CbAE5korIY1zvpZqpFE5Hhbxx/yBK2R0RfTHrgVaJPWq4HyzvK NhCg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e9si4713567ejk.493.2020.11.27.01.42.37; Fri, 27 Nov 2020 01:43:00 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388285AbgKZUOn (ORCPT + 99 others); Thu, 26 Nov 2020 15:14:43 -0500 Received: from shelob.surriel.com ([96.67.55.147]:40312 "EHLO shelob.surriel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728118AbgKZUOn (ORCPT ); Thu, 26 Nov 2020 15:14:43 -0500 Received: from imladris.surriel.com ([96.67.55.152]) by shelob.surriel.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1kiNf1-0007dD-UQ; Thu, 26 Nov 2020 15:14:35 -0500 Message-ID: <0db03554214e8a84c890a03ff6502e3c75db7c56.camel@surriel.com> Subject: Re: [PATCH 3/3] mm,thp,shmem: make khugepaged obey tmpfs mount flags From: Rik van Riel To: Vlastimil Babka , hughd@google.com Cc: xuyu@linux.alibaba.com, akpm@linux-foundation.org, mgorman@suse.de, aarcange@redhat.com, willy@infradead.org, linux-kernel@vger.kernel.org, kernel-team@fb.com, linux-mm@kvack.org, mhocko@suse.com Date: Thu, 26 Nov 2020 15:14:34 -0500 In-Reply-To: References: <20201124194925.623931-1-riel@surriel.com> <20201124194925.623931-4-riel@surriel.com> <8f2428a049f2c29f092782699bcb3af76bf72b6a.camel@surriel.com> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-Iko6vb8mwgrbi/3mSMUt" User-Agent: Evolution 3.34.4 (3.34.4-1.fc31) MIME-Version: 1.0 Sender: riel@shelob.surriel.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-Iko6vb8mwgrbi/3mSMUt Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2020-11-26 at 20:42 +0100, Vlastimil Babka wrote: > On 11/26/20 7:14 PM, Rik van Riel wrote: > > On Thu, 2020-11-26 at 18:18 +0100, Vlastimil Babka wrote: > > >=20 > > This patch makes khugepaged treat the mount options > > and/or > > sysfs flag as enabling collapsing of huge pages in case > > enabled =3D [always] for regular THPs. > >=20 > > Should I send another patch on top > > of this that causes > > khugepaged to be enabled when regular THPs are disabled, > > but shmem THPs are enabled in any way? >=20 > I think it would make sense. Although it might involve counting > thp-enabled shmem mounts and only run khugepaged when there are >0 of > them. That seems feasible. I can do that as a follow-up 4/3 patch after the Thanksgiving weekend :) --=20 All Rights Reversed. --=-Iko6vb8mwgrbi/3mSMUt Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEKR73pCCtJ5Xj3yADznnekoTE3oMFAl/ADKoACgkQznnekoTE 3oNeeggAtfMYAJ9ersho1Vt9x7gbzcYm5Hu/TcvWCZFOppy2qXS5kdq+7X+QTKaW XUdI72CexjKGTZ8ZnLP5qb+LSUZ7JTJkve86wXiG+cFCoN416qFwpq796hpMBfRe 1JJCn6WHyU89o4bMknSxrQUCZ3NVFZNDI/noBgJ/cdlYh6Y/yL6UwnS4zuX2hCIq 2yliRmHApgXBA8kGyVrcxNtQldSynxEt/BESel2VkgbX2HUwEUNnQopECukFYsjv AeaNYNUhKaN/NI5G73JEqCGBKNr6kfLuZPNgq/HqraLKTmnkDN5Zll4dCdHj8u3x iGTzJWNjzdLqxMHM2kWmHX/hk/mOKA== =wldL -----END PGP SIGNATURE----- --=-Iko6vb8mwgrbi/3mSMUt--