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
Unknown Object (File)
Wed, Nov 26, 11:01 PM
Unknown Object (File)
Fri, Nov 21, 7:27 AM
Unknown Object (File)
Mon, Nov 17, 5:35 PM
Unknown Object (File)
Sun, Nov 16, 10:34 PM
Unknown Object (File)
Oct 23 2025, 6:11 AM
Unknown Object (File)
Oct 21 2025, 9:31 AM
Unknown Object (File)
Oct 19 2025, 8:43 PM
Unknown Object (File)
Oct 18 2025, 6:29 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