From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f71.google.com (mail-pa0-f71.google.com [209.85.220.71]) by kanga.kvack.org (Postfix) with ESMTP id 806656B0069 for ; Sun, 18 Sep 2016 22:43:02 -0400 (EDT) Received: by mail-pa0-f71.google.com with SMTP id fu12so283484481pac.1 for ; Sun, 18 Sep 2016 19:43:02 -0700 (PDT) Received: from szxga01-in.huawei.com (szxga01-in.huawei.com. [58.251.152.64]) by mx.google.com with ESMTPS id xt5si26237785pab.68.2016.09.18.19.43.00 for (version=TLS1 cipher=AES128-SHA bits=128/128); Sun, 18 Sep 2016 19:43:01 -0700 (PDT) Message-ID: <57DF4FEA.9080509@huawei.com> Date: Mon, 19 Sep 2016 10:39:38 +0800 From: Xishi Qiu MIME-Version: 1.0 Subject: [question] hugetlb: how to find who use hugetlb? Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Linux MM , LKML On my system, I set HugePages_Total to 2G(1024 x 2M), and I use 1G hugetlb, but the HugePages_Free is not 1G(512 x 2M), it is 280(280 x 2M) left, HugePages_Rsvd is 0, it seems someone use 232(232 x 2M) hugetlb additionally. So how to find who use the additional hugetlb? I search every process and find the total hugetlb size is only 1G, cat /proc/xx/smaps | grep KernelPageSize, then account the vma size which KernelPageSize is 2048 kB. Thanks, Xishi Qiu -- 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756238AbcISCjw (ORCPT ); Sun, 18 Sep 2016 22:39:52 -0400 Received: from szxga01-in.huawei.com ([58.251.152.64]:34910 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752443AbcISCjt (ORCPT ); Sun, 18 Sep 2016 22:39:49 -0400 Message-ID: <57DF4FEA.9080509@huawei.com> Date: Mon, 19 Sep 2016 10:39:38 +0800 From: Xishi Qiu User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Linux MM , LKML Subject: [question] hugetlb: how to find who use hugetlb? Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.25.179] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020206.57DF4FF2.00AD,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 4d41f65f06d73f78c51ad0af9ba8f69a Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On my system, I set HugePages_Total to 2G(1024 x 2M), and I use 1G hugetlb, but the HugePages_Free is not 1G(512 x 2M), it is 280(280 x 2M) left, HugePages_Rsvd is 0, it seems someone use 232(232 x 2M) hugetlb additionally. So how to find who use the additional hugetlb? I search every process and find the total hugetlb size is only 1G, cat /proc/xx/smaps | grep KernelPageSize, then account the vma size which KernelPageSize is 2048 kB. Thanks, Xishi Qiu