Nice and renice issue

Moderators: Site Moderators, FAHC Science Team

ronnieross
Posts: 11
Joined: Sun Sep 13, 2020 1:23 pm

Re: Nice and renice issue

Post by ronnieross »

Seems to be an interesting point of view on Computer Science: you can't slow down a process because of it executes forever and ever at the maximum speed CPU (aside voltage and clock configuration) can run.
Joe_H
Site Admin
Posts: 7937
Joined: Tue Apr 21, 2009 4:41 pm
Hardware configuration: Mac Pro 2.8 quad 12 GB smp4
MacBook Pro 2.9 i7 8 GB smp2
Location: W. MA

Re: Nice and renice issue

Post by Joe_H »

ronnieross wrote:Seems to be an interesting point of view on Computer Science: you can't slow down a process because of it executes forever and ever at the maximum speed CPU (aside voltage and clock configuration) can run.
Well, you can, but that requires programming in Wait states or other non-productive code. But basically F@h falls into the "compute-bound" type of process, it has calculations always ready to be done with limited amounts of other types of processing that would cause it to wait on. The client is set to run it at the lowest priority, the OS scheduler will preempt processing F@h for higher priority process that run.
Image

iMac 2.8 i7 12 GB smp8, Mac Pro 2.8 quad 12 GB smp6
MacBook Pro 2.9 i7 8 GB smp3
ronnieross
Posts: 11
Joined: Sun Sep 13, 2020 1:23 pm

Re: Nice and renice issue

Post by ronnieross »

Joe_H wrote:
Well, you can, but that requires programming in Wait states or other non-productive code. But basically F@h falls into the "compute-bound" type of process, it has calculations always ready to be done with limited amounts of other types of processing that would cause it to wait on. The client is set to run it at the lowest priority, the OS scheduler will preempt processing F@h for higher priority process that run.
I've found an utility, called cpulimit, that does the "dirty job" (maybe adding wait states or so...)

# sudo cpulimit -p PID -l 300

where PID is referred to the running FahCore_a8

It works.
gunnarre
Posts: 559
Joined: Sun May 24, 2020 7:23 pm
Location: Norway

Re: Nice and renice issue

Post by gunnarre »

How does does the cpulimit command affect efficiency? If it causes a lopsided effect on folding speed, due to poor thread synchronizaion, then it might not be a good idea to use.
Image
Online: GTX 1660 Super + occasional CPU folding in the cold.
Offline: Radeon HD 7770, GTX 1050 Ti 4G OC, RX580
ronnieross
Posts: 11
Joined: Sun Sep 13, 2020 1:23 pm

Re: Nice and renice issue

Post by ronnieross »

gunnarre wrote:How does does the cpulimit command affect efficiency? If it causes a lopsided effect on folding speed, due to poor thread synchronizaion, then it might not be a good idea to use.
Efficiency goes down: time for finishing job is circa X 3 (depending on final parameter you set from the command line).

But, this way, I believe you can let folding go on overnight without having CPU thermal issues.

(...)
Post Reply