HomeFreeBSD

rctl(4): support throttling resource usage to 0

Description

rctl(4): support throttling resource usage to 0

For rate-based resources that support throttling (e.g.
readiops/writeips), this fixes a divide-by-zero panic when rctl(8)
passes 0 as the throttle value. For these resources, treat
zero-throttle requests as requests to suspend forward progress as long
as possible using the duration specified in
kern.racct.rctl.throttle_max.

PR: 251803
Reported by: chris@cretaforce.gr

(cherry picked from commit e8a5a1ad7154dc34e3a5234267e19faa86d5ff33)

Details

Provenance
jahAuthored on Dec 30 2020, 11:29 PM
Parents
rG7baf7a453859: ndis: Per user request, delay removal to 14
Branches
Unknown
Tags
Unknown