CPU usage improvement on Mac / Unix

sgenzersgenzer Administrator, Moderator, Employee, RapidMiner Certified Analyst, Community Manager, Member, University Professor, PM Moderator Posts: 2,959 Community Manager
edited December 2018 in Product Feedback - Resolved

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

 

0
0 votes

Fixed and Released · Last Updated

Comments

  • BalazsBaranyBalazsBarany Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert Posts: 955 Unicorn

    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

  • sgenzersgenzer Administrator, Moderator, Employee, RapidMiner Certified Analyst, Community Manager, Member, University Professor, PM Moderator Posts: 2,959 Community Manager

    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

     

  • sgenzersgenzer Administrator, Moderator, Employee, RapidMiner Certified Analyst, Community Manager, Member, University Professor, PM Moderator Posts: 2,959 Community Manager

    use of multithreading and multicores released in Studio.

Sign In or Register to comment.