[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1287564262.8722.2.camel@sli10-conroe.sh.intel.com>
Date: Wed, 20 Oct 2010 16:44:22 +0800
From: Shaohua Li <shaohua.li@...el.com>
To: Andi Kleen <andi@...stfloor.org>
Cc: lkml <linux-kernel@...r.kernel.org>, Ingo Molnar <mingo@...e.hu>,
"hpa@...or.com" <hpa@...or.com>,
"Chen, Tim C" <tim.c.chen@...el.com>
Subject: Re: [PATCH 2/2]x86: spread tlb flush vector between nodes
On Wed, 2010-10-20 at 15:30 +0800, Andi Kleen wrote:
> Hi Shaohua,
>
> > + if (nr_online_nodes > NUM_INVALIDATE_TLB_VECTORS)
> > + nr_node_vecs = 1;
> > + else
> > + nr_node_vecs = NUM_INVALIDATE_TLB_VECTORS/nr_online_nodes;
>
> Does this build without CONFIG_NUMA? AFAIK nr_online_nodes is only
> defined for a numa kernel.
yes it's ok without CONFIG_NUMA
> > +
> > +static int tlb_cpuhp_notify(struct notifier_block *n,
> > + unsigned long action, void *hcpu)
> > +{
> > + switch (action & 0xf) {
> > + case CPU_ONLINE:
> > + case CPU_DEAD:
> > + calculate_tlb_offset();
>
> I still think the notifier is overkill and a static mapping at boot time
> would be fine.
this hasn't much overhead, so please keep it. I'm afraid static mapping
calculation for hotplug cpu will introduce more complex.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists