Re: remove __read_mostly?

From: Christoph Lameter
Date: Mon Jun 26 2006 - 14:45:20 EST


On Mon, 26 Jun 2006, Paul Jackson wrote:

> In other words, the name __read_mostly is a little misleading, in my
> book. That name only suggests read much more than written. In your
> words:
>
> something like 99:1 read


99:1 may be too small a ratio.

A read_mostly marked variable should be changed rarely (meaning is
is extremely unlikely that his is going to change) but read frequently.

F.e. configuration data for timer operations, number of possible
processors and stuff like that.

If we would make the operation to write to the read_mostly section more
expensive (by f.e. replicating the data per node) then this would hold off
the uses that are changing too frequently.
-
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/