Home
last modified time | relevance | path

Searched refs:sched_slice (Results 1 – 2 of 2) sorted by relevance

/f-stack/freebsd/kern/
H A Dsched_4bsd.c130 static int sched_slice = 12; /* Thread run time before rescheduling. */ variable
200 new_val = period * sched_slice; in sysctl_kern_quantum()
206 sched_slice = imax(1, (new_val + period / 2) / period); in sysctl_kern_quantum()
207 hogticks = imax(1, (2 * hz * sched_slice + realstathz / 2) / in sysctl_kern_quantum()
221 SYSCTL_INT(_kern_sched, OID_AUTO, slice, CTLFLAG_RW, &sched_slice, 0,
656 sched_slice = realstathz / 10; /* ~100ms */ in sched_initticks()
657 hogticks = imax(1, (2 * hz * sched_slice + realstathz / 2) / in sched_initticks()
677 td_get_sched(&thread0)->ts_slice = sched_slice; in schedinit()
696 return (imax(1, (sched_slice * hz + realstathz / 2) / realstathz)); in sched_rr_interval()
734 ts->ts_slice = sched_slice; in sched_clock_tick()
[all …]
H A Dsched_ule.c212 static int __read_mostly sched_slice = 10; /* reset during boot. */ variable
591 return (sched_slice); in tdq_slice()
592 return (sched_slice / load); in tdq_slice()
1479 sched_slice = realstathz / SCHED_SLICE_DEFAULT_DIVISOR; in sched_initticks()
1480 sched_slice_min = sched_slice / SCHED_SLICE_MIN_DIVISOR; in sched_initticks()
1481 hogticks = imax(1, (2 * hz * sched_slice + realstathz / 2) / in sched_initticks()
1712 return (imax(1, (sched_slice * hz + realstathz / 2) / realstathz)); in sched_rr_interval()
3073 new_val = period * sched_slice; in sysctl_kern_quantum()
3079 sched_slice = imax(1, (new_val + period / 2) / period); in sysctl_kern_quantum()
3080 sched_slice_min = sched_slice / SCHED_SLICE_MIN_DIVISOR; in sysctl_kern_quantum()
[all …]