From: mulyadi.santosa@gmail.com (Mulyadi Santosa)
To: kernelnewbies@lists.kernelnewbies.org
Subject: CPU Load Balancer / Scheduler / CFS
Date: Fri, 6 Apr 2012 11:27:42 +0700 [thread overview]
Message-ID: <CAGdaadbmGaxdqoY55ZD+V__9f3_7u9HyXERLRssm60htfOvtLA@mail.gmail.com> (raw)
In-Reply-To: <CADEOuscOpJDuqkhjvG1n7EFCxAoP-QWYrHSpvfCChcOoasCMNw@mail.gmail.com>
Hi Robert...
On Fri, Apr 6, 2012 at 00:24, Robert W <robertwalters83@gmail.com> wrote:
> But on 2.6.32, the distribution varies. Sometimes it's (100%, 33%,
> 33%, 33%), other times it's (100%, 100%, 50%, 50%), etc.. while all
> the other CPUs sit completely idle..
>
> Both servers have many cores (more than 4). Both servers each have 2
> physical processors, and are hyper-threaded.
Ahem, that HT might be the cause.
To elaborate more. Linux process scheduler tend to avoid the HT
sibling, because they are not "real" processor. Or if not possible to
avoid at all, then put at least load as possible.
Also, Linux kernel tries to "stick" a process into certain core within
certain time interval. This is done to make sure the L1/L2 cache is
utilized as long as possible. Processor relocation will trigger cache
invalidation and that costs a lot.
CMIIW....
--
regards,
Mulyadi Santosa
Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
prev parent reply other threads:[~2012-04-06 4:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-05 17:24 CPU Load Balancer / Scheduler / CFS Robert W
2012-04-06 4:27 ` Mulyadi Santosa [this message]
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=CAGdaadbmGaxdqoY55ZD+V__9f3_7u9HyXERLRssm60htfOvtLA@mail.gmail.com \
--to=mulyadi.santosa@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.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 NNTP newsgroup(s).