| Test-AutoBuild documentation | view source | Contained in the Test-AutoBuild distribution. |
Test::AutoBuild::Stage::SetNice - Alter the scheduling priority of builder
use Test::AutoBuild::Stage::SetNice
This module provides the ability to alter the scheduling priority of the build process, typically lowering it to avoid monopolising all the resources of the host machine. This is analogous to launching the builder process through the nice(1) command.
In addition to the standard parameters defined by the Test::AutoBuild::Stage
module, this module accepts one entry in the options parameter:
An integer in the range -20 (highest priority) to 19 (lowest priority) indicating what schedular priority to give to the builder. NB, typically you will be unable to set a priority less than zero, since the builder does not run as root. If omitted, the default value is 19 to ensure lowest priority is taken.
{
name = renice
label = Set Process Priority
module = Test::AutoBuild::Stage::SetNice
critical = 0
options = {
nice-level = 19
}
}
Override super class to initialize the default nice level if non
was specified. It is not neccesary to call this method since it
is called automatically by the new method.
Attempt to change the priority of the builder process according
to the nice-level option. If unsuccessful, marks the stage as
having failed. Since this is a recoverable error, it is usual
to set this stage as non-critical.
Daniel Berrange <dan@berrange.com> Dennis Gregorovic <dgregorovic@alum.mit.edu>
Copyright (C) 2004 Red Hat, Inc.
perl(1), Test::AutoBuild::Stage
| Test-AutoBuild documentation | view source | Contained in the Test-AutoBuild distribution. |