From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751273AbdJEFIn (ORCPT ); Thu, 5 Oct 2017 01:08:43 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:57804 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750811AbdJEFIm (ORCPT ); Thu, 5 Oct 2017 01:08:42 -0400 Subject: Re: [PATCH 2/2] mm: Consolidate page table accounting To: "Kirill A. Shutemov" , Andrew Morton References: <20171004163648.11234-1-kirill.shutemov@linux.intel.com> <20171004163648.11234-2-kirill.shutemov@linux.intel.com> Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Michal Hocko From: Anshuman Khandual Date: Thu, 5 Oct 2017 10:38:29 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <20171004163648.11234-2-kirill.shutemov@linux.intel.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable x-cbid: 17100505-0012-0000-0000-0000025F50D1 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17100505-0013-0000-0000-0000077E0974 Message-Id: <3aabab03-7f0a-e82e-a1c2-79120aed5ace@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-10-05_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1710050069 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/04/2017 10:06 PM, Kirill A. Shutemov wrote: > This patch switches page table accounting to single counter from > three -- nr_ptes, nr_pmds and nr_puds. > > mm->pgtables_bytes is now used to account page table levels. We use > bytes, because page table size for different levels of page table tree > may be different. > > The change has user-visible effect: we don't have VmPMD and VmPUD > reported in /proc/[pid]/status. Not sure if anybody uses them. > (As alternative, we can always report 0 kB for them.) > > OOM-killer report is also slightly changed: we now report pgtables_bytes > instead of nr_ptes, nr_pmd, nr_puds. Could you please mention the motivation of doing this ? Why we are consolidating the counters which also changes /proc/ interface as well as OOM report ? What is the benefit ?