19b99e9b9SRobert Watson.\" Copyright (c) 2005 Robert N. M. Watson 29b99e9b9SRobert Watson.\" All rights reserved. 39b99e9b9SRobert Watson.\" 49b99e9b9SRobert Watson.\" Redistribution and use in source and binary forms, with or without 59b99e9b9SRobert Watson.\" modification, are permitted provided that the following conditions 69b99e9b9SRobert Watson.\" are met: 79b99e9b9SRobert Watson.\" 1. Redistributions of source code must retain the above copyright 89b99e9b9SRobert Watson.\" notice, this list of conditions and the following disclaimer. 99b99e9b9SRobert Watson.\" 2. Redistributions in binary form must reproduce the above copyright 109b99e9b9SRobert Watson.\" notice, this list of conditions and the following disclaimer in the 119b99e9b9SRobert Watson.\" documentation and/or other materials provided with the distribution. 129b99e9b9SRobert Watson.\" 139b99e9b9SRobert Watson.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND 149b99e9b9SRobert Watson.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 159b99e9b9SRobert Watson.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 169b99e9b9SRobert Watson.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE 179b99e9b9SRobert Watson.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 189b99e9b9SRobert Watson.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 199b99e9b9SRobert Watson.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 209b99e9b9SRobert Watson.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 219b99e9b9SRobert Watson.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 229b99e9b9SRobert Watson.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 239b99e9b9SRobert Watson.\" SUCH DAMAGE. 249b99e9b9SRobert Watson.\" 25579895dfSAlexander Motin.Dd August 10, 2012 269b99e9b9SRobert Watson.Dt SCHED_ULE 4 27aa12cea2SUlrich Spörlein.Os 289b99e9b9SRobert Watson.Sh NAME 299b99e9b9SRobert Watson.Nm sched_ule 30ae91966bSRuslan Ermilov.Nd ULE scheduler 319b99e9b9SRobert Watson.Sh SYNOPSIS 329b99e9b9SRobert Watson.Cd "options SCHED_ULE" 339b99e9b9SRobert Watson.Sh DESCRIPTION 34a4be0b3cSRuslan ErmilovThe 359b99e9b9SRobert Watson.Nm 36a4be0b3cSRuslan Ermilovscheduler 375ac818f6SRuslan Ermilovprovides a number of advanced scheduler 389b99e9b9SRobert Watsonfeatures not present in 399b99e9b9SRobert Watson.Xr sched_4bsd 4 , 405ac818f6SRuslan Ermilovthe traditional system scheduler. 419b99e9b9SRobert WatsonThese features address SMP and interactivity and include: 429b99e9b9SRobert Watson.Pp 439b99e9b9SRobert Watson.Bl -bullet -compact -offset indent 449b99e9b9SRobert Watson.It 459b99e9b9SRobert WatsonThread CPU affinity. 469b99e9b9SRobert Watson.It 479b99e9b9SRobert WatsonCPU topology awareness, including for hyper-threading. 489b99e9b9SRobert Watson.It 499b99e9b9SRobert WatsonPer-CPU run queues. 509b99e9b9SRobert Watson.It 519b99e9b9SRobert WatsonInteractivity heuristics that detect interactive applications and schedules 529b99e9b9SRobert Watsonthem preferentially under high load. 539b99e9b9SRobert Watson.El 549b99e9b9SRobert Watson.Pp 559b99e9b9SRobert WatsonThe following sysctls are relevant to the operation of 569b99e9b9SRobert Watson.Nm : 579b99e9b9SRobert Watson.Bl -tag -width indent 58a4be0b3cSRuslan Ermilov.It Va kern.sched.name 599b99e9b9SRobert WatsonThis read-only sysctl reports the name of the active scheduler. 60579895dfSAlexander Motin.It Va kern.sched.quantum 61579895dfSAlexander MotinThis read-write sysctl reports or sets the length of the quantum (in 62579895dfSAlexander Motinmicro-seconds) granted to a thread. 639b99e9b9SRobert Watson.El 649b99e9b9SRobert Watson.Sh SEE ALSO 659b99e9b9SRobert Watson.Xr sched_4bsd 4 , 669b99e9b9SRobert Watson.Xr sysctl 8 679b99e9b9SRobert Watson.Sh HISTORY 689b99e9b9SRobert WatsonThe 699b99e9b9SRobert Watson.Nm 709b99e9b9SRobert Watsonscheduler first appeared in 719b99e9b9SRobert Watson.Fx 5.1 . 729b99e9b9SRobert Watson.Sh AUTHORS 73*6c899950SBaptiste Daroussin.An Jeff Roberson Aq Mt jeff@FreeBSD.org 74