From: Xishi Qiu <qiuxishi@huawei.com>
To: Linux MM <linux-mm@kvack.org>, LKML <linux-kernel@vger.kernel.org>
Subject: [question] hugetlb: how to find who use hugetlb?
Date: Mon, 19 Sep 2016 10:39:38 +0800 [thread overview]
Message-ID: <57DF4FEA.9080509@huawei.com> (raw)
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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
WARNING: multiple messages have this Message-ID (diff)
From: Xishi Qiu <qiuxishi@huawei.com>
To: Linux MM <linux-mm@kvack.org>, LKML <linux-kernel@vger.kernel.org>
Subject: [question] hugetlb: how to find who use hugetlb?
Date: Mon, 19 Sep 2016 10:39:38 +0800 [thread overview]
Message-ID: <57DF4FEA.9080509@huawei.com> (raw)
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
next reply other threads:[~2016-09-19 2:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-19 2:39 Xishi Qiu [this message]
2016-09-19 2:39 ` [question] hugetlb: how to find who use hugetlb? Xishi Qiu
2016-09-20 2:46 ` Xishi Qiu
2016-09-20 2:46 ` Xishi Qiu
2016-09-20 4:05 ` Hillf Danton
2016-09-20 4:29 ` Xishi Qiu
2016-09-20 6:47 ` Hillf Danton
2016-09-20 7:09 ` Xishi Qiu
2016-09-20 7:15 ` Hillf Danton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=57DF4FEA.9080509@huawei.com \
--to=qiuxishi@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.