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

Li Wang liwang@redhat.com
Mon Dec 5 11:24:45 CET 2016


On Mon, Dec 5, 2016 at 5:28 PM, Cyril Hrubis <chrubis@suse.cz> wrote:
> 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 &

Sounds good, we can just add raise(SIGSTOP) in support_numa.c to wait a signal.

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

Ok, agree to remove.

>
>> 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

Great! Let me have a look and then choose a way.

Thanks,
Li Wang


More information about the ltp mailing list