Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1264112pxv; Fri, 25 Jun 2021 08:57:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3sSsDHYzljtauHkk+5ym5RIzNbQEVEqR+ApgSvjGyAyiKm8isCJ9Uqci4wJVLIEsX1LK4 X-Received: by 2002:a17:906:1d43:: with SMTP id o3mr2359728ejh.496.1624636633072; Fri, 25 Jun 2021 08:57:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624636633; cv=none; d=google.com; s=arc-20160816; b=Ij81bTIMQhOQU5r80SlpZQU9r+dyzPJK3Ekw6vqIBtAsVZ4aQBD16TIn1nwAJzE2J/ WgRB47hJ+cL6/kp2Sv3jQ1IF8t1cPlImHJefCd+8087gxxcSsEa/XU/CSG+tuVS/dHNK Jlo18EnydkQMutxceC0+9C2xqlO53nTFORXH8Vp3iKB+PyD8ERPfxqDKV/xvGnNBdmyl ev57KHnHnHlzGQjss+MhfJNDgAaCVH4FYCOgfSd3Ix/xaEtF1/WSzDjEd5aGYESDM/lU OV+P7ZmVfQKIcwbkrFRbOntE3J4Vzsg8zlCfZBMPc3tmJIoaFVg/pmbzdjkgp/FiTycL w/zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=1HmjupcRz3JaQfNq8HfL9gsd0zczzHm8Vkl0SLmvU3I=; b=nxDl7s2fZzgYlwJdY/uc0Xc/60cDIO6hZwmeqgnnL46MjSF4KAZuED6oeFqCwRfiwq W6WrBcUdvXtk5fLAuJ42fkhig4YfZC+lMw+436tBOaxRv22UE6mmUzsJWau9Okv7hQyB 97A2IK6HPtRsCvNqkiIAYTfNMSa1WSsU8enHjmYLBuV9H5XjzIAo0WSUhNQxAgBQ50Xu VQaU+vPg6spoe7qql88CdhFEedmR36d4RG5nQWqAV6vJtWH2xe35a4KSxrLV1EayUWzl FJEdsNfKABxGL/madp0S77rz4AW3C3mx+AlLRE7M1p9tp8FOLVOcyRHfdTUte3ZSlNh0 AaAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=Cfo47BpX; dkim=pass header.i=@suse.com header.s=susede1 header.b=Cfo47BpX; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n14si6037595edx.379.2021.06.25.08.56.49; Fri, 25 Jun 2021 08:57:13 -0700 (PDT) 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=@suse.com header.s=susede1 header.b=Cfo47BpX; dkim=pass header.i=@suse.com header.s=susede1 header.b=Cfo47BpX; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229952AbhFYP5q (ORCPT + 99 others); Fri, 25 Jun 2021 11:57:46 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:45728 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229738AbhFYP5p (ORCPT ); Fri, 25 Jun 2021 11:57:45 -0400 Received: from imap.suse.de (imap-alt.suse-dmz.suse.de [192.168.254.47]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 1A6A821CEA; Fri, 25 Jun 2021 15:55:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1624636524; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=1HmjupcRz3JaQfNq8HfL9gsd0zczzHm8Vkl0SLmvU3I=; b=Cfo47BpXwTuQyIkermF36Mz6Go/NxmItV2XTmAuUvXXYB2AQwW4PPZ53ShpoAhVlOH+pJO PEQFOPS4ryan0JBVlJl8uw02JGPeJmiXZefue/JSb2Tc2/nuqrY+39WqrmInIsgdcDmrw6 ittbSCEihOI1rEfSTJWdZMFeDCQgbiU= Received: from imap3-int (imap-alt.suse-dmz.suse.de [192.168.254.47]) by imap.suse.de (Postfix) with ESMTP id E03A111A97; Fri, 25 Jun 2021 15:55:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1624636524; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=1HmjupcRz3JaQfNq8HfL9gsd0zczzHm8Vkl0SLmvU3I=; b=Cfo47BpXwTuQyIkermF36Mz6Go/NxmItV2XTmAuUvXXYB2AQwW4PPZ53ShpoAhVlOH+pJO PEQFOPS4ryan0JBVlJl8uw02JGPeJmiXZefue/JSb2Tc2/nuqrY+39WqrmInIsgdcDmrw6 ittbSCEihOI1rEfSTJWdZMFeDCQgbiU= Received: from director2.suse.de ([192.168.254.72]) by imap3-int with ESMTPSA id 2n7IM2v81WAYPQAALh3uQQ (envelope-from ); Fri, 25 Jun 2021 15:55:23 +0000 Date: Fri, 25 Jun 2021 17:55:22 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Philipp Hahn Cc: "linux-kernel@vger.kernel.org" , "cgroups@vger.kernel.org" Subject: Re: Prevent inode/dentry trashing? Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="GRfnHW8roRpdCmLl" Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --GRfnHW8roRpdCmLl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Phillip. On Mon, Jun 07, 2021 at 02:39:35PM +0200, Philipp Hahn wrote: > The trashed caches affect all other processes running in parallel or the > first processes started each morning. >=20 > Is it possible to prevent inode/dentry trashing for example by limiting t= he > cache per process(-group)? Yes. Unless you have disabled it with CONFIG_MEMCG_KMEM or cgroup.memory=3Dnokmem, dentries and inodes are charged to respective cgroups. And you can limit overall memory of a cgroup, see memory.{max,high} attributes. (You suggest this inode/dentry consumption is dominant enough to affect other jobs, so the limit would keep it constrained as you intend). HTH, Michal --GRfnHW8roRpdCmLl Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEEoQaUCWq8F2Id1tNia1+riC5qSgFAmDV/GQACgkQia1+riC5 qShfZA//ZacjmyfT7nNWjlUA6bEyGPVXkjxHZedOUfWqCr2SGXbwd57ND+ROHSwA EbSVYP3TaN7+BJBPrL3y8NjnKFaRJsLosiRiKsA6VWS9pibmgVKzSiW5H5aS03/S nl6GDIp0mt8sg2DDjn/raS+AopLt/iD7awWIT8LAugfs2h4AueUZ/kC01Cmzja7F 5F5C2vG1T8pKinSMow3OCtZVMmMl18U+JEFiNWKqrQkMlAHu6GlwUTIEtEc6X4hS h/GKJ/xplD/avp1rjJSr+FUFZG4+jPTnQu0LqUdwR80VEO9gdiSvavJCARCjbKvb 54qPhiPtovHk9UfZJe8fcN807cdYNrWNHY0n6/Z2M/28oq6gF81Ra7Ig4/3I2DfU qT6+vXrvjF7ZEO9y8okJiGfdpYInlsJbNIQvkjaL156Uz70HLosGFsg5NAnYY0Mc 9HJXhnIQCRke4O/JccAAftxdmDoPVDmJvl7QMMD7D2AoGVEALv8XTzdxpequUK/q PFW4qoelNaEx2NNs01Wzr76fphdav5zWn1+ctdGRbKCyAAv2ZMTLwNut4p1K58gg CZpYLN6S8fioX45P4uRaO6VTbWf+o5W+URJM06n/o94ha+cRlIU7uonqb3gx0eU2 ucM216qE2TT/NdqAqfE3sWAKaM1BhA8HNNpMsiZgwGEbOIUFdRE= =I/eJ -----END PGP SIGNATURE----- --GRfnHW8roRpdCmLl--