linux high CPu usage -- not!

Message boards : Number crunching : linux high CPu usage -- not!
Message board moderation

To post messages, you must log in.

AuthorMessage
Profile petri33
Volunteer tester

Send message
Joined: 6 Jun 02
Posts: 1668
Credit: 623,086,772
RAC: 156
Finland
Message 1397175 - Posted: 31 Jul 2013, 19:47:00 UTC

The AP in linux NVIDIA has a high CPU usage. I wondered if this would help:

https://bitcointalk.org/index.php?topic=181328.0

I downloaded and compiled and put it in my boinc startup script like this:


...
daemon --check $BOINCEXE --user $BOINCUSER +10 "LD_PRELOAD=/YOURDIRECTORYWHATEVER/libsleep.so $B\
OINCEXE $BOINCOPTS --dir $BOINCDIR >>$LOGFILE 2>>$ERRORLOG &" >& /dev/null
... (do not put in to seti dir since it is removed automagically)

Now I can tell, after 3 completed AP units, that my first impression is quite positive. I'll be back when I have completed more AP units. Especially more of them at a time over extended periods.

What I believe in my little brain is that the NVIDIA drivers "yield()" is replaced by usleep(1000) and the AP process is put to a operating system queue at an appropriate position to be run after the specified time interval. Other processes are free to go. Yield() would just check if there are any higher priority processes to go.

LD_PRELOAD is introduced at boinc startup. It is inherited to child processes environments and finally to the AP executable too.
To overcome Heisenbergs:
"You can't always get what you want / but if you try sometimes you just might find / you get what you need." -- Rolling Stones
ID: 1397175 · Report as offensive
Profile petri33
Volunteer tester

Send message
Joined: 6 Jun 02
Posts: 1668
Credit: 623,086,772
RAC: 156
Finland
Message 1397718 - Posted: 1 Aug 2013, 20:55:51 UTC - in response to Message 1397175.  

(replying to myself)
MB CPU time UP 100 seconds. AP runtime one at a time not affected.

To overcome Heisenbergs:
"You can't always get what you want / but if you try sometimes you just might find / you get what you need." -- Rolling Stones
ID: 1397718 · Report as offensive

Message boards : Number crunching : linux high CPu usage -- not!


 
©2024 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.