Re: [Lse-tech] Re: [RFC] Scalable statistics counters using kmalloc_percpu

From: Zwane Mwaikambo (zwane@linuxpower.ca)
Date: Sat Jul 27 2002 - 07:00:09 EST


On 26 Jul 2002, Robert Love wrote:

> Hmm, is your CPU-space sparse?

If you're referring to APIC IDs, even on generic SMP boxes APIC IDs can be
sparse, its not a requirment that they are consecutive (e.g. i have a dual
rig here which has a BSP with an ID of 4

> If that is the case, and the max APIC ID is set to NR_CPUS, and the
> kernel expects a 1:1 between NR_CPU value and logical CPU #... boom.

the NR_CPU should only be used to satisfy the current running cpu count
no?

Cheers,
        Zwane

-- 
function.linuxpower.ca

- 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/



This archive was generated by hypermail 2b29 : Tue Jul 30 2002 - 14:00:26 EST