Re: [PATCH v5 2/6] mm/page_idle: Add support for handling swapped PG_Idle pages

2019-08-13 Thread Konstantin Khlebnikov
On Tue, Aug 13, 2019 at 6:37 PM Joel Fernandes wrote: > > On Tue, Aug 13, 2019 at 05:04:50PM +0200, Michal Hocko wrote: > > On Wed 07-08-19 13:15:55, Joel Fernandes (Google) wrote: > > > Idle page tracking currently does not work well in the following > > > scenario: > > > 1. mark page-A idle whi

Re: [PATCH v1 1/2] mm/page_idle: Add support for per-pid page_idle using virtual indexing

2019-07-26 Thread Konstantin Khlebnikov
On 26.07.2019 3:06, Joel Fernandes wrote: On Thu, Jul 25, 2019 at 11:15:53AM +0300, Konstantin Khlebnikov wrote: [snip] Thanks for bringing up the swapping corner case.. Perhaps we can improve the heap profiler to detect this by looking at bits 0-4 in pagemap. While it Yeb, that could work

Re: [PATCH v1 1/2] mm/page_idle: Add support for per-pid page_idle using virtual indexing

2019-07-25 Thread Konstantin Khlebnikov
On 24.07.2019 17:10, Joel Fernandes wrote:> On Wed, Jul 24, 2019 at 01:28:42PM +0900, Minchan Kim wrote: >> On Tue, Jul 23, 2019 at 10:20:49AM -0400, Joel Fernandes wrote: >>> On Tue, Jul 23, 2019 at 03:13:58PM +0900, Minchan Kim wrote: Hi Joel, On Mon, Jul 22, 2019 at 05:32:04PM -

Re: [PATCH v1 1/2] mm/page_idle: Add support for per-pid page_idle using virtual indexing

2019-07-23 Thread Konstantin Khlebnikov
On 23.07.2019 11:43, Konstantin Khlebnikov wrote: On 23.07.2019 0:32, Joel Fernandes (Google) wrote: The page_idle tracking feature currently requires looking up the pagemap for a process followed by interacting with /sys/kernel/mm/page_idle. This is quite cumbersome and can be error-prone too

Re: [PATCH v1 1/2] mm/page_idle: Add support for per-pid page_idle using virtual indexing

2019-07-23 Thread Konstantin Khlebnikov
On 23.07.2019 0:32, Joel Fernandes (Google) wrote: The page_idle tracking feature currently requires looking up the pagemap for a process followed by interacting with /sys/kernel/mm/page_idle. This is quite cumbersome and can be error-prone too. If between accessing the per-PID pagemap and the gl

Re: [PATCH v1 2/8] mm: convert PG_balloon to PG_offline

2018-11-19 Thread Konstantin Khlebnikov
semantics stay the same). In following patches, we will > make use of this bit also in other balloon drivers. While at it, document > PGTABLE. Ok, makes sense. Acked-by: Konstantin Khlebnikov > > Cc: Jonathan Corbet > Cc: Alexey Dobriyan > Cc: Mike Rapoport > Cc: Andrew

[PATCH] perf: fix documentation of sysctls perf_event_paranoid and perf_event_mlock_kb

2017-02-14 Thread Konstantin Khlebnikov
Fix misprint CAP_IOC_LOCK -> CAP_IPC_LOCK. This capability have nothing to do with raw tracepoints. This part is about bypassing mlock limits. Sysctl kernel.perf_event_paranoid = -1 allows raw and ftrace function tracepoints without CAP_SYS_ADMIN. Signed-off-by: Konstantin Khlebni

Re: [PATCH v2] procfs: expose umask in /proc//status

2016-04-14 Thread Konstantin Khlebnikov
us line ("Umask") in /proc//status. It contains > the file mode creation mask (umask) in octal. It is only shown for > tasks which have task->fs. > > This patch is adapted from one originally written by Pierre Carrier. > > Signed-off-by: Richard W.M. Jones Acked

[PATCH RESEND] TTY, devpts: document pty count limiting

2016-02-21 Thread Konstantin Khlebnikov
limit also could be set by mount option "max=%d". Signed-off-by: Konstantin Khlebnikov --- Documentation/filesystems/devpts.txt |9 + Documentation/sysctl/kernel.txt |1 + 2 files changed, 10 insertions(+) diff --git a/Documentation/filesystems/devpts.txt b/Docume