NAME
Test2::Harness::Runner::Resource::CPU - Throttle jobs against aggregate CPU usage.
SYNOPSIS
yath test -R CPU # uses --utilize (default 75)
yath test -R CPU -U 80 # explicit utilize
DESCRIPTION
Defers new test starts when aggregate CPU usage meets the --utilize percentage. Samples /proc/stat; multi-core systems handled by the aggregate jiffies in the first cpu row.
Until min_concurrent tests (default 1) are in flight, the resource never defers -- the scheduler always gets to start at least one test even if CPU is already saturated by other workloads.
LIMITATIONS
Linux only.
SOURCE
The source code repository for Test2-Harness can be found at http://github.com/Test-More/Test2-Harness/.
MAINTAINERS
AUTHORS
COPYRIGHT
Copyright Chad Granum <exodist7@gmail.com>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://dev.perl.org/licenses/