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.\" 259b99e9b9SRobert Watson.\" $FreeBSD$ 269b99e9b9SRobert Watson.\" 27579895dfSAlexander Motin.Dd August 10, 2012 289b99e9b9SRobert Watson.Dt SCHED_ULE 4 29aa12cea2SUlrich Spörlein.Os 309b99e9b9SRobert Watson.Sh NAME 319b99e9b9SRobert Watson.Nm sched_ule 32ae91966bSRuslan Ermilov.Nd ULE scheduler 339b99e9b9SRobert Watson.Sh SYNOPSIS 349b99e9b9SRobert Watson.Cd "options SCHED_ULE" 359b99e9b9SRobert Watson.Sh DESCRIPTION 36a4be0b3cSRuslan ErmilovThe 379b99e9b9SRobert Watson.Nm 38a4be0b3cSRuslan Ermilovscheduler 395ac818f6SRuslan Ermilovprovides a number of advanced scheduler 409b99e9b9SRobert Watsonfeatures not present in 419b99e9b9SRobert Watson.Xr sched_4bsd 4 , 425ac818f6SRuslan Ermilovthe traditional system scheduler. 439b99e9b9SRobert WatsonThese features address SMP and interactivity and include: 449b99e9b9SRobert Watson.Pp 459b99e9b9SRobert Watson.Bl -bullet -compact -offset indent 469b99e9b9SRobert Watson.It 479b99e9b9SRobert WatsonThread CPU affinity. 489b99e9b9SRobert Watson.It 499b99e9b9SRobert WatsonCPU topology awareness, including for hyper-threading. 509b99e9b9SRobert Watson.It 519b99e9b9SRobert WatsonPer-CPU run queues. 529b99e9b9SRobert Watson.It 539b99e9b9SRobert WatsonInteractivity heuristics that detect interactive applications and schedules 549b99e9b9SRobert Watsonthem preferentially under high load. 559b99e9b9SRobert Watson.El 569b99e9b9SRobert Watson.Pp 579b99e9b9SRobert WatsonThe following sysctls are relevant to the operation of 589b99e9b9SRobert Watson.Nm : 599b99e9b9SRobert Watson.Bl -tag -width indent 60a4be0b3cSRuslan Ermilov.It Va kern.sched.name 619b99e9b9SRobert WatsonThis read-only sysctl reports the name of the active scheduler. 62579895dfSAlexander Motin.It Va kern.sched.quantum 63579895dfSAlexander MotinThis read-write sysctl reports or sets the length of the quantum (in 64579895dfSAlexander Motinmicro-seconds) granted to a thread. 659b99e9b9SRobert Watson.El 669b99e9b9SRobert Watson.Sh SEE ALSO 679b99e9b9SRobert Watson.Xr sched_4bsd 4 , 689b99e9b9SRobert Watson.Xr sysctl 8 699b99e9b9SRobert Watson.Sh HISTORY 709b99e9b9SRobert WatsonThe 719b99e9b9SRobert Watson.Nm 729b99e9b9SRobert Watsonscheduler first appeared in 739b99e9b9SRobert Watson.Fx 5.1 . 749b99e9b9SRobert Watson.Sh AUTHORS 75*6c899950SBaptiste Daroussin.An Jeff Roberson Aq Mt jeff@FreeBSD.org 76