adrien | 10 May 2012 14:11

Issues with numa_alloc_interleaved

Hello everyone,

First, thanks for the work done with libnuma, it really helps working this

whole system !

I've been trying to use numa_alloc_interleaved for some internal tests,

and I wanted to check that each pages of one big buffer was indeed

interleaved between all different NUMA nodes.

You can find attached a patch against 2.0.8-rc4 that adds the

"tinterleave" test-case, that you can use as this:

$ test/tinterleave $((4096*4))

where 4096 is the page size in bytes.

What it basically does is creating three buffers of 16kb using

numa_alloc_interleaved, and check that all the pages are distributed

accross the NUMA nodes.

What's interesting is that the results are different whether the buffer

are accessed just after being allocated (accesses done using memset), or

(Continue reading)


Gmane