> - metrics -- L1 cacheline size is the important one: you align array
>   elements to this size when you want a per-cpu array, so that multiple
>   CPUs do not share a cacheline for accessing their "own" structure.
>   Proper alignment avoids "cacheline ping-pong", as it's called,
>   whenever two CPUs need to access "their" element of the same array at
>   the same time.

Anyone can give me some pointers on how this is done runtime ? (name of
the .c file is fine).

I'm still looking at the basic stuff, but haven't bumped into this one
yet...




        Igmar

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/

Reply via email to