Page MenuHomeFreeBSD

rctl(4): support throttling resource usage to 0
ClosedPublic

Authored by jah on Dec 30 2020, 11:49 PM.
Tags
None
Referenced Files
F159436063: D27858.id81396.diff
Sun, Jun 14, 2:00 AM
Unknown Object (File)
Fri, Jun 12, 5:55 AM
Unknown Object (File)
Fri, Jun 12, 4:30 AM
Unknown Object (File)
Thu, Jun 11, 7:04 AM
Unknown Object (File)
Apr 30 2026, 1:46 AM
Unknown Object (File)
Apr 28 2026, 5:45 AM
Unknown Object (File)
Apr 20 2026, 12:27 PM
Unknown Object (File)
Apr 17 2026, 2:18 AM
Subscribers

Details

Summary

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
MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable