linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Heiko Carstens <heiko.carstens@de.ibm.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Peter Ziljstra <peterz@infradead.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>,
	linux-kernel@vger.kernel.org
Subject: [PATCH 0/2] s390: introduce drawer scheduling domain
Date: Wed,  8 Jun 2016 11:09:14 +0200	[thread overview]
Message-ID: <1465376956-100711-1-git-send-email-heiko.carstens@de.ibm.com> (raw)

Greg, Peter,

the s390 z13 machines expose yet another topology level which would be
on top of the already existing "book" scheduling domain, which is
currently only used by s390.

Therefore I would like to introduce a new "drawer" level to the
topology sysfs code. The scheduler code itself does not need any
changes to support this, since I can introduce as many scheduling
domains as I like within architecture code. However the sysfs
representation is common code.

The first patch introduces the files

/sys/devices/system/cpu/cpuX/topology/drawer_id
/sys/devices/system/cpu/cpuX/topology/drawer_siblings
/sys/devices/system/cpu/cpuX/topology/drawer_siblings_list

if CONFIG_SCHED_DRAWER is enabled.

The second patch implements support for the new topology level on
s390. Performance measurements did show a performance increase of up
to 8%, while there don't seem to be any negative impacts.

If this is acceptable I'd like to add these patches to the s390 tree
for the next merge window.

For reference the z13 machine is described here:
www.redbooks.ibm.com/redbooks/pdfs/sg248251.pdf

Chapter 2 (or 2.2) gives a brief overview of what I'm talking about.

Heiko Carstens (2):
  topology/sysfs: provide drawer id and siblings attributes
  s390/topology: add drawer scheduling domain level

 Documentation/cputopology.txt    | 40 ++++++++++++++++++++++++++++++++--------
 arch/s390/Kconfig                |  4 ++++
 arch/s390/include/asm/topology.h |  4 ++++
 arch/s390/kernel/topology.c      | 33 +++++++++++++++++++++++++++------
 arch/s390/numa/mode_emu.c        | 25 ++++++++++++++++++++-----
 drivers/base/topology.c          | 13 +++++++++++++
 6 files changed, 100 insertions(+), 19 deletions(-)

-- 
2.6.6

             reply	other threads:[~2016-06-08  9:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-08  9:09 Heiko Carstens [this message]
2016-06-08  9:09 ` [PATCH 1/2] topology/sysfs: provide drawer id and siblings attributes Heiko Carstens
2016-06-08  9:09 ` [PATCH 2/2] s390/topology: add drawer scheduling domain level Heiko Carstens
2016-06-13 11:06   ` Peter Zijlstra
2016-06-13 11:22     ` Heiko Carstens
2016-06-13 13:06       ` Peter Zijlstra
2016-06-13 13:19         ` Martin Schwidefsky
2016-06-13 13:53           ` Peter Zijlstra
2016-06-13 14:37             ` Martin Schwidefsky
2016-06-13 11:25     ` Heiko Carstens
2016-06-13 11:33       ` Peter Zijlstra

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=1465376956-100711-1-git-send-email-heiko.carstens@de.ibm.com \
    --to=heiko.carstens@de.ibm.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peterz@infradead.org \
    --cc=schwidefsky@de.ibm.com \
    /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 NNTP newsgroup(s).