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)
Mon, Apr 20, 12:27 PM
Unknown Object (File)
Fri, Apr 17, 2:18 AM
Unknown Object (File)
Sat, Apr 11, 11:00 PM
Unknown Object (File)
Wed, Apr 8, 9:35 PM
Unknown Object (File)
Sat, Apr 4, 11:01 AM
Unknown Object (File)
Tue, Mar 31, 4:46 PM
Unknown Object (File)
Tue, Mar 31, 2:32 AM
Unknown Object (File)
Sun, Mar 29, 12:57 PM
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