All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
To: linux-numa@vger.kernel.org
Cc: ltp-list <ltp-list@lists.sourceforge.net>
Subject: numastats updates
Date: Thu, 03 Apr 2014 14:45:27 +0400	[thread overview]
Message-ID: <533D3BC7.8010309@oracle.com> (raw)

Hello!

In LTP we have a test - numa01.sh 
(https://github.com/linux-test-project/ltp/blob/master/testcases/kernel/numa/numa01.sh)

In general, this script does something like:
   * numastat > /tmp/before
   * starts a binary with the specified numa memory policy using numactl 
(or a like):
     numactl --interleave=all get_some_memory_with_malloc_and_write_it
   * `sleep` for few seconds
   * numastat > /tmp/after
   * compares /tmp/before and /tmp/after to check that the numa policy
was applied the right way

But the problem is that on a host with many NUMA nodes (8) the process
of updating that numastats statistics takes some time. Even 10 seconds
may be not enough. Therefore the test fails.

Is there a direct or indirect way to force the kernel to update the NUMA 
statistics?

Thank you.

WARNING: multiple messages have this Message-ID (diff)
From: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
To: linux-numa@vger.kernel.org
Cc: ltp-list <ltp-list@lists.sourceforge.net>
Subject: [LTP] numastats updates
Date: Thu, 03 Apr 2014 14:45:27 +0400	[thread overview]
Message-ID: <533D3BC7.8010309@oracle.com> (raw)

Hello!

In LTP we have a test - numa01.sh 
(https://github.com/linux-test-project/ltp/blob/master/testcases/kernel/numa/numa01.sh)

In general, this script does something like:
   * numastat > /tmp/before
   * starts a binary with the specified numa memory policy using numactl 
(or a like):
     numactl --interleave=all get_some_memory_with_malloc_and_write_it
   * `sleep` for few seconds
   * numastat > /tmp/after
   * compares /tmp/before and /tmp/after to check that the numa policy
was applied the right way

But the problem is that on a host with many NUMA nodes (8) the process
of updating that numastats statistics takes some time. Even 10 seconds
may be not enough. Therefore the test fails.

Is there a direct or indirect way to force the kernel to update the NUMA 
statistics?

Thank you.

------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

             reply	other threads:[~2014-04-03 10:45 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-03 10:45 Stanislav Kholmanskikh [this message]
2014-04-03 10:45 ` [LTP] numastats updates Stanislav Kholmanskikh
2014-04-07  1:39 ` Andi Kleen
2014-04-07  1:39   ` [LTP] " Andi Kleen
2014-04-07 15:47   ` Christoph Lameter
2014-04-07 15:47     ` [LTP] " Christoph Lameter
2014-04-08 16:49     ` Stanislav Kholmanskikh
2014-04-08 16:49       ` [LTP] " Stanislav Kholmanskikh
2014-04-08 16:57       ` Christoph Lameter
2014-04-08 16:57         ` [LTP] " Christoph Lameter
2014-04-08 16:58       ` Stanislav Kholmanskikh
2014-04-08 16:58         ` [LTP] " Stanislav Kholmanskikh
2014-04-08 18:03         ` Christoph Lameter
2014-04-08 18:03           ` [LTP] " Christoph Lameter
2014-04-10  5:44           ` Stanislav Kholmanskikh
2014-04-10  5:44             ` [LTP] " Stanislav Kholmanskikh
2014-04-11  1:48             ` Christoph Lameter
2014-04-11  1:48               ` [LTP] " Christoph Lameter
2014-04-11  2:12               ` Christoph Lameter
2014-04-11  2:12                 ` [LTP] " Christoph Lameter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=533D3BC7.8010309@oracle.com \
    --to=stanislav.kholmanskikh@oracle.com \
    --cc=linux-numa@vger.kernel.org \
    --cc=ltp-list@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.