Lines Matching +full:max +full:- +full:burst +full:- +full:size

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2001-2002 Luigi Rizzo
74 * call -- typically this is the number of packets to be received, or
76 * as the max time spent in the function grows roughly linearly with the
106 SYSCTL_UINT(_kern_polling, OID_AUTO, burst, CTLFLAG_RD,
107 &poll_burst, 0, "Current polling burst size");
119 if (error || !req->newptr ) in poll_burst_max_sysctl()
137 "Max Polling burst size");
145 if (error || !req->newptr ) in poll_each_burst_sysctl()
163 "Max size of each burst");
176 if (error || !req->newptr ) in user_frac_sysctl()
200 if (error || !req->newptr ) in reg_frac_sysctl()
232 &residual_burst, 0, "# of residual cycles in burst");
302 delta = (t.tv_usec - prev_t.tv_usec) + in hardclock_device_poll()
303 (t.tv_sec - prev_t.tv_sec)*1000000; in hardclock_device_poll()
356 * another NETISR_POLL call, or adapting the burst size for the next cycle.
359 * because the burst could take a long time to be completely processed, or
362 * time spent in network-related processing, we split the burst in smaller
363 * chunks of fixed size, giving control to the other netisr's between chunks.
398 kern_load = (t.tv_usec - poll_start_t.tv_usec) + in netisr_pollmore()
399 (t.tv_sec - poll_start_t.tv_sec)*1000000; /* us */ in netisr_pollmore()
401 if (kern_load > (100 - user_frac)) { /* try decrease ticks */ in netisr_pollmore()
403 poll_burst--; in netisr_pollmore()
409 pending_polls--; in netisr_pollmore()
416 * reduce the burst size to prevent that this happens again. in netisr_pollmore()
418 poll_burst -= (poll_burst / 8); in netisr_pollmore()
461 residual_burst -= cycles; in netisr_poll()
498 verbose--; in ether_poll_register()
542 poll_handlers--; in ether_poll_deregister()
559 PROC_SLOCK(td->td_proc); in poll_idle()
561 PROC_SUNLOCK(td->td_proc); in poll_idle()