Re: [PATCH] New per-cpu patch v2.5.1

Robert Love (rml@tech9.net)
20 Dec 2001 01:24:45 -0500


On Thu, 2001-12-20 at 01:15, Rusty Russell wrote:
> After some discussion, this may be a more sane (untested) per-cpu area
> patch. It dynamically allocated the sections (and discards the
> original), which would allow (future) NUMA people to make sure their
> CPU area is allocated near them.
>
> Comments welcome,

Would the next step be to find the various per-CPU data in the kernel
and convert it to your new form? I.e., is this a general purpose
interface for per-CPU data structures, or am I missing something?

If it is, this is a good idea. Other Unices have this (IRIX comes to
mind). One of the biggest advantages, IMO, is simply the readability --
data structures that are per-CPU have varying methods of creation and
referencing. The implicit locking (i.e., none) can be unclear.

Bring everything together can be a good thing.

Robert Love

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