mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Paul McKenney" <Paul.McKenney@us.ibm.com>
To: Kanoj Sarcar <kanoj@google.engr.sgi.com>
Cc: andrea@suse.de (Andrea Arcangeli),
	fabio@chromium.com (Fabio Riccardi),
	"Hubertus Franke" <frankeh@us.ibm.com>,
	linux-kernel@vger.kernel.org (Linux Kernel List),
	lse-tech@lists.sourceforge.net,
	lse-tech-admin@lists.sourceforge.net, mingo@elte.hu (Ingo Molnar),
	mkravetz@sequent.com (Mike Kravetz)
Subject: Re: [Lse-tech] Re: a quest for a better scheduler
Date: Wed, 4 Apr 2001 10:40:49 -0700	[thread overview]
Message-ID: <OF663D4309.4893E3D3-ON88256A24.006118C3@LocalDomain> (raw)


> Just a quick comment. Andrea, unless your machine has some hardware
> that imply pernode runqueues will help (nodelevel caches etc), I fail
> to understand how this is helping you ... here's a simple theory though.
> If your system is lightly loaded, your pernode queues are actually
> implementing some sort of affinity, making sure processes stick to
> cpus on nodes where they have allocated most of their memory on. I am
> not sure what the situation will be under huge loads though.

Exactly.  If a given task has run on a particular nodes for a while,
its memory will tend to be allocated on that node.  So preferentially
running it on another CPU on that same node should get you better
memory latency than would running it on some other node's CPUs.

In addition, continuing to run the task on a particular node means
that more of that task's memory is from that node, which again means
good memory latency.  In contrast, if you move a task back and forth
between nodes, it can end up with its memory spread over many nodes,
which means that it does not get good memory latency no matter where
you run it.

                              Thanx, Paul

> As I have mentioned to some people before,
percpu/pernode/percpuset/global
> runqueues probably all have their advantages and disadvantages, and their
> own sweet spots. Wouldn't it be really neat if a system administrator
> or performance expert could pick and choose what scheduler behavior he
> wants, based on how the system is going to be used?
>
> Kanoj


             reply	other threads:[~2001-04-04 17:47 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-04 17:40 Paul McKenney [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-04-05 11:14 alad
2001-04-04 17:34 Hubertus Franke
2001-04-04 17:03 Hubertus Franke
2001-04-04 17:14 ` Kanoj Sarcar
2001-04-04 15:08 Andrea Arcangeli
2001-04-04 16:50 ` [Lse-tech] " Kanoj Sarcar
2001-04-04 17:16   ` Andrea Arcangeli
2001-04-04 17:49     ` Kanoj Sarcar
2001-04-04 18:00       ` Andrea Arcangeli
2001-04-05 11:13         ` Zdenek Kabelac
2001-04-04 13:43 Hubertus Franke
2001-04-04 15:44 ` Khalid Aziz
2001-04-04 15:55   ` [Lse-tech] " Christoph Hellwig
2001-04-04 13:34 Ingo Molnar
2001-04-04 16:39 ` [Lse-tech] " Kanoj Sarcar
2001-04-04 17:00   ` Andrea Arcangeli

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=OF663D4309.4893E3D3-ON88256A24.006118C3@LocalDomain \
    --to=paul.mckenney@us.ibm.com \
    --cc=andrea@suse.de \
    --cc=fabio@chromium.com \
    --cc=frankeh@us.ibm.com \
    --cc=kanoj@google.engr.sgi.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lse-tech-admin@lists.sourceforge.net \
    --cc=lse-tech@lists.sourceforge.net \
    --cc=mingo@elte.hu \
    --cc=mkravetz@sequent.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

all inboxes | Powered by JetHome®