[Gllug] Programming for performance on Linux

general_email at technicalbloke.com general_email at technicalbloke.com
Fri May 14 21:55:20 UTC 2010


Shlomi Fish wrote:
> Hi,
>
> On Tue, May 11, 2010 at 2:58 PM, James Courtier-Dutton
> <james.dutton at gmail.com> wrote:
>   
<snip>
>> relation to the number crunching done in the algorithm.
>> I am also unclear as to whether I can use the Layer 1 cache like this
>> with 4 threads, or would I have to have 4 processes instead to keep
>> the data private in the local Layer 1 cache.
>>     
>
> Isn't the cache global to the entire machine?
>
>   

I don't think L1 cache is shared, L2 cache can be though depending on
the architecture. IIRC Intel Core 2 Duos have a shared L2 cache common
to all cores whereas the AMD Athlon quads and Intel's Pentium D have
separate L2 caches for each core.

Roger.




-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list