lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20211027204319.22697-1-paul.gortmaker@windriver.com>
Date:   Wed, 27 Oct 2021 16:43:17 -0400
From:   Paul Gortmaker <paul.gortmaker@...driver.com>
To:     <linux-kernel@...r.kernel.org>
CC:     Paul Gortmaker <paul.gortmaker@...driver.com>,
        Ingo Molnar <mingo@...hat.com>,
        Steven Rostedt <rostedt@...dmis.org>,
        Thomas Gleixner <tglx@...utronix.de>,
        Peter Zijlstra <peterz@...radead.org>,
        Josh Triplett <josh@...htriplett.org>,
        "Paul E . McKenney" <paulmck@...nel.org>,
        "Frederic Weisbecker" <frederic@...nel.org>,
        Valentin Schneider <valentin.schneider@....com>
Subject: [PATCH 0/2] bind rcu offload (nohz_full/isolation) into cpuset

One of the earlier pre-mainline RCU nocb patchsets had a temporary sysfs
knob in /sys/devices/system/cpu/cpu*/hotplug/nocb for testing[1].

That not-for-merge commit from Frederic said:

  This is only intended for those who want to test this patchset. The
  real interfaces will be cpuset/isolation and rcutorture.

We've had rcutorture as the one and only mainline user of nocb toggle
for a while now[2], and so I thought I'd take a crack at what Frederic
had in mind for cpuset with some code vs. asking 100 random questions.

Note that I intentionally didn't Cc any cgroup/cpuset people (yet),
since at this point this is only my guess on what things were to look
like based on a single sentence fragment.  So this is really early
"Not-for-Merge", but truly just RFC -- to start a conversation.

It won't be really useful until we adjust tick/housekeeping in addition
to nocb, but I think we can develop the interface in parallel to that?
And maybe use this to expand testing at the same time if it is layered
on top of those future work/patchsets?  I don't know...

We'll also have to look at corner cases - like whether we want to treat
the root cpuset differently; whether we want to sync boot arg values
with the cpuset's initial isol flag value, whether we un-isolate cores
when an isolation cpuset is rmdir/removed, etc etc.

But as a proof of concept, it "works" as can be seen in the 2nd commit.

Paul.
--

Cc: Ingo Molnar <mingo@...hat.com>
Cc: Steven Rostedt <rostedt@...dmis.org>
Cc: Thomas Gleixner <tglx@...utronix.de>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: Josh Triplett <josh@...htriplett.org>
Cc: Paul E. McKenney <paulmck@...nel.org>
Cc: Frederic Weisbecker <frederic@...nel.org>
Cc: Valentin Schneider <valentin.schneider@....com>

[1] https://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git/commit/?h=rcu/nocb&id=6abe8408307e
    part of https://lwn.net/Articles/820544/
            https://lwn.net/Articles/832031/   <------ v2
            https://lwn.net/Articles/835039/   <------ v3
            https://lwn.net/Articles/837128/   <------ v4

[2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d97b078182406


Paul Gortmaker (2):
  sched: isolation: cpu isolation handles for cpuset
  cpuset: add binding to CPU isolation

 include/linux/sched/isolation.h |  4 ++++
 kernel/cgroup/cpuset.c          | 42 +++++++++++++++++++++++++++++++++++++++++
 kernel/sched/isolation.c        | 22 +++++++++++++++++++++
 3 files changed, 68 insertions(+)

-- 
2.15.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ