From: Cyril Hrubis Date: Mon, 5 Dec 2016 10:28:10 +0100 Subject: [LTP] [PATCH 1/3] ltp/numa: waiting for numastat refresh In-Reply-To: References: <1479872202-29920-1-git-send-email-liwang@redhat.com> <20161123125727.GF3346@rei.lan> <20161201105129.GB5626@rei.lan> Message-ID: <20161205092810.GB15793@rei.lan> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it 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