Intermittent dropouts recording onboard audio on Linux

Help for Audacity on GNU/Linux.
Forum rules
ImageThis forum is for Audacity on GNU/Linux.
Please state:
  • which version of Linux you are using,
  • the exact three-section version number of Audacity from Help menu > About Audacity,
  • whether you installed your distribution's release, PPA version, or compiled Audacity from source code.

Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade (see https://www.audacityteam.org/download/).
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Post Reply
DarthMarth
Posts: 22
Joined: Tue Aug 04, 2009 11:16 pm
Operating System: Linux *buntu

Intermittent dropouts recording onboard audio on Linux

Post by DarthMarth » Sun May 05, 2019 3:29 am

I am noticing intermittent dropouts when recording audio playing on my computer in Audacity 2.3.1, on Linux Mint 18.3. I originally installed it from the package repository. For hardware, I have an Intel i5-2450M CPU (2.5GhZ), 6 GB of RAM, and 70GB of space on the partition containing Audacity's temporary folder. I started noticing the dropouts after I upgraded my OS from an older version of Linux Mint and replaced the HDD in my computer. The issue doesn't happen totally consistently; there seem to be times when dropouts happen frequently and other times when they don't happen at all, which makes me suspect some background process may be competing for resources with Audacity. I've been following these tips to alleviate the dropouts, including recording while minimized, increasing the buffer length to 500 ms, and setting the nice priority to 0 (though I think that might be the default), none of which have helped so far. Lots of the tips seem specific to Windows; for example, does Linux Mint even come with an antivirus scanner? How can I track down what could be causing these dropouts?

steve
Site Admin
Posts: 81609
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Intermittent dropouts recording onboard audio on Linux

Post by steve » Sun May 05, 2019 12:01 pm

DarthMarth wrote:
Sun May 05, 2019 3:29 am
does Linux Mint even come with an antivirus scanner?
Not in the default installation. The most widely used anti-virus for Linux is ClamAV, which is usually used as an "on demand" scanner rather than running in the background.
DarthMarth wrote:
Sun May 05, 2019 3:29 am
How can I track down what could be causing these dropouts?
You could open a task / process monitor application (such as "Task Manager", or whatever is available for Mint) to see which apps / processes are using disk a/ CPU resources.

Note that if your computer is critically short of RAM (memory), then performance will slow down dramatically. You need to have enough free RAM to avoid using the swap partition.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

DarthMarth
Posts: 22
Joined: Tue Aug 04, 2009 11:16 pm
Operating System: Linux *buntu

Re: Intermittent dropouts recording onboard audio on Linux

Post by DarthMarth » Sun May 05, 2019 1:45 pm

I am seeing dropouts occurring with less than 50% memory and 25% CPU utilization.

steve
Site Admin
Posts: 81609
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Intermittent dropouts recording onboard audio on Linux

Post by steve » Sun May 05, 2019 1:49 pm

How many processor cores does your computer have?
What's using 25% CPU?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

DarthMarth
Posts: 22
Joined: Tue Aug 04, 2009 11:16 pm
Operating System: Linux *buntu

Re: Intermittent dropouts recording onboard audio on Linux

Post by DarthMarth » Sun May 05, 2019 9:45 pm

My CPU has 4 cores. Audacity is taking about 12% and the system monitor itself is averaging 8-12%. (it seems to report in multiples of 4%)

steve
Site Admin
Posts: 81609
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Intermittent dropouts recording onboard audio on Linux

Post by steve » Mon May 06, 2019 7:09 pm

That all sounds fine.
What are you recording, and what audio device / sound card are you using?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

DarthMarth
Posts: 22
Joined: Tue Aug 04, 2009 11:16 pm
Operating System: Linux *buntu

Re: Intermittent dropouts recording onboard audio on Linux

Post by DarthMarth » Wed May 08, 2019 2:04 am

My audio device is whatever came built-in with my Intel chipset. Using hardinfo, I see I have an "Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)". I'm recording streaming internet radio to listen to later (it's blocked at my work).

steve
Site Admin
Posts: 81609
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Intermittent dropouts recording onboard audio on Linux

Post by steve » Wed May 08, 2019 11:27 am

DarthMarth wrote:
Wed May 08, 2019 2:04 am
I'm recording streaming internet radio
How are you doing that? With PulseAudio Volume Control "Monitor" input (https://manual.audacityteam.org/man/tut ... linux.html)?

Do you listen to the recording while it is being recorded? If so, do you hear the intermittent drop outs during the recording?

Have you checked to see if the radio is available as a downloadable podcast (MP3)? Many radio shows are.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply