NAME

Test2::Harness::Runner::Resource::UnixLimits - Throttle jobs against per-process Unix ulimits.

SYNOPSIS

yath test -R UnixLimits
yath test -R UnixLimits --unixlimits-nproc 10%
yath test -R UnixLimits --unixlimits-nproc 128 --unixlimits-nofile 10%
yath test -R UnixLimits --unixlimits-as 512mb

DESCRIPTION

Defers starts when the runner process's soft ulimits (nproc, nofile, as) are near saturation. nproc and nofile default on with 10% headroom; as is off until an explicit threshold is supplied.

Thresholds accept count / bytes / percent; --utilize PCT layers on top (effective threshold is max(explicit, utilize-derived)).

LIMITATIONS

Linux only. Samples are per-runner-process, not per-test-process.

SOURCE

The source code repository for Test2-Harness can be found at http://github.com/Test-More/Test2-Harness/.

MAINTAINERS

Chad Granum <exodist@cpan.org>

AUTHORS

Chad Granum <exodist@cpan.org>

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/