This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: mlock in cache


On 08/02/2013 04:27 PM, Andrew Haley wrote:

I'm pretty sure that there should be
a way for this to be done in assembly,
Why do you think so?  I'm looking at
http://download.intel.com/products/processor/manual/253668.pdf and I
can't see it.

I'm saying so because even if there is no provided API to do so, if you work at a low level (requires messing with the memory management also) there must be a way to achieve it. Also a non-intrusive but naive way is also to perform repeated prefetching so that you keep the lines at the top of the LRU.

--
Christos Tsopokis


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]