From: David Hildenbrand <david@redhat.com>
To: kernel test robot <oliver.sang@intel.com>
Cc: oe-lkp@lists.linux.dev, lkp@intel.com,
linux-kernel@vger.kernel.org,
Andrew Morton <akpm@linux-foundation.org>,
Andy Lutomirks^H^Hski <luto@kernel.org>,
Borislav Betkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
Ingo Molnar <mingo@redhat.com>, Jann Horn <jannh@google.com>,
Johannes Weiner <hannes@cmpxchg.org>,
Jonathan Corbet <corbet@lwn.net>,
"Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>,
Lance Yang <ioworker0@gmail.com>,
Liam Howlett <liam.howlett@oracle.com>,
Lorenzo Stoakes <lorenzo.stoakes@oracle.com>,
Matthew Wilcow <willy@infradead.org>,
Michal Koutn <mkoutny@suse.com>,
Muchun Song <muchun.song@linux.dev>, tejun heo <tj@kernel.org>,
Thomas Gleixner <tglx@linutronix.de>,
Vlastimil Babka <vbabka@suse.cz>,
Zefan Li <lizefan.x@bytedance.com>,
linux-mm@kvack.org
Subject: Re: [linus:master] [mm/rmap] 6af8cb80d3: vm-scalability.throughput 7.8% regression
Date: Wed, 16 Apr 2025 11:16:15 +0200 [thread overview]
Message-ID: <50a55a42-6d79-4e3c-992c-26a96dc12d81@redhat.com> (raw)
In-Reply-To: <b7d2f1dd-d181-4821-ac05-b000818daf91@redhat.com>
On 16.04.25 10:07, David Hildenbrand wrote:
> On 16.04.25 09:01, kernel test robot wrote:
>>
>>
>> Hello,
>>
>> kernel test robot noticed a 7.8% regression of vm-scalability.throughput on:
>>
>>
>> commit: 6af8cb80d3a9a6bbd521d8a7c949b4eafb7dba5d ("mm/rmap: basic MM owner tracking for large folios (!hugetlb)")
>> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master
>>
>>
>> testcase: vm-scalability
>> config: x86_64-rhel-9.4
>> compiler: gcc-12
>> test machine: 256 threads 2 sockets GENUINE INTEL(R) XEON(R) (Sierra Forest) with 128G memory
>> parameters:
>>
>> runtime: 300s
>> size: 8T
>> test: anon-cow-seq
>> cpufreq_governor: performance
>>
>
> This should be the scenario with THP enabled. At first, I thought the
> problem would be contention on the per-folio spinlock, but what makes me
> scratch my head is the following:
>
> 13401 -16.5% 11190 proc-vmstat.thp_fault_alloc
> ... 3430623 -16.5% 2864565 proc-vmstat.thp_split_pmd
>
>
> If we allocate less THP, performance of the benchmark will obviously be
> worse with less THPs.
>
> We allocated 2211 less THPs and had 566058 less THP PMD->PTE remappings.
>
> 566058 / 2211 = 256, which is exactly the number of threads ->
> vm-scalability fork'ed child processes.
>
> So it was in fact the benchmark that was effectively using 16.5% less THPs.
>
> I don't see how this patch would affect the allocation of THPs in any
> way (and I don't think it does).
Thinking about this some more: Assuming both runs execute the same test
executions, we would expect the number of allocated THPs to not change
(unless we really have fragmentation that results in less THP getting
allocated).
Assuming we run into a timeout after 300s and abort the test earlier, we
could end up with a difference in executions and, therefore THP allocations.
I recall that usually we try to have the same benchmark executions and
not run into the timeout (otherwise some of these stats, like THP
allocations are completely unreliable).
Maybe
7.968e+09 -16.5% 6.652e+09 vm-scalability.workload
indicates that we ended up with less executions? At least the
"repro-script" seems to indicate that we always execute a fixed number
of executions, but maybe the repo-script is aborted by the benchmark
framework.
--
Cheers,
David / dhildenb
prev parent reply other threads:[~2025-04-16 9:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-16 7:01 kernel test robot
2025-04-16 8:07 ` David Hildenbrand
2025-04-16 9:16 ` David Hildenbrand [this message]
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=50a55a42-6d79-4e3c-992c-26a96dc12d81@redhat.com \
--to=david@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=bp@alien8.de \
--cc=corbet@lwn.net \
--cc=dave.hansen@linux.intel.com \
--cc=hannes@cmpxchg.org \
--cc=ioworker0@gmail.com \
--cc=jannh@google.com \
--cc=kirill.shutemov@linux.intel.com \
--cc=liam.howlett@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=lizefan.x@bytedance.com \
--cc=lkp@intel.com \
--cc=lorenzo.stoakes@oracle.com \
--cc=luto@kernel.org \
--cc=mingo@redhat.com \
--cc=mkoutny@suse.com \
--cc=muchun.song@linux.dev \
--cc=oe-lkp@lists.linux.dev \
--cc=oliver.sang@intel.com \
--cc=tglx@linutronix.de \
--cc=tj@kernel.org \
--cc=vbabka@suse.cz \
--cc=willy@infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox