CUDA freezes my system

Questions and Answers : GPU applications : CUDA freezes my system
Message board moderation

To post messages, you must log in.

AuthorMessage
Doc

Send message
Joined: 9 Aug 09
Posts: 4
Credit: 2,343,151
RAC: 0
Poland
Message 960535 - Posted: 3 Jan 2010, 10:21:42 UTC

Hello people,

i got miself a problem runnung CUDA lately.

wasn't crunching anything for last couple of months (Prescott heating issues, no CUDA card, etc.); wanted to get back to it, but whatever i run (winXP_x86, win7_x86_64, nv190_c2.3, nv195_c3.0) it aways freezes my desktop. it happens when the graphics has something more to do, like playing a movie, displaying a VirtMachine, or just moving windows around the screen under W7.

CUDA card is the best PU on my system, it would be a shame not using it.
In fact i switched back to Windows from Linux to get CUDA working.

Did anyone got into this maybe?
Got any suggestions?
ID: 960535 · Report as offensive
FiveHamlet
Avatar

Send message
Joined: 5 Oct 99
Posts: 783
Credit: 32,638,578
RAC: 0
United Kingdom
Message 960543 - Posted: 3 Jan 2010, 11:49:53 UTC - in response to Message 960535.  
Last modified: 3 Jan 2010, 11:53:30 UTC

Simple answer don't run Cuda tasks when you want to watch movie.
Your GSO 9600 has only just enough memory to run Cuda,and then when you try other things memory gets streched.

Dave
ID: 960543 · Report as offensive
Doc

Send message
Joined: 9 Aug 09
Posts: 4
Credit: 2,343,151
RAC: 0
Poland
Message 960545 - Posted: 3 Jan 2010, 12:03:56 UTC - in response to Message 960543.  

hmmm...
didn't think about that
thought that it would rather be memory transfers causing a driver bug
and that memory is bigger than 384M - there is over a Gig allocated to video by the OS...

thanks
ID: 960545 · Report as offensive
FiveHamlet
Avatar

Send message
Joined: 5 Oct 99
Posts: 783
Credit: 32,638,578
RAC: 0
United Kingdom
Message 960557 - Posted: 3 Jan 2010, 13:27:50 UTC - in response to Message 960545.  

From memory I may be wrong someone will correct me Cuda requires 256 Mb memory on card to run.

Dave
ID: 960557 · Report as offensive
Profile Jord
Volunteer tester
Avatar

Send message
Joined: 9 Jun 99
Posts: 15184
Credit: 4,362,181
RAC: 3
Netherlands
Message 960564 - Posted: 3 Jan 2010, 13:50:53 UTC

It's not so much the memory that's the problem here, but the GPU. When you run CUDA, your GPU is saturated with the Seti task. It can't do anything else GPU intensive at that time. Anything 3D or watching a DVD is GPU intensive.

If it is the memory that's causing it, it may well be the Aero desktop that's used in Windows 7. That's very memory hungry & uses the GPU.

Advice is: Run CUDA only when you're not otherwise using the computer.
ID: 960564 · Report as offensive
Doc

Send message
Joined: 9 Aug 09
Posts: 4
Credit: 2,343,151
RAC: 0
Poland
Message 960566 - Posted: 3 Jan 2010, 13:52:27 UTC - in response to Message 960557.  
Last modified: 3 Jan 2010, 13:59:04 UTC

it could be correct: gpu-z reports memory usage at 225Mb,
GPU utilisation at 97%
Memory controller utilisation at about 50%
(that would say to us that memory bandwidth is not stressed to the max)

HDvideo playback requires 48Mb i think (correct me if i am wrong)
Virtual Machine i usually run is set to have 64Mb

so with 384 onboard we still have room, even if OS did not add anything,
and it does

i read somewhere on nvidia forums that CUDA does not have its own virtual adress space, like other processes on the CPU do

what you think bout that?


EDIT:
Ageless - will have to follow your advice, but in August/September'09 i did not have this problem at all; that's why i am all suprised
ID: 960566 · Report as offensive
OzzFan Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 9 Apr 02
Posts: 15691
Credit: 84,761,841
RAC: 28
United States
Message 960571 - Posted: 3 Jan 2010, 14:16:41 UTC - in response to Message 960566.  

so with 384 onboard we still have room, even if OS did not add anything,
and it does

i read somewhere on nvidia forums that CUDA does not have its own virtual adress space, like other processes on the CPU do

what you think bout that?


That's correct. The CUDA app that nVidia wrote for SETI@Home does not use system memory provided by the OS; it uses the onboard buffer memory built into the graphics card only.

I think the primary issue is the Aero effects using up GPU time to draw objects to screen and giving the appearance of lag due to the GPU also processing the science as well. Add in the fact that your memory on the card is low, CUDA takes up 255MB, Aero takes more, your screen resolution also requires more memory and I think we have a combination of issues adding up to the sum total of your problem.

The best advise is to simply not use the GPU while you are using your computer.
ID: 960571 · Report as offensive
Profile Jord
Volunteer tester
Avatar

Send message
Joined: 9 Jun 99
Posts: 15184
Credit: 4,362,181
RAC: 3
Netherlands
Message 960580 - Posted: 3 Jan 2010, 14:46:01 UTC - in response to Message 960571.  

The best advise is to simply not use the GPU while you are using your computer.

That's going to be difficult there, Charlie. ;-)
The Graphics Processing Unit will always be 'in use' when you use the computer as it shows everything you do on the monitor. You may want to say "Don't use the GPU for CUDA while you are using the computer".

Doc, the option is available in your preferences:
Online: Suspend GPU work while computer is in use? Yes.
Local: Uncheck "Use GPU while computer is in use".
ID: 960580 · Report as offensive
Doc

Send message
Joined: 9 Aug 09
Posts: 4
Credit: 2,343,151
RAC: 0
Poland
Message 961256 - Posted: 6 Jan 2010, 18:51:51 UTC - in response to Message 960580.  

yep, thats almost always the solution
if I control what is on the screen while the GPU starts to work again

okay, I just thought there is a solution to that one

thank you all for your opinion on that
ID: 961256 · Report as offensive
scibuff

Send message
Joined: 16 Apr 09
Posts: 3
Credit: 179,279
RAC: 0
Netherlands
Message 962402 - Posted: 10 Jan 2010, 2:13:43 UTC - in response to Message 961256.  

If you don't mind suspending all tasks (not just CUDA) there's a relatively easy way to do it ... just go to the Data/BOINC directory and create a file called cc_config.xml. Inside it, put the following

<cc_config>
<options>
<exclusive_app>[app_executable_name]</exclusive_app>
<no_gpus>0</no_gpus>
</options>
</cc_config>

for example, I've set mine not to run any tasks while I watch a movie on vlc, or play warcraft. When BOINC detects any of them running, it will pause (suspend) all tasks

<cc_config>
<options>
<exclusive_app>war3.exe</exclusive_app>
<exclusive_app>vlc.exe</exclusive_app>
<no_gpus>0</no_gpus>
</options>
</cc_config>
ID: 962402 · Report as offensive
Profile Gundolf Jahn

Send message
Joined: 19 Sep 00
Posts: 3184
Credit: 446,358
RAC: 0
Germany
Message 962476 - Posted: 10 Jan 2010, 11:14:42 UTC - in response to Message 962402.  
Last modified: 10 Jan 2010, 11:15:22 UTC

If you don't mind suspending all tasks (not just CUDA) there's a relatively easy way to do it ...

There's even an <exclusive_gpu_app> option, so that you don't have to suspend all tasks. See Client configuration in the BOINC wiki.

Gruß,
Gundolf
Computer sind nicht alles im Leben. (Kleiner Scherz)

SETI@home classic workunits 3,758
SETI@home classic CPU time 66,520 hours
ID: 962476 · Report as offensive

Questions and Answers : GPU applications : CUDA freezes my system


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