Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp208407pxf; Thu, 8 Apr 2021 00:52:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyoudwMWWUqtz/HpEWbNbABDepfDnGSR6NnCFVUsspFFWb8UJyppNzhy+pAkDfVnZkia6au X-Received: by 2002:a05:6a00:214d:b029:218:4f9:d5ba with SMTP id o13-20020a056a00214db029021804f9d5bamr6432015pfk.3.1617868328236; Thu, 08 Apr 2021 00:52:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617868328; cv=none; d=google.com; s=arc-20160816; b=kP+QpmijFAsuuqfc+neAH+sS0Ki2cUL3YDivUeNN9NcI7TJittrNROsqLo65CQeKHG e3pMvg75ddLpxDCLdYkmP/Dx/jrU69ZzioURegn9zculNwX6YTTOkkVGk3U/TGz88B3K 5+jQqX45+7Oi5CdqfPyH6KUZFufPG8y2G4GNbT9MshiRdrMQ97uoM0i9HJgtlwT6+RMZ ZCSMO4UGpB2WiS0qMbLjAnueZ5PdAJgF6y5Biur+DEP/Or0eq9d6fF3bp6rHhDhCFLqy 0mqar8tYlYWkhCCn6uh60tfCC55NYek6Lt9z5U49cAvvdPUc5wd2XdGFMUsooBQrxQ2D sO2w== 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; bh=S+I/ELM0p2bervwJR9sUHJAS7FiiNEZzW6mUV9TpwHI=; b=RNIP1kFXFYycLzSJ/enuCFHIk/gHGxMaQ1TA5GxZZ2oxZBWt1kjsHOkCopwLt5WTH9 +VaZniU/jVUjEEU/gBPEgycN6a1aY5moc+GAaiwo0VNxkXJApRLzxB9KQ7HkjNmBuVcU Ex9mAA3feSmFLm8tqVz8g5HGuaRMDqWvp5XeSzw9BVGVq58WG2W7Mf49neTO9g1Lp0u8 YI2oS7z9FNEVNvsPACnYn8sk36gajsoYatiZtAg9KasaGH+Ud6yhRr2qCmWxLJ6ysXXu wGYAjiVcct7mDzX2eh1u4wokArSPrYfmmpDJca/IoqYc6D5VeKPcGo74LNSEcXofo0vE x3Hw== 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 g23si9022042plj.439.2021.04.08.00.51.56; Thu, 08 Apr 2021 00:52:08 -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 S230291AbhDHHve (ORCPT + 99 others); Thu, 8 Apr 2021 03:51:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:58100 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229505AbhDHHve (ORCPT ); Thu, 8 Apr 2021 03:51:34 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 96FD661155; Thu, 8 Apr 2021 07:51:20 +0000 (UTC) Date: Thu, 8 Apr 2021 09:51:17 +0200 From: Christian Brauner To: Daniel Xu Cc: bpf@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-team@fb.com, jolsa@kernel.org, hannes@cmpxchg.org, yhs@fb.com Subject: Re: [RFC bpf-next 0/1] bpf: Add page cache iterator Message-ID: <20210408075117.oqoqspilk3c3xsaa@wittgenstein> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 07, 2021 at 02:46:10PM -0700, Daniel Xu wrote: > There currently does not exist a way to answer the question: "What is in > the page cache?". There are various heuristics and counters but nothing > that can tell you anything like: > > * 3M from /home/dxu/foo.txt > * 5K from ... > * etc. > > The answer to the question is particularly useful in the stacked > container world. Stacked containers implies multiple containers are run > on the same physical host. Memory is precious resource on some (if not Just to clarify: what are "stacked containers"? Do you mean nested containers, i.e. containers running within containers? Christian