Searched refs:sched_slice (Results 1 – 2 of 2) sorted by relevance
/freebsd/sys/kern/ |
H A D | sched_4bsd.c | 136 static int sched_slice = 12; /* Thread run time before rescheduling. */ variable 206 new_val = period * sched_slice; in sysctl_kern_quantum() 212 sched_slice = imax(1, (new_val + period / 2) / period); in sysctl_kern_quantum() 213 hogticks = imax(1, (2 * hz * sched_slice + realstathz / 2) / in sysctl_kern_quantum() 227 SYSCTL_INT(_kern_sched, OID_AUTO, slice, CTLFLAG_RW, &sched_slice, 0, 662 sched_slice = realstathz / 10; /* ~100ms */ in sched_initticks() 663 hogticks = imax(1, (2 * hz * sched_slice + realstathz / 2) / in sched_initticks() 683 td_get_sched(&thread0)->ts_slice = sched_slice; in schedinit() 710 return (imax(1, (sched_slice * hz + realstathz / 2) / realstathz)); in sched_rr_interval() 752 ts->ts_slice = sched_slice; in sched_clock_tick() [all …]
|
H A D | sched_ule.c | 243 static int __read_mostly sched_slice = 10; /* reset during boot. */ variable 693 return (sched_slice); in tdq_slice() 694 return (sched_slice / load); in tdq_slice() 1675 sched_slice = realstathz / SCHED_SLICE_DEFAULT_DIVISOR; in sched_initticks() 1676 sched_slice_min = sched_slice / SCHED_SLICE_MIN_DIVISOR; in sched_initticks() 1677 hogticks = imax(1, (2 * hz * sched_slice + realstathz / 2) / in sched_initticks() 1939 return (imax(1, (sched_slice * hz + realstathz / 2) / realstathz)); in sched_rr_interval() 2717 return (sched_slice); in td_slice() 3449 new_val = period * sched_slice; in sysctl_kern_quantum() 3455 sched_slice = imax(1, (new_val + period / 2) / period); in sysctl_kern_quantum() [all …]
|