All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help] Xenomai and SMP load balancing
Date: Wed, 21 Dec 2011 15:26:08 +0100	[thread overview]
Message-ID: <201112211526.08983.arnout@domain.hid> (raw)

 [Please keep me in CC]

 Hoi all,

 I have a Xenomai application that I run on an SMP processor (i3 or i5).  
It takes about 90% load on one of the cores (cpu0).  The rest of the system 
is usually idle, except for occasional runs of some compute-intensive batch 
processes (that run in the non-RT Linux domain).

 The problem is that the Linux load balancer doesn't know about the
Xenomai thread.  It therefore tends to select cpu0 as well for the
batch processes.  That means that the batch processes take much longer
then needed.

 I can solve this by reserving one complete core for the Xenomai thread
(by setting /proc/xenomai/affinity to 1 and giving the isolcpus=0 at boot
time).  But this makes it difficult to move to a non-SMT platform, or
to run several Xenomai applications on different cores.

 Is there a better way to let the Linux load balancer take into account
the load of the Xenomai threads?

 Regards,
 Arnout

-- 
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F


             reply	other threads:[~2011-12-21 14:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-21 14:26 Arnout Vandecappelle [this message]
2012-01-09 10:26 ` [Xenomai-help] Xenomai and SMP load balancing Arnout Vandecappelle

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=201112211526.08983.arnout@domain.hid \
    --to=arnout@domain.hid \
    --cc=xenomai@xenomai.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.