From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw1-f72.google.com (mail-yw1-f72.google.com [209.85.161.72]) by kanga.kvack.org (Postfix) with ESMTP id B10328E0002 for ; Fri, 18 Jan 2019 09:23:07 -0500 (EST) Received: by mail-yw1-f72.google.com with SMTP id h3so6984055ywc.20 for ; Fri, 18 Jan 2019 06:23:07 -0800 (PST) Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id e83sor1982526ybe.38.2019.01.18.06.23.05 for (Google Transport Security); Fri, 18 Jan 2019 06:23:05 -0800 (PST) Date: Fri, 18 Jan 2019 06:23:02 -0800 From: Tejun Heo Subject: Re: [PATCH] mm/mincore: allow for making sys_mincore() privileged Message-ID: <20190118142302.GC50184@devbig004.ftw2.facebook.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Linus Torvalds Cc: Jiri Kosina , Masatake YAMATO , Andrew Morton , Greg KH , Peter Zijlstra , Michal Hocko , linux-mm@kvack.org, Linux List Kernel Mailing , linux-api@vger.kernel.org Hello, Linus. On Sat, Jan 05, 2019 at 01:54:03PM -0800, Linus Torvalds wrote: > And the first hit is 'fincore', which probably nobody cares about > anyway, but it does > > fd = open (name, O_RDONLY) > .. > mmap(window, len, PROT_NONE, MAP_PRIVATE, .. So, folks here have been using fincore(1) for diagnostic purposes and are also looking to expand on it to investigate per-cgroup cache usages (mmap -> mincore -> /proc/self/pagemap -> /proc/kpagecgroup -> cgroup path). These are all root-only usages to find out what's going on with the whole page cache. We aren't attached to doing things this particular way but it'd suck if there's no way. Thanks. -- tejun