Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3373161pxv; Mon, 28 Jun 2021 03:12:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNv2nHpSm8riCRRODdd7y+hPSm0thiXb0DsXSBY2IKwPiWrADAgV/o/TjMPFVn9VktNXt6 X-Received: by 2002:a02:3781:: with SMTP id r123mr19109906jar.26.1624875138581; Mon, 28 Jun 2021 03:12:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624875138; cv=none; d=google.com; s=arc-20160816; b=XKFhZypTlNPIrEVAaEuNOUQjTUUnkbcgiBnfIfQBg090vz5Mfv5b7e0W7nfIK0F2T3 ZyvyCcGb8mho0oURvt0U/h36v/Fm9KHC6o77oSfwBZVVq5Z+LTMQ3ZYoMO4xKvDR5jax AZcjj45BSGGZwRGdZnyxkFhqFwirRivgMyFiNABaZxcmFW9TVpSOhTjCWjPJ8jRC6Ahv JXXGSl4ZK2opuxVG72+WVTsrYqbbss6+6cG4SemWkYIvt0C8V7y2Au48774YNF1lEaCs oLWIIEkw6oZZ9sQOy0u4sNX11Ppr7fPKBDM6Zu1Wj3egkrCr2RY9Sqv/0hOEj4mKYZA/ U1fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=f/Ay0vMgV/ucCxnt7iWtQMr9Rv1bQaD+1t/J/U2+bNw=; b=ZMZZduPTAuQlWMv7mnYjRBCmNT8OvEL0v4AYlEi+6NkNDKPPzeeznP8IS4KWWGAysS SR2DHghep3QKhBxA8+L7bhL5kHaOMdpudUFQcPlfnyaEiK6S+yYT2jFYXy0Ds5MG6wFE 4/mpzr9YT3nn4mKjPiPyWrlEJ6bi1Gv1/oqzs4tQPtWZW5O2eGWXA2cGumOYif/sFToE xdpgsXhFJ76YNL561D5s5szF/+A/WHCmFWXLg+XBEkAbQx7xSvK+2A01q/5zaYlJI4Ab 2Pvqil3oI3lOm2kcHuQZAQMS3dZPtVTgjvb6ksgJCSKAN68cfoJ5hzt5tCpPWyqO4JGS ZOMg== 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 g6si18705139iow.9.2021.06.28.03.12.04; Mon, 28 Jun 2021 03:12:18 -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; 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 S232502AbhF1JnP (ORCPT + 99 others); Mon, 28 Jun 2021 05:43:15 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:38751 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232315AbhF1JnP (ORCPT ); Mon, 28 Jun 2021 05:43:15 -0400 Received: from [192.168.1.155] ([77.9.21.236]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.167]) with ESMTPSA (Nemesis) id 1M7JnA-1lsHRM27Ku-007mlc; Mon, 28 Jun 2021 11:40:40 +0200 Subject: Re: Prevent inode/dentry trashing? To: =?UTF-8?Q?Michal_Koutn=c3=bd?= , Philipp Hahn Cc: "linux-kernel@vger.kernel.org" , "cgroups@vger.kernel.org" References: From: "Enrico Weigelt, metux IT consult" Message-ID: <88451906-e537-0ac3-b8f2-16bfc4d77ea6@metux.net> Date: Mon, 28 Jun 2021 11:40:39 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: tl Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:AnlrbnCYXCDKxsNInMzSy4z0MWZE2/tgb5xMbUWJev8+877cPZ3 tOCwe2hauIMEs/xxcm8A/P9NHL6RGsF0YWxpa429h8uzVshKAcVN7OFTg0ffgIDtCMAvwIO KOR3rt6LGoYkqXO4umi6JQ26/YEh7RFR4u2bGj45wXQ66X/vOvnYe/KbWfpLLRkxOCf04Pz UgesK67YWPqUpP68jdrjg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:ayrA+qtP+Sg=:BdAMkVxlDXJ3xatdLNgt9T d+R+EA1TFuWOKQVOwvkKfm3lrFcbRuU+r4b3wQGpZtbopwDA+uDw5Mw4d7CgaLEOdFFfYhnEa aiNSCQF2wvkBzbuJUFOOieZOgLUzkT3m60n3eEdvnmr72N7QhUGomb68lBSk56VQ3/3fYLrQ3 F1sI/mHNNCweoaPXIrWcvyloICt+kXGI+PkWyqUCTZJQp/HCC5694e06WWLIo8hzcU0zrx3bz Rspkix32PxXvVp56tX/mwjOHGdHDm+K38/3BoWIuaXgLqRnMgzKcpp8vzT1VqPa+XvOze14Wl mBn3/aWzG0LPnjX4zqzNDT6duGWn3Ues/otDSMYwjpze1UajebQCmReisXjD5Qz4WC9n80VkL 2xEb+MrZx02BmltgS9V+Jizawp95b3dTydLqDsKENqJtFUmVeCkqJkkLqszswXad3557Z6ACL 40c0uvrz5Bz/itnFK/fQ/eqIOj5F0q32qWxW9MOfDKnK4q0GDGD2NleJQdnNyasKo5MgzSheY EOfzMhvFmjtTKOs421yRG8= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25.06.21 17:55, Michal Koutn? wrote: >> Is it possible to prevent inode/dentry trashing for example by limiting the >> cache per process(-group)? > > Yes. Unless you have disabled it with CONFIG_MEMCG_KMEM or > cgroup.memory=nokmem, 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). Could you please tell a bit more how this really works ? (maybe some pointers to the code) I'm curios what happens if those cache objects are used by different cgroups - are they accounted to multiple times (once per cgroup) ? What happens when one cgroup using some cache object reaching its limit, wile another one does not ? --mtx -- --- Hinweis: unverschl?sselte E-Mails k?nnen leicht abgeh?rt und manipuliert werden ! F?r eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schl?ssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering info@metux.net -- +49-151-27565287