[LTP] [PATCH 1/3] ltp/numa: waiting for numastat refresh
Li Wang
liwang@redhat.com
Fri Dec 2 08:49:25 CET 2016
On Thu, Dec 1, 2016 at 6:51 PM, Cyril Hrubis <chrubis@suse.cz> wrote:
> 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.
This method is great! But, I'm thinking about how can we apply to
test6, test7 and test8, because these functions do not involve
support_numa.c process in their test.
In test8:
numactl --interleave=all memhog 1MB
It seems a little hard to hang up this memhog process.
Or, can we reseve previous method compatible with this? In other
words, two method exsit at the same time.
Li Wang
>
> 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
--
Regards,
Li Wang
Email: liwang@redhat.com
More information about the ltp
mailing list