linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Scheduling tasks on idle cpu
@ 2022-04-11  8:26 David Laight
  2022-04-11  9:26 ` Steven Rostedt
  2022-04-11 23:34 ` Qais Yousef
  0 siblings, 2 replies; 15+ messages in thread
From: David Laight @ 2022-04-11  8:26 UTC (permalink / raw)
  To: 'Qais Yousef', Vincent Guittot
  Cc: Dietmar Eggemann, mingo, peterz, juri.lelli, rostedt, bsegall,
	mgorman, linux-kernel, parth, chris.hyser, pkondeti,
	Valentin.Schneider, patrick.bellasi, pjt, pavel, tj, qperret,
	tim.c.chen, Wei Wang

From: Qais Yousef
> Sent: 09 April 2022 18:09
...
> RT scheduler will push/pull tasks to ensure the task will get to run ASAP if
> there's another cpu at lower priority is available

Does that actually happen?
I've seen the following:
  34533 [017]: sys_futex(uaddr: 1049104, op: 85, val: 1, utime: 1, uaddr2: 1049100, val3: 4000001)
  34533 [017]: sched_migrate_task: pid=34512 prio=120 orig_cpu=14 dest_cpu=17
  34533 [017]: sched_wakeup: pid=34512 prio=120 success=1 target_cpu=017
and pid 34512 doesn't get scheduled until pid 34533 finally sleeps.
This is in spite of there being 5 idle cpu.
cpu 14 is busy running a RT thread, but migrating to cpu 17 seems wrong.

This is on a RHEL7 kernel, I've not replicated it on anything recent.
But I've very much like a RT thread to be able to schedule a non-RT
thread to run on an idle cpu.

	David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2022-04-15  7:16 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-11  8:26 Scheduling tasks on idle cpu David Laight
2022-04-11  9:26 ` Steven Rostedt
2022-04-11  9:57   ` David Laight
2022-04-11 23:34 ` Qais Yousef
2022-04-12  8:39   ` David Laight
2022-04-12  9:07     ` Vincent Guittot
2022-04-13 23:57       ` Qais Yousef
2022-04-14  7:54         ` Vincent Guittot
2022-04-14  8:35           ` David Laight
2022-04-14 10:16             ` Vincent Guittot
2022-04-14 14:14               ` David Laight
2022-04-15  7:15                 ` Vincent Guittot
2022-04-13 23:51     ` Qais Yousef
2022-04-14  6:09       ` David Laight
2022-04-14 22:26         ` Qais Yousef

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).