Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753289AbbG1Scx (ORCPT ); Tue, 28 Jul 2015 14:32:53 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:35166 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752568AbbG1Scw (ORCPT ); Tue, 28 Jul 2015 14:32:52 -0400 Date: Tue, 28 Jul 2015 11:32:48 -0700 From: =?iso-8859-1?Q?J=F6rn?= Engel To: Mike Kravetz Cc: "linux-mm@kvack.org" , linux-kernel Subject: Re: hugetlb pages not accounted for in rss Message-ID: <20150728183248.GB1406@Sligo.logfs.org> References: <55B6BE37.3010804@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <55B6BE37.3010804@oracle.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1458 Lines: 37 On Mon, Jul 27, 2015 at 04:26:47PM -0700, Mike Kravetz wrote: > I started looking at the hugetlb self tests. The test hugetlbfstest > expects hugetlb pages to be accounted for in rss. However, there is > no code in the kernel to do this accounting. > > It looks like there was an effort to add the accounting back in 2013. > The test program made it into tree, but the accounting code did not. My apologies. Upstream work always gets axed first when I run out of time - which happens more often than not. > The easiest way to resolve this issue would be to remove the test and > perhaps document that hugetlb pages are not accounted for in rss. > However, it does seem like a big oversight that hugetlb pages are not > accounted for in rss. From a quick scan of the code it appears THP > pages are properly accounted for. > > Thoughts? Unsurprisingly I agree that hugepages should count towards rss. Keeping the test in keeps us honest. Actually fixing the issue would make us honest and correct. Increasingly we have tiny processes (by rss) that actually consume large fractions of total memory. Makes rss somewhat useless as a measure of anything. J?rn -- Consensus is no proof! -- John Naisbitt -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/