[libvirt] [PATCH 0/6] Add deadline scheduler

Martin Kletzander mkletzan at redhat.com
Thu Nov 10 15:27:42 UTC 2016


On Mon, Nov 07, 2016 at 10:01:11AM +0100, Martin Polednik wrote:
>The policy SCHED_DEADLINE is available since kernel 3.14 (and most likely
>backported to older RT_PREEMPT kernels). It is safer to use than fifo or round
>robin policies due to only limiting part of cpu time for the RT process,
>leading to lack of lockups of the host.
>
>The series adds new vcpusched/iothreadsched called 'deadline' that activates
>SCHED_DEADLINE for given process. As the scheduler is linux specific, extra
>implementation was required - it is not possible to use sched_setscheduler,
>sched_setattr syscall must be used.
>
>Martin Polednik (6):
>  conf: add entries for deadline scheduler
>  util: allow virProcessSetScheduler to set SCHED_DEADLINE
>  virDomainFormatSchedDef: factor out subset code



>  conf: add deadline scheduler
>  schema: add deadline scheduler
>  docs: mention deadline scheduler in vcpusched
>

These three should be merged together.  Also you should error out with
unsupported values (e.g. deadline < runtime) in virDomainDefPostParse()
so that users know it right away.  That way we can change it later, but
not when everything is acceptable now.

Otherwise looks fine from a quick look.

Have a nice day,
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20161110/89643582/attachment-0001.sig>


More information about the libvir-list mailing list