From: Vlad <vlad@scalemp.com>
To: Ingo Molnar <mingo@kernel.org>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>,
"Shai Fultheim (Shai@ScaleMP.com)" <Shai@scalemp.com>
Subject: Re: [PATCH v2 2/2] x86: Added read_mostly declaration/definition to vars from smp.h
Date: Sun, 20 May 2012 16:55:53 +0300 [thread overview]
Message-ID: <4FB8F7E9.4020005@scalemp.com> (raw)
In-Reply-To: <20120518081416.GA20872@gmail.com>
On 05/18/2012 11:14 AM, Ingo Molnar wrote:
> * Vlad Zolotarov<vlad@scalemp.com> wrote:
>
>> Added a "read-mostly" qualifier to the following variables in smp.h:
>> - cpu_sibling_map
>> - cpu_core_map
>> - cpu_llc_shared_map
>> - cpu_llc_id
>> - cpu_number
>> - x86_cpu_to_apicid
>> - x86_bios_cpu_apicid
>> - x86_cpu_to_logical_apicid
>>
>> As long as all the variables above are only written during the initialization,
>> this change is meant to prevent the false sharing and improve the
>> performance on large multiprocessor systems.
>>
>> Signed-off-by: Vlad Zolotarov<vlad@scalemp.com>
>> Signed-off-by: Shai Fultheim<shai@scalemp.com>
>> ---
>> arch/x86/include/asm/apic.h | 2 +-
>> arch/x86/include/asm/smp.h | 16 ++++++++--------
>> arch/x86/kernel/apic/apic.c | 6 +++---
>> arch/x86/kernel/setup_percpu.c | 2 +-
>> arch/x86/kernel/smpboot.c | 8 ++++----
>> 5 files changed, 17 insertions(+), 17 deletions(-)
>
> This does not build on !SMP kernels that has APIC enabled.
Oops... :) My bad. I'll rebase and respin.
Thanks,
vlad
>
> Thanks,
>
> Ingo
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
prev parent reply other threads:[~2012-05-20 13:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-15 15:31 [PATCH v2 2/2] x86: Added read_mostly declaration/definition to vars from smp.h Vlad Zolotarov
2012-05-18 8:14 ` Ingo Molnar
2012-05-20 13:55 ` Vlad [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=4FB8F7E9.4020005@scalemp.com \
--to=vlad@scalemp.com \
--cc=Shai@scalemp.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
/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