From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by kanga.kvack.org (Postfix) with ESMTP id 458D96B0008 for ; Wed, 31 Oct 2018 15:21:56 -0400 (EDT) Received: by mail-wm1-f72.google.com with SMTP id j127-v6so13489045wmd.3 for ; Wed, 31 Oct 2018 12:21:56 -0700 (PDT) Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id x18-v6sor5864244wmh.6.2018.10.31.12.21.54 for (Google Transport Security); Wed, 31 Oct 2018 12:21:55 -0700 (PDT) MIME-Version: 1.0 References: <20180829152716.GB10223@dhcp22.suse.cz> <6e3a9434-32f2-0388-e0c7-2bd1c2ebc8b1@suse.cz> <20181030152632.GG32673@dhcp22.suse.cz> <98305976-612f-cf6d-1377-2f9f045710a9@suse.cz> <20181031170108.GR32673@dhcp22.suse.cz> In-Reply-To: <20181031170108.GR32673@dhcp22.suse.cz> From: Marinko Catovic Date: Wed, 31 Oct 2018 20:21:42 +0100 Message-ID: Subject: Re: Caching/buffers become useless after some time Content-Type: text/plain; charset="UTF-8" Sender: owner-linux-mm@kvack.org List-ID: To: Michal Hocko Cc: Vlastimil Babka , linux-mm@kvack.org, Christopher Lameter Am Mi., 31. Okt. 2018 um 18:01 Uhr schrieb Michal Hocko : > > On Wed 31-10-18 15:53:44, Marinko Catovic wrote: > [...] > > Well caching of any operations with find/du is not necessary imho > > anyway, since walking over all these millions of files in that time > > period is really not worth caching at all - if there is a way you > > mentioned to limit the commands there, that would be great. > > One possible way would be to run this find/du workload inside a memory > cgroup with high limit set to something reasonable (that will likely > require some tuning). I am not 100% sure that will behave for metadata > mostly workload without almost any pagecache to reclaim so it might turn > out this will result in other issues. But it is definitely worth trying. hm, how would that be possible..? every user has its UID, the group can also not be a factor, since this memory restriction would apply to all users then, find/du are running as UID 0 to have access to everyone's data. so what is the conclusion from this issue now btw? is it something that will be changed/fixed at any time? As I understand everyone would have this issue when extensive walking over files is performed, basically any `cloud`, shared hosting or storage systems should experience it, true?