Re: [RFC PATCH 3/5] x86: add a sysctl parameter to panic on stackoverflow

From: H. Peter Anvin
Date: Thu Nov 17 2011 - 11:06:47 EST


On 11/17/2011 08:00 AM, Konrad Rzeszutek Wilk wrote:
>>
>> I don't mind if I add __read_mostly here, but I think it's not
>> necessary because this variable is seldom read as well.
>
> The definition of __read_mostly is that it moves this variable to a cold cache area.
> Which is what you want.
>

Not really. __read_mostly moves a variable to an area that is expected
to spent most its time in the cache-shared state and rarely be
invalidated. It does NOT mean that it is cold.

-hpa

--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.

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