linux-numa.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andreas Hollmann <hollmann@in.tum.de>
To: linux-numa <linux-numa@vger.kernel.org>
Subject: Is there a way to trigger numa_balancing instantly?
Date: Thu, 8 May 2014 18:13:06 +0200	[thread overview]
Message-ID: <CAGz0_-1-Nq1ttEHHoBDRUs57w-nEdmFvo6ZR+5y6imT3woRGbw@mail.gmail.com> (raw)

Hi,

is there a way to trigger numa_balancing instantly?

For applications that consist of several phases it
would be very useful to trigger numa_balancing
instantly instead of waiting until it will be triggered
automatically after a certain delay.

The application could trigger a balancing operation
when it comes from one phase to next phase and
these two phases have completely different memory
access patterns.

Would it be possible to integrate a new sysctl
that triggers the balancing for a certain pid?

Something like

echo $PID > /proc/sys/kernel/numa_balancing_now_pid

or

echo 1 > /proc/$PID/numa_balancing_now

numa_balancing could be disabled globally and only triggerd
in certain conditions. Additionally it would be nice to
enable periodic numa_balancing only for certain processes and
not globally.

echo 1 > /proc/$PID/numa_balancing

What do you think?

--

Following sysctls are provided by numa_balancing
in /proc/sys/kernel

numa_balancing                                  0
numa_balancing_migrate_deferred       16
numa_balancing_scan_delay_ms          1000
numa_balancing_scan_period_max_ms 60000
numa_balancing_scan_period_min_ms 1000
numa_balancing_scan_size_mb            256

In https://www.kernel.org/doc/Documentation/sysctl/kernel.txt

numa_balancing_settle_count is mentioned, but it seems that it
disappeared, at least in on my kernel version (3.14).

Best regards,
Andreas Hollmann

                 reply	other threads:[~2014-05-08 16:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=CAGz0_-1-Nq1ttEHHoBDRUs57w-nEdmFvo6ZR+5y6imT3woRGbw@mail.gmail.com \
    --to=hollmann@in.tum.de \
    --cc=linux-numa@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).