Message boards : Number crunching : Sound playback choppy with all cores crunching.
Message board moderation
Author | Message |
---|---|
Send message Joined: 15 May 09 Posts: 4540 Credit: 19,039,635 RAC: 18,944 |
Not quite sure if this belongs here or in linux part of forum. It has been said many times that with some models doing cpu intensive things with the computer can cause them to crash. I have noticed recently that sound and video playback has been quite choppy. I have an I3 processor with 4GB of ram. Having tried just about everything else I tried suspending one of the two models and then sound playback was perfect. I know BOINC is supposed to release cycles when other work on the computer demands it but clearly it does not respond quickly enough! Do others have this problem and if so does it only occur on linux? I must admit when I found the solution I felt a bit stupid for not trying it earlier! |
Send message Joined: 19 Apr 08 Posts: 179 Credit: 4,306,992 RAC: 0 |
Hi Dave, just to throw out a quick guess--is BOINC running with nice=19? Is BOINC installed via the distribution? Is it a laptop or desktop? |
Send message Joined: 15 May 09 Posts: 4540 Credit: 19,039,635 RAC: 18,944 |
Installed by extracting tar.gz - 64 bit so I had to install a few libraries to get cpdn to work. As default niceness is 19 for BOINC I assume that is what I am running it as. |
Send message Joined: 12 Feb 08 Posts: 66 Credit: 4,877,652 RAC: 0 |
I had a sound clipping issue with my previous computer when both cpu and gpu were crunching. (That was AMD Windows.) Pausing gpu crunching solved that problem. Even though Boinc is supposed to behave nicely it doesn�t always seem to do so. With my current computer (Intel Windows) I don�t have any issues with cpu or gpu. |
Send message Joined: 29 Sep 04 Posts: 2363 Credit: 14,611,758 RAC: 0 |
Isn't the default for the GPU only to be active after the owner hasn't used the computer for a few minutes? But of course 'active' means using the keyboard or mouse, so if you're watching a film without compulsively tapping on the keyboard or moving the mouse the GPU must start crunching. For a film of any length it would be worth suspending the GPU tasks. If you have the BOINC screensaver activated that can also create problems of interference. Cpdn news |
Send message Joined: 17 Nov 07 Posts: 142 Credit: 4,271,370 RAC: 0 |
Dave - you could try increasing the "latency" for the sound & video cards (lspci -v / setpci ) It won't work for video if you're using the i3's built-in graphics, though. http://www.mythtv.org/wiki/PCI_Latency Also you could try changing to a 'lowlatency' kernel, but that will reduce throughput of the models by 5% or so. There's a trade-off between responsiveness and throughput, unfortunately. |
Send message Joined: 19 Apr 08 Posts: 179 Credit: 4,306,992 RAC: 0 |
... I assume that is what I am running it as. Open a terminal, type top [enter] and read the "NI" column, [q] to quit. But yes, I believe as long as you're starting via the script it should be 19. If you're already using Pulseaudio you might want to check if any other applications (like Skype) are configured to use the sound card via Alsa. Hope you're able to get it working. I can say my AMD laptop and desktop machines with 2.6 kernels and Pulseaudio produce great sound with BOINC tasking all cores. I'll be trying kernels 3.2 and 3.5 soon and I'll report back if anything sounds funny. |
Send message Joined: 15 May 09 Posts: 4540 Credit: 19,039,635 RAC: 18,944 |
Thanks all. I don't use a screensaver - Not even sure it is possible to have the graphics work as a screensaver in linux. I don't do GPU crunching. I will try a bit more playing but if no joy, I will resign myself to suspending one core from crunching while playing youtube or other videos. |
Send message Joined: 19 Apr 08 Posts: 179 Credit: 4,306,992 RAC: 0 |
Does it only happen with internet content? What about a local video file? How about just an audio file? |
Send message Joined: 15 May 09 Posts: 4540 Credit: 19,039,635 RAC: 18,944 |
Happens with local video, Audio only OK. |
Send message Joined: 5 Sep 04 Posts: 7629 Credit: 24,240,330 RAC: 0 |
Wild guess. If it's a laptop with no separate display card, it'll be using some of the main memory for display purposes. It'll probably need lots to play videos. Or at least try to use it. So it'll be a tug of war between the memory hungry models, and the memory hungry gpu chip. Backups: Here |
Send message Joined: 15 May 09 Posts: 4540 Credit: 19,039,635 RAC: 18,944 |
Not a laptop but it is using the built in graphics. Will be interesting to see what difference a discrete card makes when I get one. 4GB is the max my motherboard will accept. Currently I have no restriction on how much memory BOINC can use so that is the obvious next step to play with. If I ever go up to 4 cores or more I think I might just leave one free to see what happens then. |
Send message Joined: 19 Apr 08 Posts: 179 Credit: 4,306,992 RAC: 0 |
I don't think memory is the problem: I run four CPDN tasks on 4GB without issue (with an integrated GPU). Is this Clarkdale, Sandy, or Ivy? What's the disribution? Maybe 2D acceleration is the culprit. Try enabling SNA (it'll work on Clarkdale). Here's a couple of links: https://wiki.archlinux.org/index.php/Intel_Graphics http://www.webupd8.org/2012/10/how-to-enable-intel-sna-acceleration-in.html This really shouldn't be happening on modern hardware, but Linux drivers can be tricky to get right. |
©2024 cpdn.org