climateprediction.net home page
Sound playback choppy with all cores crunching.

Sound playback choppy with all cores crunching.

Message boards : Number crunching : Sound playback choppy with all cores crunching.
Message board moderation

To post messages, you must log in.

AuthorMessage
Profile Dave Jackson
Volunteer moderator

Send message
Joined: 15 May 09
Posts: 4353
Credit: 16,598,247
RAC: 6,156
Message 45681 - Posted: 22 Mar 2013, 9:29:08 UTC

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!
ID: 45681 · Report as offensive     Reply Quote
Belfry

Send message
Joined: 19 Apr 08
Posts: 179
Credit: 4,306,992
RAC: 0
Message 45682 - Posted: 22 Mar 2013, 11:31:19 UTC - in response to Message 45681.  

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?
ID: 45682 · Report as offensive     Reply Quote
Profile Dave Jackson
Volunteer moderator

Send message
Joined: 15 May 09
Posts: 4353
Credit: 16,598,247
RAC: 6,156
Message 45683 - Posted: 22 Mar 2013, 12:16:33 UTC - in response to Message 45682.  

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.
ID: 45683 · Report as offensive     Reply Quote
3rkko

Send message
Joined: 12 Feb 08
Posts: 66
Credit: 4,877,652
RAC: 0
Message 45685 - Posted: 22 Mar 2013, 16:37:32 UTC - in response to Message 45681.  

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.
ID: 45685 · Report as offensive     Reply Quote
Profile mo.v
Volunteer moderator
Avatar

Send message
Joined: 29 Sep 04
Posts: 2363
Credit: 14,611,758
RAC: 0
Message 45687 - Posted: 22 Mar 2013, 20:12:46 UTC

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
ID: 45687 · Report as offensive     Reply Quote
Profile Greg van Paassen

Send message
Joined: 17 Nov 07
Posts: 142
Credit: 4,271,370
RAC: 0
Message 45689 - Posted: 22 Mar 2013, 21:04:45 UTC

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.
ID: 45689 · Report as offensive     Reply Quote
Belfry

Send message
Joined: 19 Apr 08
Posts: 179
Credit: 4,306,992
RAC: 0
Message 45690 - Posted: 22 Mar 2013, 21:07:50 UTC - in response to Message 45683.  

... 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.
ID: 45690 · Report as offensive     Reply Quote
Profile Dave Jackson
Volunteer moderator

Send message
Joined: 15 May 09
Posts: 4353
Credit: 16,598,247
RAC: 6,156
Message 45692 - Posted: 23 Mar 2013, 8:09:41 UTC

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.
ID: 45692 · Report as offensive     Reply Quote
Belfry

Send message
Joined: 19 Apr 08
Posts: 179
Credit: 4,306,992
RAC: 0
Message 45703 - Posted: 23 Mar 2013, 17:26:52 UTC

Does it only happen with internet content? What about a local video file? How about just an audio file?
ID: 45703 · Report as offensive     Reply Quote
Profile Dave Jackson
Volunteer moderator

Send message
Joined: 15 May 09
Posts: 4353
Credit: 16,598,247
RAC: 6,156
Message 45714 - Posted: 24 Mar 2013, 8:23:48 UTC - in response to Message 45703.  

Happens with local video, Audio only OK.
ID: 45714 · Report as offensive     Reply Quote
Les Bayliss
Volunteer moderator

Send message
Joined: 5 Sep 04
Posts: 7629
Credit: 24,240,330
RAC: 0
Message 45715 - Posted: 24 Mar 2013, 8:33:03 UTC - in response to Message 45714.  

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
ID: 45715 · Report as offensive     Reply Quote
Profile Dave Jackson
Volunteer moderator

Send message
Joined: 15 May 09
Posts: 4353
Credit: 16,598,247
RAC: 6,156
Message 45716 - Posted: 24 Mar 2013, 12:26:09 UTC - in response to Message 45715.  

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.
ID: 45716 · Report as offensive     Reply Quote
Belfry

Send message
Joined: 19 Apr 08
Posts: 179
Credit: 4,306,992
RAC: 0
Message 45720 - Posted: 24 Mar 2013, 18:50:40 UTC
Last modified: 24 Mar 2013, 18:51:28 UTC

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.
ID: 45720 · Report as offensive     Reply Quote

Message boards : Number crunching : Sound playback choppy with all cores crunching.

©2024 climateprediction.net