Messages in this thread | | | Date | Wed, 4 Sep 2013 12:15:28 -0500 | From | Alex Thorlton <> | Subject | Re: [PATCH 1/8] THP: Use real address for NUMA policy |
| |
> Robin, > > I tweaked one of our other tests to behave pretty much exactly as I > - malloc a large array > - Spawn a specified number of threads > - Have each thread touch small, evenly spaced chunks of the array (e.g. > for 128 threads, the array is divided into 128 chunks, and each thread > touches 1/128th of each chunk, dividing the array into 16,384 pieces)
Forgot to mention that the threads don't touch their chunks of memory concurrently, i.e. thread 2 has to wait for thread 1 to finish first. This is important to note, since the pages won't all get stuck on the first node without this behavior.
| |