Set task priority

Steve Bertrand steve at ibctech.ca
Tue Jun 2 23:12:21 UTC 2009


Glen Barber wrote:
> Hi Steve
> 
> On Tue, Jun 2, 2009 at 7:05 PM, Steve Bertrand <steve at ibctech.ca> wrote:
>> Hi everyone,
>>
>> I'm attempting to "mysqldump" a database on a box that is hovering near
>> max CPU and mem usage.
>>
>> When I run the command, other critical programs fail to respond causing
>> an 'outage-like' situation.
>>
>> Normally, this is a time-of-day task and will run happily later into the
>> night, but I want to run it now.
>>
>> What is the best way to set priority on my task in order to ensure it
>> completes as quickly as possible, but does not cause a situation where
>> other programs and their children can't respond?
>>
> 
> You can use nice(1) or renice(1) to set priorities, but I/O and
> bandwidth will end up being your bottleneck.

Thanks Glen,

I'll have to play around a bit. Looking closer, it does appear to be a
disk I/O issue, but I figured that if I tried to prioritize the job, it
might ease-up on all system aspects.

Cheers,

Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3233 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090602/1cf88dbd/smime.bin


More information about the freebsd-questions mailing list