Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Dec 2011 03:11:43 +0100
From:      "C. P. Ghost" <cpghost@cordula.ws>
To:        Tom Evans <tevans.uk@googlemail.com>
Cc:        freebsd-stable@freebsd.org, Jeremy Chadwick <freebsd@jdc.parodius.com>
Subject:   Re: SCHED_ULE should not be the default
Message-ID:  <CADGWnjU9Sp6DoGCVQ6X_CNwcgQUDW9YviNr6eENAQmptAmX_wQ@mail.gmail.com>
In-Reply-To: <CAFHbX1KdsvKBPvpxQG-dL1szxk4FB86WxQF-Cw1PWLf=7pQg7w@mail.gmail.com>
References:  <4EE1EAFE.3070408@m5p.com> <CAJ-FndDniGH8QoT=kUxOQ%2BzdVhWF0Z0NKLU0PGS-Gt=BK6noWw@mail.gmail.com> <4EE2AE64.9060802@m5p.com> <4EE88343.2050302@m5p.com> <CAFHbX1%2B5PttyZuNnYot8emTn_AWkABdJCvnpo5rcRxVXj0ypJA@mail.gmail.com> <4EE933C6.4020209@zedat.fu-berlin.de> <20111215004205.GA11556@icarus.home.lan> <CAFHbX1KdsvKBPvpxQG-dL1szxk4FB86WxQF-Cw1PWLf=7pQg7w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Dec 15, 2011 at 10:44 AM, Tom Evans <tevans.uk@googlemail.com> wrote:
> Real time scheduler changing would be insane! I was thinking that
> both/any/all schedulers could be compiled into the kernel, and the
> choice of which one to use becomes a boot time configuration. You
> don't have to recompile the kernel to change timecounter.

Right.

Switching the scheduler on the fly may be thinkable though.
I could imagine a syscall that would suspend all scheduling,
convert the bookkeeping data of one scheduler into the other
scheduler's, and transfer control to the other scheduler. Of
course, that would require some heavy hacking, as I would
imagine that "cross-scheduler surgery" would result in a pretty
hard to debug kernel (at least during development).

A more general solution could even be a separate userland
scheduler process a la L4 [*], but since we don't have lightweight
IPC in the kernel (yet, or never), it would require even heavier
black wizardry. But nice and flexible it would be. ;-)

[*] Refs:
- https://github.com/l4ka/pistachio
- http://www.systems.ethz.ch/education/past-courses/fall-2010/aos/lectures/wk13-scheduling-print.pdf

Regards,
-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADGWnjU9Sp6DoGCVQ6X_CNwcgQUDW9YviNr6eENAQmptAmX_wQ>