[LTP] [PATCH 1/3] ltp/numa: waiting for numastat refresh

Cyril Hrubis chrubis@suse.cz
Thu Dec 1 11:51:29 CET 2016


Hi!
I've been looking into the problem and found much better solution. We
can, instead of quering the whole system statistic, read statistic for a
single process.

What about we do:

1. Change support_numa.c to sleep in wait() instead of exitting when
   allocating memory
2. Run the numactl ... command on background with &
3. Then we can get statistic for a single process with numastat -p $pid
   Alternatively we can change the support_numa.c to allocate the memory
   with mmap and parse /proc/$pid/numa_maps to match the pointer address
   and figure out if the mapping(s) are distributed correctly
4. Then we can kill the $pid

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list