From: hev <r@hev.cc>
To: Alexander Viro <viro@zeniv.linux.org.uk>,
Christian Brauner <brauner@kernel.org>, Jan Kara <jack@suse.cz>,
Kees Cook <kees@kernel.org>,
Matthew Wilcox <willy@infradead.org>,
"David Hildenbrand (Arm)" <david@kernel.org>
Cc: linux-fsdevel@vger.kernel.org, linux-mm@kvack.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] binfmt_elf: Align eligible read-only PT_LOAD segments to PMD_SIZE for THP
Date: Sun, 8 Mar 2026 17:57:27 +0800 [thread overview]
Message-ID: <CAHirt9hA=yw1NDS5zz0qkLEtczu1STZFBeq+soEF0GYhN8HTBw@mail.gmail.com> (raw)
In-Reply-To: <20260304114727.384416-1-r@hev.cc>
Hi,
I ran a quick benchmark on x86_64 as well.
Machine: AMD Ryzen 9 7950X
Binutils: 2.46
GCC: 15.2.1 (built with -z,noseparate-code + --enable-host-pie)
Workload: building Linux v7.0-rc1 with x86_64_defconfig.
Without patch:
* instructions: 8,246,133,611,932
* cpu-cycles: 8,001,028,142,928
* itlb-misses: 3,672,158,331
* time elapsed: 64.66 s
With patch:
* instructions: 8,246,025,137,750
* cpu-cycles: 7,565,925,107,502
* itlb-misses: 26,821,242
* time elapsed: 61.97 s
Instructions are basically unchanged. iTLB misses drop from ~3.67B to
~26M (~99.27% reduction), which results in about a ~5.44% reduction in
cycles and ~4.18% shorter wall time for this workload.
Thanks,
Rui
next prev parent reply other threads:[~2026-03-08 9:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-04 11:47 WANG Rui
2026-03-08 9:57 ` hev [this message]
2026-03-09 14:22 ` David Hildenbrand (Arm)
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='CAHirt9hA=yw1NDS5zz0qkLEtczu1STZFBeq+soEF0GYhN8HTBw@mail.gmail.com' \
--to=r@hev.cc \
--cc=brauner@kernel.org \
--cc=david@kernel.org \
--cc=jack@suse.cz \
--cc=kees@kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=viro@zeniv.linux.org.uk \
--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