Perlfect Solutions

[Perlfect-search] Re: Processor usage

Cameron Moore
Thu, 25 Oct 2001 13:47:01 -0500
On Aug 24, 2001, Mike Achenbach posted a message[1] saying that the
indexer was hogging his CPU.  I simple fix is to add this to the top of
your script:

  use POSIX qw(nice);
  nice 20;

That will renice the process to be less of a hog on a Linux box.  Other
unices may have a different nice scale, and Win32 may not even support
it, so check your system for more details.  Thanks

Cameron Moore
/ The other day, I went to a tourist information booth and asked, \
\  "Tell me about some of the people who were here last year".    /