[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8888bc15-017e-d479-1ef4-0af1b7330a9d@gmail.com>
Date: Thu, 22 Jun 2017 19:32:10 +0800
From: Yang Zhang <yang.zhang.wz@...il.com>
To: tglx@...utronix.de, mingo@...hat.com, hpa@...or.com,
pbonzini@...hat.com
Cc: x86@...nel.org, corbet@....net, tony.luck@...el.com, bp@...en8.de,
peterz@...radead.org, mchehab@...nel.org,
akpm@...ux-foundation.org, krzk@...nel.org, jpoimboe@...hat.com,
luto@...nel.org, borntraeger@...ibm.com, thgarnie@...gle.com,
rgerst@...il.com, minipli@...glemail.com,
douly.fnst@...fujitsu.com, nicstange@...il.com, fweisbec@...il.com,
dvlasenk@...hat.com, bristot@...hat.com,
yamada.masahiro@...ionext.com, mika.westerberg@...ux.intel.com,
yu.c.chen@...el.com, aaron.lu@...el.com, rostedt@...dmis.org,
me@...ehuey.com, len.brown@...el.com, prarit@...hat.com,
hidehiro.kawai.ez@...achi.com, fengtiantian@...wei.com,
pmladek@...e.com, jeyu@...hat.com, Larry.Finger@...inger.net,
zijun_hu@....com, luisbg@....samsung.com, johannes.berg@...el.com,
niklas.soderlund+renesas@...natech.se, zlpnobody@...il.com,
adobriyan@...il.com, fgao@...ai8.com, ebiederm@...ssion.com,
subashab@...eaurora.org, arnd@...db.de, matt@...eblueprint.co.uk,
mgorman@...hsingularity.net, linux-kernel@...r.kernel.org,
linux-doc@...r.kernel.org, linux-edac@...r.kernel.org,
kvm@...r.kernel.org
Subject: Re: [PATCH 0/2] x86/idle: add halt poll support
On 2017/6/22 19:22, root wrote:
> From: Yang Zhang <yang.zhang.wz@...il.com>
Sorry to use wrong username to send patch because i am using a new
machine which don't setup the git config well.
>
> Some latency-intensive workload will see obviously performance
> drop when running inside VM. The main reason is that the overhead
> is amplified when running inside VM. The most cost i have seen is
> inside idle path.
> This patch introduces a new mechanism to poll for a while before
> entering idle state. If schedule is needed during poll, then we
> don't need to goes through the heavy overhead path.
>
> Here is the data i get when running benchmark contextswitch
> (https://github.com/tsuna/contextswitch)
> before patch:
> 2000000 process context switches in 4822613801ns (2411.3ns/ctxsw)
> after patch:
> 2000000 process context switches in 3584098241ns (1792.0ns/ctxsw)
>
>
> Yang Zhang (2):
> x86/idle: add halt poll for halt idle
> x86/idle: use dynamic halt poll
>
> Documentation/sysctl/kernel.txt | 24 ++++++++++
> arch/x86/include/asm/processor.h | 6 +++
> arch/x86/kernel/apic/apic.c | 6 +++
> arch/x86/kernel/apic/vector.c | 1 +
> arch/x86/kernel/cpu/mcheck/mce_amd.c | 2 +
> arch/x86/kernel/cpu/mcheck/therm_throt.c | 2 +
> arch/x86/kernel/cpu/mcheck/threshold.c | 2 +
> arch/x86/kernel/irq.c | 5 ++
> arch/x86/kernel/irq_work.c | 2 +
> arch/x86/kernel/process.c | 80 ++++++++++++++++++++++++++++++++
> arch/x86/kernel/smp.c | 6 +++
> include/linux/kernel.h | 5 ++
> kernel/sched/idle.c | 3 ++
> kernel/sysctl.c | 23 +++++++++
> 14 files changed, 167 insertions(+)
>
--
Yang
Alibaba Cloud Computing
Powered by blists - more mailing lists