Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932104AbbG0X06 (ORCPT ); Mon, 27 Jul 2015 19:26:58 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:16920 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932074AbbG0X04 (ORCPT ); Mon, 27 Jul 2015 19:26:56 -0400 Subject: hugetlb pages not accounted for in rss From: Mike Kravetz To: "linux-mm@kvack.org" , linux-kernel Cc: =?UTF-8?Q?J=c3=b6rn_Engel?= Message-ID: <55B6BE37.3010804@oracle.com> Date: Mon, 27 Jul 2015 16:26:47 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: aserv0022.oracle.com [141.146.126.234] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 905 Lines: 21 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. 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? -- Mike Kravetz -- 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/