- Add RoundQuotaFunc option that allows configuration of rounding behavior for floating point CPU quota.
- Fix mountinfo parsing when super options have fields with spaces.
- Fix division by zero while parsing cgroups.
- Support child control cgroups
- Fix file descriptor leak
- Update dependencies
- Fix cgroups v2 mountpoint detection.
- Add support for cgroups v2.
Thanks to @emadolsky for their contribution to this release.
- Support colons in cgroup names.
- Remove linters from runtime dependencies.
- Migrate to Go modules.
- Fixed quota clamping to always round down rather than up; Rather than guaranteeing constant throttling at saturation, instead assume that the fractional CPU was added as a hedge for factors outside of Go's scheduler.
- Log the new value of
GOMAXPROCS
rather than the current value. - Make logs more explicit about whether
GOMAXPROCS
was modified or not. - Allow customization of the minimum
GOMAXPROCS
, and modify default from 2 to 1.
- Initial release.