RapidMiner

RapidMiner

0 Likes

CPU usage improvement on Mac / Unix

Status: New
by ‎11-30-2016 04:50 PM

Hello.  So I discovered today the "nice" command in Unix and realized that the CPU priority of RapidMiner was set at zero (scale is 20 to -20, where -20 is top priority and 20 is bottom priority on CPU).  Could we have this as a preference in RapidMiner Studio so that we can set the priority to "Maximum" if we want?  Initial informal testing already seeing a performance boost.

 

BEFORE:

$ps -lp 90906

  UID   PID  PPID        F CPU PRI NI       SZ    RSS WCHAN     S             ADDR TTY           TIME CMD

  501 90906 90840     4004   0  54  0 17881680 8042220 -      R                   0 ??        36:03.49 /Applications/RapidMiner Studio 7.3.0.app/Contents/PlugIns/jre_1.8.0_XX.jre/Contents/Home/bin/ja

 

$ sudo renice -n -20 -p 90906

 

AFTER:

$ps -lp 90906

  UID   PID  PPID        F CPU PRI NI       SZ    RSS WCHAN     S             ADDR TTY           TIME CMD

  501 90906 90840     4004   0  63 -20 17893188 8430772 -      R<                  0 ??        43:54.01 /Applications/RapidMiner Studio 7.3.0.app/Contents/PlugIns/jre_1.8.0_XX.jre/Contents/Home/bin/ja

 

Thanks.

Scott

 

Comments

Hi!

 

Elevating the priority is not possible for normal users, at least on Linux. You had to use sudo, too. 

 

So Studio wouldn't be able to set its own priority to a higher one for most cases. 

 

Also be careful not to block important background processes on your computer. 

 

Regards,

 

Balázs

Elite II

hmm ok.  Thank you Balász.  Yes it needs sudo of course.  OK I will just do it manually when I need to run a long process and want to maximize CPU usage.  Most of the background processes think they are far more important than they really are. <grin>

Scott