From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f199.google.com (mail-wr0-f199.google.com [209.85.128.199]) by kanga.kvack.org (Postfix) with ESMTP id 1F18B6B0069 for ; Wed, 4 Oct 2017 10:28:07 -0400 (EDT) Received: by mail-wr0-f199.google.com with SMTP id n4so4195830wrb.8 for ; Wed, 04 Oct 2017 07:28:07 -0700 (PDT) Received: from mx1.suse.de (mx2.suse.de. [195.135.220.15]) by mx.google.com with ESMTPS id 128si4839575wmz.85.2017.10.04.07.28.05 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 04 Oct 2017 07:28:06 -0700 (PDT) Date: Wed, 4 Oct 2017 16:28:04 +0200 From: Michal Hocko Subject: Re: [PATCHv3] mm: Account pud page tables Message-ID: <20171004142804.o6vxbjs75x4iyp2r@dhcp22.suse.cz> References: <20171002080427.3320-1-kirill.shutemov@linux.intel.com> <20171004134853.k2f4bah7csh6qebm@dhcp22.suse.cz> <20171004141620.37qojkpftpmpgmxj@node.shutemov.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171004141620.37qojkpftpmpgmxj@node.shutemov.name> Sender: owner-linux-mm@kvack.org List-ID: To: "Kirill A. Shutemov" Cc: "Kirill A. Shutemov" , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Vlastimil Babka On Wed 04-10-17 17:16:20, Kirill A. Shutemov wrote: > On Wed, Oct 04, 2017 at 03:48:53PM +0200, Michal Hocko wrote: > > On Mon 02-10-17 11:04:27, Kirill A. Shutemov wrote: > > > On machine with 5-level paging support a process can allocate > > > significant amount of memory and stay unnoticed by oom-killer and > > > memory cgroup. The trick is to allocate a lot of PUD page tables. > > > We don't account PUD page tables, only PMD and PTE. > > > > > > We already addressed the same issue for PMD page tables, see > > > dc6c9a35b66b ("mm: account pmd page tables to the process"). > > > Introduction 5-level paging bring the same issue for PUD page tables. > > > > > > The patch expands accounting to PUD level. > > > > Can we skip the VmPUD part and reporting puds in the oom report please? > > I would like to consolidate all levels into a single counter and carying > > about one less user visible change will make it slightly easier. Or does > > anybody need this exported to the userspace? > > Let me do this as a separate patch. I will also fold VmPMD into VmPTE. Thanks! -- Michal Hocko SUSE Labs -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org