mlock in cache

Christos xristos.tsop@gmail.com
Fri Aug 2 14:13:00 GMT 2013


Hi everyone,

I am developing a program in C and I want to lock some memory pages in 
cache, particularly in the core specific level (i.e. level 1). As far as 
I know the C libraries do not provide an interface to do that so I guess 
that there must be some particular directives in gcc to do so. I am 
interested in locking both a struct and some arbitrary variables.

Could any one provide any information for that? If so it would be very 
helpful.
Thanks in advance,

-- 
Christos Tsopokis



More information about the Gcc-help mailing list