Lines Matching +full:1 +full:hz
15 * 1. Redistributions of source code must retain the above copyright
62 #ifndef HZ
63 # define HZ 1000
69 # define HZ_VM HZ
82 int hz; /* system clock's frequency */
83 int tick; /* usec per tick (1000000 / hz) */
84 time_t tick_seconds_max; /* max hz * seconds an integer can hold */
85 struct bintime tick_bt; /* bintime per tick (1s / hz) */
110 SYSCTL_INT(_kern, OID_AUTO, hz, CTLFLAG_RDTUN | CTLFLAG_NOFETCH, &hz, 0,
113 "Maximum hz value supported");
115 "Minimum hz value supported");
180 hz = -1;
181 TUNABLE_INT_FETCH("kern.hz", &hz);
182 if (hz == -1)
183 hz = vm_guest > VM_GUEST_NO ? HZ_VM : HZ;
185 /* range check the "hz" value */
186 if (__predict_false(hz < HZ_MINIMUM))
187 hz = HZ_MINIMUM;
188 else if (__predict_false(hz > HZ_MAXIMUM))
189 hz = HZ_MAXIMUM;
191 tick = 1000000 / hz;
192 tick_sbt = SBT_1S / hz;
194 tick_seconds_max = INT_MAX / hz;
200 ticksl = INT_MAX - (hz * 10 * 60);
202 vn_lock_pair_pause_max = hz / 100;
204 vn_lock_pair_pause_max = 1;
238 * 'ngroups_max + 1' computation (to obtain the size of the internal
252 const int ngroups_max_max = (1 << 24) - 1;
314 * The default limit for maxfiles is 1/12 of the number of
316 * At most it can be 1/6 the number of physical pages.
335 } else if (__bitcountl(maxphys) != 1) { /* power of two */
339 maxphys = 1UL << flsl(maxphys);
351 * The default for maxpipekva is min(1/64 of the kernel address space,
352 * max(1/64 of main memory, 512KB)). See sys_pipe.c for more details.