Hi David,
On 7/30/2024 4:11 PM, David Hildenbrand wrote:
On 30.07.24 07:00, kernel test robot wrote:It's not about hugetlb. It looks like related with the change:
Hello,
kernel test robot noticed a -2.9% regression of
stress-ng.clone.ops_per_sec on:
Is that test even using hugetlb? Anyhow, this pretty much sounds like
noise and can be ignored.
diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h
index 888353c209c03..7577fe7debafc 100644
--- a/include/linux/page-flags.h
+++ b/include/linux/page-flags.h
@@ -1095,7 +1095,12 @@ PAGEFLAG(Isolated, isolated, PF_ANY);
static __always_inline int PageAnonExclusive(const struct page *page)
{
VM_BUG_ON_PGFLAGS(!PageAnon(page), page);
- VM_BUG_ON_PGFLAGS(PageHuge(page) && !PageHead(page), page);
+ /*
+ * HugeTLB stores this information on the head page; THP keeps
it per
+ * page
+ */
+ if (PageHuge(page))
+ page = compound_head(page);
return test_bit(PG_anon_exclusive, &PF_ANY(page, 1)->flags);
The PageAnonExclusive() function is changed. And the profiling data
showed it:
0.00 +3.9 3.90
perf-profile.calltrace.cycles-pp.folio_try_dup_anon_rmap_ptes.copy_present_ptes.copy_pte_range.copy_p4d_range.copy_page_range
According
https://download.01.org/0day-ci/archive/20240730/202407301049.5051dc19-oliver.sang@xxxxxxxxx/config-6.9.0-rc4-00197-gc0bff412e67b:
# CONFIG_DEBUG_VM is not set
So maybe such code change could bring difference?