On 3/4/06 4:12 AM, "Ask Bjørn Hansen" <[EMAIL PROTECTED]> wrote:
> > On Jan 26, 2006, at 21:55, Peter Eisch wrote: > >> On 1/26/06 10:42 PM, "Robert Spier" <[EMAIL PROTECTED]> wrote: >> >>> I'm sure there is a module that >>> someone has written that abstracts this all away. >> >> Sorry for the text inline, I'm somewhat encumbered at the moment: >> >> #!/usr/bin/perl >> >> =head1 NAME >> >> loadcheck >> >> =head1 DESCRIPTION >> >> Only takes email transactions if the system load is at or below a >> specified level. > > I thought this would be neat enough to have in the distribution. > > For forkserver it'd be useful if it would cache the value for a few > seconds (10?) and as others suggested then supporting reading /proc > would be useful as well. > I've added the caching and the /proc as well as the /kern for *bsd systems. "Yes," I'm running this live on *bsd. "No," I've not run this on *inux but I've tested the logic on it. If someone who has a moment to slide this onto a linux system could take it for a spin I'd appreciate it. [attached this time] peter PS.
loadcheck
Description: Binary data
