|
|
Log in / Subscribe / Register

sched/eevdf: Rate limit task migration

From:  Mathieu Desnoyers <mathieu.desnoyers-AT-efficios.com>
To:  Peter Zijlstra <peterz-AT-infradead.org>
Subject:  [RFC PATCH 0/2] sched/eevdf: Rate limit task migration
Date:  Tue, 05 Sep 2023 13:11:03 -0400
Message-ID:  <20230905171105.1005672-1-mathieu.desnoyers@efficios.com>
Cc:  linux-kernel-AT-vger.kernel.org, Mathieu Desnoyers <mathieu.desnoyers-AT-efficios.com>, Ingo Molnar <mingo-AT-redhat.com>, Valentin Schneider <vschneid-AT-redhat.com>, Steven Rostedt <rostedt-AT-goodmis.org>, Ben Segall <bsegall-AT-google.com>, Mel Gorman <mgorman-AT-suse.de>, Daniel Bristot de Oliveira <bristot-AT-redhat.com>, Vincent Guittot <vincent.guittot-AT-linaro.org>, Juri Lelli <juri.lelli-AT-redhat.com>, Swapnil Sapkal <Swapnil.Sapkal-AT-amd.com>, Aaron Lu <aaron.lu-AT-intel.com>, Julien Desfossez <jdesfossez-AT-digitalocean.com>, x86-AT-kernel.org
Archive-link:  Article

Implement task migration rate limiting to speed up workload patterns
such as hackbench which trigger frequent migrations.

The first patch implements a simple rate limiting of 1 migration per
2ms. The second patch implements adaptative task migration rate
limiting.

I would be interested to hear feedback on this approach, especially
about how it behaves on various workloads.

Thanks,

Mathieu

Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Valentin Schneider <vschneid@redhat.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Ben Segall <bsegall@google.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Daniel Bristot de Oliveira <bristot@redhat.com>
Cc: Vincent Guittot <vincent.guittot@linaro.org>
Cc: Juri Lelli <juri.lelli@redhat.com>
Cc: Swapnil Sapkal <Swapnil.Sapkal@amd.com>
Cc: Aaron Lu <aaron.lu@intel.com>
Cc: Julien Desfossez <jdesfossez@digitalocean.com>
Cc: x86@kernel.org

Mathieu Desnoyers (2):
  sched: rate limit migrations to 1 per 2ms per task
  sched: Implement adaptative rate limiting of task migrations

 include/linux/sched.h |  4 ++++
 kernel/sched/core.c   |  3 +++
 kernel/sched/fair.c   | 40 ++++++++++++++++++++++++++++++++++++++++
 kernel/sched/sched.h  |  4 ++++
 4 files changed, 51 insertions(+)

-- 
2.39.2



Copyright © 2023, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds