Re: [PATCHSET x86/core/percpu] improve the first percpu chunkallocation

From: Ingo Molnar
Date: Tue Mar 03 2009 - 19:51:15 EST



* H. Peter Anvin <hpa@xxxxxxxxx> wrote:

> Rusty Russell wrote:
>> On Wednesday 25 February 2009 01:07:24 Tejun Heo wrote:
>>> it always
>>> saves a 2MB TLB entry for all the non-NUMA machines out there.
>>
>> Note that everyone keeps talking about "a" TLB entry; I wanted to make
>> sure (esp. for those of us reading from the sidelines), it's not: it's
>> up to num_possible_cpus() TLB entries. Of course, many paths won't access
>> other CPU's data, but it'd be interesting (and pretty easy) to actually
>> instrument how rare this is...
>>
>
> Actually it's up to the number of actual CPUs in the system...
> obviously there isn't any data allocated for non-present CPUs.

well, we allocate percpu data for each possible CPU.

In the overwhelming majority of cases that means all actual
CPUs.

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/