Subject: Re: Process load balancing among CPU References: <32d2a7d6-c915-2cd1-3c74-c005a53fc708@numalliance.com> From: Jan Kiszka Message-ID: Date: Thu, 24 Oct 2019 12:13:04 +0200 MIME-Version: 1.0 In-Reply-To: <32d2a7d6-c915-2cd1-3c74-c005a53fc708@numalliance.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?St=c3=a9phane_Ancelot?= , "xenomai@xenomai.org" On 24.10.19 10:00, St=C3=A9phane Ancelot via Xenomai wrote: > Hi, > > In our system, I noticed maybe a setup problem, or a xenomai related > setup problem regarding user processes. > > I have 2 user tasks that does not use RT (but xenomai shared memory > access), I noticed that if these both tasks were consuming 50% of the > CPU they were not migrated on other cpus. > > There is no CPU affinity setup in these programs , so I kept the kernel > scheduler doing its job. > > Is this a bad kernel setting or xenomai setting=C2=A0 to allow process c= pu > migration for user processes ? There is - by design - no automatic load balancing for Xenomai threads. The common case is static schedules /wrt RT task for each CPU. Jan