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
F108513165: D27858.id82121.diff
Sat, Jan 25, 7:25 PM
F108487100: D27858.diff
Sat, Jan 25, 11:28 AM
Unknown Object (File)
Sat, Jan 18, 10:05 PM
Unknown Object (File)
Dec 27 2024, 12:03 AM
Unknown Object (File)
Oct 27 2024, 7:16 AM
Unknown Object (File)
Oct 23 2024, 7:50 AM
Unknown Object (File)
Oct 6 2024, 10:24 PM
Unknown Object (File)
Oct 5 2024, 7:24 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