POV-Ray : Newsgroups : povray.off-topic : Linux guru question : Re: Linux guru question Server Time
5 Jul 2024 08:10:41 EDT (-0400)
  Re: Linux guru question  
From: Le Forgeron
Date: 31 Aug 2015 18:29:25
Message: <55e4d545@news.povray.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Le 01/09/2015 00:07, Anthony D. Baye a écrit :
> In linux the default priority for any given user-initiated process
> is 0.  Which means that when I run povray, its cpu priority is dead
> last.  I've gotten in the habit of running sudo top alongside so
> that I can renice the process to -20, but this only affects the
> main thread as far as I can tell.  All child threads have a
> priority of 0.
> 
> Is there a way to configure linux so that povray and all of its
> child threads are given top priority?
> 
> Regards, A.D.B.
> 

Nah... you are changing the nice value, not the priority nor the
scheduler.

You might want to investigate the 'chrt' command (kind of works like
'nice' and 'taskset' (not 'renice'), a naughty prefix for your
command). Beware, choosing a bad scheduler will froze your system
(especially if you start needing some I/O or swap). povray seems ok to
be a batch instead of default. do not choose real time.

Let me get it straight: DANGER, WILL ROBINSON, DANGER.


You do not want to change the priority. The nice value can be adjusted
ok if you are ready for it.

have a look at:

http://serverfault.com/questions/267496/renice-how-to-change-all-threads

You can also change the governor (default to "ondemand" on Ubuntu and
probably other distributions), for "performance" (CPU at max frequency
all the time): by not computing a possible adjustment due to the load,
you might gain a few cycles at each switch of threads. Just check your
cooling system first.

changing the governor is best done with cpufreq-set, you have to
repeat the command for each pseudo-core.

(sudo cpufreq-set -c 0 -g performance)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iJwEAQEIAAYFAlXk1UQACgkQhKAm8mTpkW20qAP+OPf1T6M93gBaCiVgv7EpkuJ5
yUGRl0FbDo66/3oaM1PN4X57+l71795uzuUrzoH17Py9reIQjnpe5ycNecAAdp7s
rHsEng0EA1bepPvxuauFosAkDqmQLk5u0IhbU/Z+NGwXhMBlhJxg+OAT+WwyrQB3
/OW699DxNjgVlPviTjk=
=lBer
-----END PGP SIGNATURE-----


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.