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

Cyril Hrubis chrubis@suse.cz
Mon Dec 5 10:28:10 CET 2016


Hi!
> 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.

I guess that we can add a dummy program to make wait for a signal in the test06.

Does something like this work?

numactl --length=1M --file /dev/shm/numa_shm --interleave=all --touch support_numa 3 &

I would be probably in favor of dropping the test07, since that does
more or less the same as test03.

> In test8:
>    numactl --interleave=all memhog 1MB
> 
> It seems a little hard to hang up this memhog process.

Just set large enough memhog repeat parameter with -r so that it does
not finish prematurely. Or even better we can just add a few lines of
code to the numa helper so that it can memset the memory in a loop just
like the memhog does.

https://github.com/numactl/numactl/blob/master/memhog.c

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list