[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20251030150417.684-1-qq570070308@gmail.com>
Date: Thu, 30 Oct 2025 23:04:17 +0800
From: Xie Yuanbin <qq570070308@...il.com>
To: david@...hat.com
Cc: acme@...nel.org,
adrian.hunter@...el.com,
agordeev@...ux.ibm.com,
akpm@...ux-foundation.org,
alex@...ti.fr,
alexander.shishkin@...ux.intel.com,
andreas@...sler.com,
anna-maria@...utronix.de,
aou@...s.berkeley.edu,
borntraeger@...ux.ibm.com,
bp@...en8.de,
bsegall@...gle.com,
dave.hansen@...ux.intel.com,
davem@...emloft.net,
dietmar.eggemann@....com,
frederic@...nel.org,
gor@...ux.ibm.com,
hca@...ux.ibm.com,
hpa@...or.com,
irogers@...gle.com,
jolsa@...nel.org,
juri.lelli@...hat.com,
linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org,
linux-perf-users@...r.kernel.org,
linux-riscv@...ts.infradead.org,
linux-s390@...r.kernel.org,
linux@...linux.org.uk,
lorenzo.stoakes@...cle.com,
luto@...nel.org,
mark.rutland@....com,
mathieu.desnoyers@...icios.com,
max.kellermann@...os.com,
mgorman@...e.de,
mingo@...hat.com,
namhyung@...nel.org,
nysal@...ux.ibm.com,
palmer@...belt.com,
paulmck@...nel.org,
peterz@...radead.org,
pjw@...nel.org,
qq570070308@...il.com,
riel@...riel.com,
rostedt@...dmis.org,
ryan.roberts@....com,
segher@...nel.crashing.org,
sparclinux@...r.kernel.org,
svens@...ux.ibm.com,
tglx@...utronix.de,
thuth@...hat.com,
urezki@...il.com,
vincent.guittot@...aro.org,
vschneid@...hat.com,
will@...nel.org,
x86@...nel.org
Subject: Re: [PATCH 0/3] Optimize code generation during context
On Wed, 29 Oct 2025 11:26:39 +0100, David Hildenbrand wrote:
>> I did some testing using my devices,
>> and the testing logic is as follows:
>> ```
>> - return finish_task_switch(prev);
>> + start_time = rdtsc();
>> + barrier();
>> + rq = finish_task_switch(prev);
>> + barrier();
>> + end_time = rdtsc;
>> + return rq;
>> ```
>>
>> The test data is as follows:
>> 1. mitigations Off, without patches: 13.5 - 13.7
>> 2. mitigations Off, with patches: 13.5 - 13.7
>> 3. mitigations On, without patches: 23.3 - 23.6
>> 4. mitigations On, with patches: 16.6 - 16.8
>
> Such numbers absolutely have to be part of the relevant patches / cover
> letter to show that the compiler is not actually smart enough to make a
> good decision.
This was indeed my oversight; I did not read the submitting-patches
documentation carefully, thank you for your pointing it out, and I deeply
apologize for this.
Do I need to send the V2 version patches to supplement the relevant data?
By the way, the above data was tested in WSL. I did a more detailed test
on a physical machine. If possible, this data may be more appropriate:
Link: https://lore.kernel.org/20251027152100.62906-1-qq570070308@gmail.com
> Cheers
>
> David / dhildenb
Thanks very much.
Xie Yuanbin
Powered by blists - more mailing lists