All of lore.kernel.org
 help / color / mirror / Atom feed
* Feedback on sched_quota modification
@ 2021-05-16 11:11 Marco Barletta
  2021-05-16 14:01 ` Philippe Gerum
  0 siblings, 1 reply; 3+ messages in thread
From: Marco Barletta @ 2021-05-16 11:11 UTC (permalink / raw)
  To: xenomai

Hi everyone;
you can find attached the modification I made to sched_quota in order to
have a hierarchical scheduler. Actually original sched_quota wasn't truly
hierarchical since when a group expires and has a lot of thread ready to
run, it considers one by one threads and on the go flushes them to the
expired list. In this there's a problem since this operation could not be
bounded in time since it's O(n) and could be nasty for theoretical analysis
in hard-real-time systems.
If you are interested in such modification in order to add it as a sched
modification or to add it as a new scheduler, I'd be delighted to have a
feedback from you.
I had some problems to handle kick function because of the double runnable
queue. Moreover I want to specify that I choose to implement the runnable
list of groups with a linked list and not xnsched_queue_t since we expect
just a few goups and anyway their number is bounded by compile time macro,
so is still O(1).
Best regards.

-- 
Marco Barletta
-------------- next part --------------
A non-text attachment was scrubbed...
Name: quota.patch
Type: text/x-patch
Size: 12996 bytes
Desc: not available
URL: <http://xenomai.org/pipermail/xenomai/attachments/20210516/dc114905/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: modified.zip
Type: application/zip
Size: 20340 bytes
Desc: not available
URL: <http://xenomai.org/pipermail/xenomai/attachments/20210516/dc114905/attachment.zip>

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

end of thread, other threads:[~2021-05-16 14:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-16 11:11 Feedback on sched_quota modification Marco Barletta
2021-05-16 14:01 ` Philippe Gerum
2021-05-16 14:15   ` Marco Barletta

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.