From: John Hubbard <jhubbard@nvidia.com>
To: Ryan Roberts <ryan.roberts@arm.com>,
Andrew Morton <akpm@linux-foundation.org>,
Zenghui Yu <yuzenghui@huawei.com>,
"Matthew Wilcox" <willy@infradead.org>,
David Hildenbrand <david@redhat.com>,
"Kefeng Wang" <wangkefeng.wang@huawei.com>,
Zi Yan <ziy@nvidia.com>, Barry Song <21cnbao@gmail.com>,
Alistair Popple <apopple@nvidia.com>,
William Kucharski <william.kucharski@oracle.com>
Cc: <linux-mm@kvack.org>, Barry Song <v-songbaohua@oppo.com>
Subject: Re: [PATCH v2] tools/mm: Add thpmaps script to dump THP usage info
Date: Wed, 10 Jan 2024 19:32:43 -0800 [thread overview]
Message-ID: <b6c9622e-8ec7-4824-82ed-4486e47f1ed6@nvidia.com> (raw)
In-Reply-To: <d1814ba4-d853-4afb-9dd1-00820b145962@nvidia.com>
On 1/10/24 16:11, John Hubbard wrote:
> On 1/10/24 3:21 PM, John Hubbard wrote:
> ...
>> 2) On an mTHP kernel with the latest patchsets (arm64, 64K page size), I
>> *think* I cannot turn off mTHP. I'm still teasing apart how much of this
>> is an instrumentation error, and how much is a measurement problem (with
>> the test suite). And maybe I'm wrong entirely. But the "never" option
>> doesn't seem to have an effect. Unless the latest version of the testsuite
>> is doing something new, sigh.
>
> OK, it turns out that the test suite changed over to use hugetlbfs
> on this version. So the performance remained high, with or without
> THP settings. heh. Please disregard this part. :)
>
...although, this does turn out to be informative with respect to
thpmap. Because, look at this case:
Container app does this:
umount /dev/shm
mount -t tmpfs tmpfs -o huge=always /dev/shm; findmnt /dev/shm
...and then monitoring it:
# ./thpmaps --cgroup /sys/fs/cgroup --cont 128K --cont 512K --cont 1M \
--cont 2M --cont 512M --summary
file-thp-aligned-524288kB: 105906176 kB (97%)
file-thp-partial: 1415680 kB ( 1%)
file-cont-aligned-128kB: 107321600 kB (99%)
file-cont-aligned-512kB: 106886656 kB (98%)
file-cont-aligned-1024kB: 106886144 kB (98%)
file-cont-aligned-2048kB: 106883072 kB (98%)
file-cont-aligned-524288kB: 105906176 kB (97%)
So what I'm trying to say here is, it is still difficult to tell
what's going on. In particular, hugetlbfs vs. [m]THP is not yet clear.
thanks,
--
John Hubbard
NVIDIA
next prev parent reply other threads:[~2024-01-11 3:32 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-10 17:32 [PATCH v2] tools/mm: Add thpmaps script to dump THP usage info Ryan Roberts
2024-01-10 23:21 ` John Hubbard
2024-01-11 0:11 ` John Hubbard
2024-01-11 3:32 ` John Hubbard [this message]
2024-01-11 11:54 ` Ryan Roberts
2024-01-11 17:32 ` Ryan Roberts
2024-01-11 18:01 ` David Hildenbrand
2024-01-11 18:04 ` John Hubbard
2024-01-12 10:01 ` Ryan Roberts
2024-01-11 18:17 ` John Hubbard
2024-01-12 10:00 ` Ryan Roberts
2024-01-12 19:14 ` John Hubbard
2024-01-15 9:48 ` Ryan Roberts
2024-01-15 15:56 ` Ryan Roberts
2024-01-15 21:30 ` John Hubbard
2024-01-16 8:53 ` Ryan Roberts
2024-01-16 17:27 ` John Hubbard
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=b6c9622e-8ec7-4824-82ed-4486e47f1ed6@nvidia.com \
--to=jhubbard@nvidia.com \
--cc=21cnbao@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=apopple@nvidia.com \
--cc=david@redhat.com \
--cc=linux-mm@kvack.org \
--cc=ryan.roberts@arm.com \
--cc=v-songbaohua@oppo.com \
--cc=wangkefeng.wang@huawei.com \
--cc=william.kucharski@oracle.com \
--cc=willy@infradead.org \
--cc=yuzenghui@huawei.com \
--cc=ziy@nvidia.com \
/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.