[Lazarus] semaphores

Helmut Hartl helmut.hartl at firmos.at
Thu Feb 9 14:39:02 CET 2012


Am 09.02.12 13:18, schrieb Lukasz Sokol:
> On 09/02/2012 11:18, Mark Morgan Lloyd wrote:
>> Lukasz Sokol wrote:
>>> On 09/02/2012 10:01, Sven Barth wrote:
>>>
>>>> The memory that is used by CPU caches is the fastest (but also
>>>> the most expensive that's why it's only used for the relatively
>>>> small caches).
>>>>
>>>> Regards, Sven
>>>>
>>> Is there a way for a non-kernel-developer or plain FPC/Laz user to
>>> control what is stored in cpu cache ? I thought cache management is
>>> done transparently to userspace...?
>> Only on IA-64 ("Itanic") as far as I know, and in any case for
>> prefetches etc. to be effective the application code would have to be
>> intimately familiar with the details of the hardware implementation.
>> It's the sort of thing that would be a compile-time option on a Cray
>> :-)
>>
> Thought so ;) (disclaimer : I read lkml sometimes stumbling upon devs
> reordering paddings in structures to make them fit into cachelines)
>
> L.
>
>
One of the best text (IMHO) you can read about what you can influence is:
Ulrich Drepper's "What every programmer should know about memory"

Helmut




More information about the Lazarus mailing list