x86 linux - how to create custom malloc with address hint

Posted by nandu on Stack Overflow See other posts from Stack Overflow or by nandu
Published on 2010-05-14T09:30:24Z Indexed on 2010/05/14 9:34 UTC
Read the original article Hit count: 143

Filed under:

Hi, I want to create a custom malloc which allocates memory blocks within a given address range.

I am writing a pthreads application in which threads are bound to unique cores on a many-core machine. The memory controllers are statically mapped, so that certain range of addresses on main memory are electrically closer to a core. I want to minimize the latency of communication between cores and main memory by allocating thread memory on these "closer" regions.

Any ideas would be most appreciated. Thank you! Nandu

© Stack Overflow or respective owner

Related posts about x86