HomeFreeBSD

When user_frac in the polling subsystem is low it is going to busy the
rS193096Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

When user_frac in the polling subsystem is low it is going to busy the
CPU for too long period than necessary. Additively, interfaces are kept
polled (in the tick) even if no more packets are available.
In order to avoid such situations a new generic mechanism can be
implemented in proactive way, keeping track of the time spent on any
packet and fragmenting the time for any tick, stopping the processing
as soon as possible.

In order to implement such mechanism, the polling handler needs to
change, returning the number of packets processed.
While the intended logic is not part of this patch, the polling KPI is
broken by this commit, adding an int return value and the new flag
IFCAP_POLLING_NOCOUNT (which will signal that the return value is
meaningless for the installed handler and checking should be skipped).

Bump __FreeBSD_version in order to signal such situation.

Reviewed by: emaste
Sponsored by: Sandvine Incorporated

Details

Provenance
attilioAuthored on
Parents
rS193095: * add proper handling for the header of a mesh frame.
Branches
Unknown
Tags
Unknown

Event Timeline