From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f197.google.com (mail-wr0-f197.google.com [209.85.128.197]) by kanga.kvack.org (Postfix) with ESMTP id 6EF116B0003 for ; Thu, 19 Apr 2018 05:30:42 -0400 (EDT) Received: by mail-wr0-f197.google.com with SMTP id p11-v6so4515635wrd.20 for ; Thu, 19 Apr 2018 02:30:42 -0700 (PDT) Received: from mx2.suse.de (mx2.suse.de. [195.135.220.15]) by mx.google.com with ESMTPS id y58si3095294edc.428.2018.04.19.02.30.40 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 19 Apr 2018 02:30:40 -0700 (PDT) Subject: Re: [PATCH v3 03/14] mm: Mark pages in use for page tables References: <20180418184912.2851-1-willy@infradead.org> <20180418184912.2851-4-willy@infradead.org> From: Vlastimil Babka Message-ID: Date: Thu, 19 Apr 2018 11:30:38 +0200 MIME-Version: 1.0 In-Reply-To: <20180418184912.2851-4-willy@infradead.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Matthew Wilcox , linux-mm@kvack.org Cc: Matthew Wilcox , Andrew Morton , "Kirill A . Shutemov" , Christoph Lameter , Lai Jiangshan , Pekka Enberg On 04/18/2018 08:49 PM, Matthew Wilcox wrote: > From: Matthew Wilcox > > Define a new PageTable bit in the page_type and use it to mark pages in > use as page tables. This can be helpful when debugging crashdumps or Yep, once I've added such flag for debugging myself :) > analysing memory fragmentation. Add a KPF flag to report these pages > to userspace and update page-types.c to interpret that flag. > > Note that only pages currently accounted as NR_PAGETABLES are tracked > as PageTable; this does not include pgd/p4d/pud/pmd pages. Those will > be the subject of a later patch. > > Signed-off-by: Matthew Wilcox > Acked-by: Kirill A. Shutemov Acked-by: Vlastimil Babka