lkml.org 
[lkml]   [2011]   [Nov]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH 3/5] x86: add a sysctl parameter to panic on stack overflow
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.



\
 
 \ /
  Last update: 2011-11-17 17:09    [W:0.070 / U:1.992 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site