[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to change the process priority in OBSD?
- To: "'Teh Kok How'" <khteh_(_at_)_willowglen_(_dot_)_com_(_dot_)_my>, <misc_(_at_)_openbsd_(_dot_)_org>
- Subject: Re: How to change the process priority in OBSD?
- From: "Dom De Vitto" <dom_(_at_)_DeVitto_(_dot_)_com>
- Date: Tue, 9 Dec 2003 09:51:57 -0000
- Organization: Secure Technologies Ltd.
- Thread-index: AcO+MkHpB921u4iNRbuk0EDbNf9fuwABpA+Q
man renice
Also be aware that your system is 96% busy, so you are using all your
CPU, and this is almost certainly all going to the video encoder.
N.B.
Increasing the priority will just take time from other processes to
give to the encoder (the remaining 4%), so no amount of playing will
make your encoder go more than ~4% faster. Of course making the
encoder a higher priority that your shell, or sshd (etc. etc.) can
mean that your loose control of your system while the encoding is
happening. Also be aware what else is going on - mobo IO, bus
throughput are all not limitless and one disk access will increase
_elapsed_time_ much more than an extra 4% is likely to get you.
Dom
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Dom De Vitto Tel. 07855 805 271
http://www.devitto.com mailto:dom_(_at_)_devitto_(_dot_)_com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-----Original Message-----
From: owner-misc_(_at_)_openbsd_(_dot_)_org [mailto:owner-misc_(_at_)_openbsd_(_dot_)_org] On Behalf Of
Teh Kok How
Sent: Tuesday, December 09, 2003 6:23 AM
To: misc_(_at_)_openbsd_(_dot_)_org
Subject: How to change the process priority in OBSD?
Hi;
How do I schedule the runtime priority of a userland process in
OpenBSD? When I run `systat -w 1 vmstat` there are 96% nice time compared to
<2% user when the system is only running one video encoder program. "nice"
is a low priority process and this shows that the video encoder is
categorized in the "nice" low priority group...?
Thanks,
TEH
Visit your host, monkey.org