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
F98899316: D27858.diff
Sat, Oct 5, 5:21 AM
Unknown Object (File)
Thu, Oct 3, 9:29 PM
Unknown Object (File)
Thu, Oct 3, 12:24 PM
Unknown Object (File)
Tue, Oct 1, 10:16 PM
Unknown Object (File)
Sun, Sep 29, 6:05 AM
Unknown Object (File)
Sat, Sep 28, 6:34 PM
Unknown Object (File)
Fri, Sep 27, 9:47 PM
Unknown Object (File)
Sun, Sep 22, 7:35 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 35809
Build 32698: arc lint + arc unit