how to redyce CPU usage on GPU tasks? libsleep wont work anymore....

Message boards : Number crunching : how to redyce CPU usage on GPU tasks? libsleep wont work anymore....
Message board moderation

To post messages, you must log in.

AuthorMessage
Profile Johny

Send message
Joined: 19 Nov 99
Posts: 22
Credit: 22,175
RAC: 0
Latvia
Message 1844485 - Posted: 26 Jan 2017, 10:01:14 UTC

Hello!
some years i use my nvidia GT630 videocard with nvidia drivers to crunch for seti via boinc.

i use gpu tasks only.
when i start that, i also see high cpu usage, but find i may use libsleep, and since then my cpu usage is about at 2-3% level at one core only, for seti.

all is good till i upgrade that machine to last stable slackware version - slackware64 14.2, kernel 4.4.38 .
since this, i found, my cpu again run on 100% (one core) all the time, yet that all was gpu tasks.

looks like libsleep not work anymore.
there is any workarounds? not want to run cpu on high load for nothing ( all work do GPU anyway)....electricity not cheap.
ID: 1844485 · Report as offensive
Profile Raistmer
Volunteer developer
Volunteer tester
Avatar

Send message
Joined: 16 Jun 01
Posts: 6325
Credit: 106,370,077
RAC: 121
Russia
Message 1844527 - Posted: 26 Jan 2017, 16:14:03 UTC - in response to Message 1844485.  

1) what PC you are talking of? link. I see only 2 OS X based PCs under your account.
2) -use_sleep if it's OpenCL GPU app.
SETI apps news
We're not gonna fight them. We're gonna transcend them.
ID: 1844527 · Report as offensive
Profile Johny

Send message
Joined: 19 Nov 99
Posts: 22
Credit: 22,175
RAC: 0
Latvia
Message 1844543 - Posted: 26 Jan 2017, 17:11:33 UTC - in response to Message 1844527.  

https://setiathome.berkeley.edu/hosts_user.php?userid=1057334

this one.

2. may help me in this? try to google more about it, thanks...
ID: 1844543 · Report as offensive
Profile Johny

Send message
Joined: 19 Nov 99
Posts: 22
Credit: 22,175
RAC: 0
Latvia
Message 1844550 - Posted: 26 Jan 2017, 17:25:10 UTC - in response to Message 1844527.  

BOINC# ./boinc -use_sleep
./boinc: /lib64/libssl.so.1.0.0: no version information available (required by ./boinc)
./boinc: /usr/lib64/libcurl.so.4: no version information available (required by ./boinc)
./boinc: /lib64/libcrypto.so.1.0.0: no version information available (required by ./boinc)
Unknown option: -use_sleep
ID: 1844550 · Report as offensive
Profile Raistmer
Volunteer developer
Volunteer tester
Avatar

Send message
Joined: 16 Jun 01
Posts: 6325
Credit: 106,370,077
RAC: 121
Russia
Message 1844564 - Posted: 26 Jan 2017, 18:20:51 UTC - in response to Message 1844550.  

that's app option, not boinc option. Look ReadMe files in project directory.
SETI apps news
We're not gonna fight them. We're gonna transcend them.
ID: 1844564 · Report as offensive
Profile Johny

Send message
Joined: 19 Nov 99
Posts: 22
Credit: 22,175
RAC: 0
Latvia
Message 1844571 - Posted: 26 Jan 2017, 18:34:08 UTC - in response to Message 1844564.  

that means, manual run each task?

nit fit in my case, anyway. ill see this month, what is electricity bill, and if it considerably higher, than in last months, i simple stop crunching on this machine.
earlier libsleep make a good work, but looks like it not work anymore, and no one knows why, and what restore low cpu load on gpu tasks.....
sadly, but...
ID: 1844571 · Report as offensive
Profile Johny

Send message
Joined: 19 Nov 99
Posts: 22
Credit: 22,175
RAC: 0
Latvia
Message 1844574 - Posted: 26 Jan 2017, 18:44:19 UTC - in response to Message 1844571.  

http://setiathome.berkeley.edu/forum_thread.php?id=74160

old thread about that theme.

and from /boinc/%projectdir%astropulse_7.08_README_x86_64-pc-linux-gnu__opencl_nvidia_100


-use_sleep :Results in additional Sleep() calls to yield CPU to other processes. Can affect performance. Set by default on 64bit Linux for nVidia GPUs.^M

it says -use_sleep option is used by default, as so, there seems no sense in use additional -use_sleep switch in linux64 OS case...?
ID: 1844574 · Report as offensive
TBar
Volunteer tester

Send message
Joined: 22 May 99
Posts: 5204
Credit: 840,779,836
RAC: 2,768
United States
Message 1844575 - Posted: 26 Jan 2017, 18:46:08 UTC - in response to Message 1844550.  

BOINC# ./boinc -use_sleep
./boinc: /lib64/libssl.so.1.0.0: no version information available (required by ./boinc)
./boinc: /usr/lib64/libcurl.so.4: no version information available (required by ./boinc)
./boinc: /lib64/libcrypto.so.1.0.0: no version information available (required by ./boinc)
Unknown option: -use_sleep

The version of BOINC you're using doesn't work very well with the newer versions of Linux, is there any way you can update BOINC?
If that doesn't work, you could just use the older version of CUDA under Anonymous platform. The CUDA 4.2 App uses little CPU and would probably work just as well as the newer Apps on that low end GPU.
You can find the package here; http://www.arkayn.us/forum/index.php?topic=197.msg4489#msg4489
If you don't want to use the CPU, remove the CPU section from the bottom of the app_info.xml file.
ID: 1844575 · Report as offensive
Profile Raistmer
Volunteer developer
Volunteer tester
Avatar

Send message
Joined: 16 Jun 01
Posts: 6325
Credit: 106,370,077
RAC: 121
Russia
Message 1844600 - Posted: 26 Jan 2017, 20:50:56 UTC - in response to Message 1844571.  
Last modified: 26 Jan 2017, 20:55:58 UTC

that means, manual run each task?

nit fit in my case, anyway. ill see this month, what is electricity bill, and if it considerably higher, than in last months, i simple stop crunching on this machine.
earlier libsleep make a good work, but looks like it not work anymore, and no one knows why, and what restore low cpu load on gpu tasks.....
sadly, but...

it does mean to add option for app, BOINC will launch app as it did before.
But for Linux -use_sleep is default option indeed (worth to refer MultiBeam ReadMe instead of AstroPulse though).
That could mean smth should be done with OS itself for process to correctly yield CPU on request.
It's the first report of such issue so some experimenting would be needed.
For example, to go to anonymous platform and install CUDA app insteaad of OpenCL one as TBar suggested. Of course it's for MultiBeam, not AstroPulse, but AstroPulse so scarce that can be neglected for now.

Will be interesting to see if it experience any issues with CPU yielding (though driver-level yields can't be equal process-level ones it could give some additional info).
SETI apps news
We're not gonna fight them. We're gonna transcend them.
ID: 1844600 · Report as offensive
Profile petri33
Volunteer tester

Send message
Joined: 6 Jun 02
Posts: 1668
Credit: 623,086,772
RAC: 156
Finland
Message 1844622 - Posted: 26 Jan 2017, 22:35:19 UTC - in response to Message 1844485.  

Hello!
some years i use my nvidia GT630 videocard with nvidia drivers to crunch for seti via boinc.

i use gpu tasks only.
when i start that, i also see high cpu usage, but find i may use libsleep, and since then my cpu usage is about at 2-3% level at one core only, for seti.

all is good till i upgrade that machine to last stable slackware version - slackware64 14.2, kernel 4.4.38 .
since this, i found, my cpu again run on 100% (one core) all the time, yet that all was gpu tasks.

looks like libsleep not work anymore.
there is any workarounds? not want to run cpu on high load for nothing ( all work do GPU anyway)....electricity not cheap.


Hi,
I do not see any NVIDIA cards listed on any of your computers... You may need to load a driver for the GTX630 first.
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: 1844622 · Report as offensive
Profile Wiggo
Avatar

Send message
Joined: 24 Jan 00
Posts: 34744
Credit: 261,360,520
RAC: 489
Australia
Message 1844627 - Posted: 26 Jan 2017, 22:43:27 UTC - in response to Message 1844622.  



Hi,
I do not see any NVIDIA cards listed on any of your computers... You may need to load a driver for the GTX630 first.

It's under a different account, https://setiathome.berkeley.edu/hosts_user.php?userid=1057334. ;-)

Cheers.
ID: 1844627 · Report as offensive

Message boards : Number crunching : how to redyce CPU usage on GPU tasks? libsleep wont work anymore....


 
©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.