using module-udev-detect leaks memory
- Karmic (9.10)
- Bug #424655
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pulseaudio (Fedora) |
Fix Released
|
Medium
|
|||
pulseaudio (Ubuntu) |
Fix Released
|
High
|
Luke Yelavich | ||
Karmic |
Fix Released
|
High
|
Daniel T Chen | ||
udev (Ubuntu) |
Invalid
|
High
|
Unassigned | ||
Karmic |
Invalid
|
Undecided
|
Unassigned |
Bug Description
--- SRU report follows ---
Impact: Users of Ubuntu 9.10 may experience a local denial of service condition where the PulseAudio daemon process(es) exhausts available memory. This is caused by the default-used module-udev-detect not properly freeing invalid udev contexts.
Fixed in 10.04: addressed in the latest Lucid source upload that contains the upstream fix
Minimal fix for 9.10: http://
TEST CASE: On some configurations, this symptom is immediately triggerable. On others, it requires that the user choose a non-stereo multichannel profile in System > Preferences > Sound > Hardware > Profile
Regression potential: low -- the existing upstream fix has been well-tested in Daniel T Chen's PPA and only touches the relevant code in module-udev-detect. The existing workaround of using module-detect will not be affected.
--- Original report follows ---
Binary package hint: pulseaudio
Pulse audio routinely uses 2GB+ over the course of a few hours.
Description: Ubuntu karmic (development branch)
Release: 9.10
pulseaudio:
Installed: 1:0.9.16~
Candidate: 1:0.9.16~
Version table:
*** 1:0.9.16~
500 http://
100 /var/lib/
I expect pulseaudio to continue to use a couple MB of memory, certainly less then 2GB.
After a few hours of listening to music and the odd youtube video pulseaudio ends up with 2GB+ of memory.
Related branches
- Luke Yelavich: Pending requested
Daniel T Chen (crimsun) wrote : | #1 |
Changed in pulseaudio (Ubuntu): | |
status: | New → Incomplete |
svaens (svaens) wrote : | #2 |
Hi all,
Hi Daniel, This sounds like a pretty serious issue. Perhaps more information could be given to the submitter so that we can get this bug status changed back to new, or confirmed, or whatever it needs to be looked at?
Or did you mean by your last post there that this issue doesn't exist in the pulse audio version that will be used in the release version of Karmic Koala?
Thanks for any information on this one.
David Addley (addley-david) wrote : | #3 |
Issue appears to have been fixed. Pulse audio now stays at ~ 5.6MB.
David Addley (addley-david) wrote : | #4 |
Cancel that. Memory usage is climbing at a rate of about 1MB every 5 seconds.
Does anyone have a "typical" amount of memory that pulseaudio should be using?
Jeff Schroeder (sejeff) wrote : | #5 |
This is a HUGE regression. I left a karmic desktop turned on overnight. In the morning I was trying to figure out why my computer was so slow. It turns out that pdflush was writing data to disk (swap) as fast as possible and was stuck in IO Wait (D state in ps aux). pulseaudio was taking almost 80% of my 8G of memory. Not cool.
19170 jeff 20 0 12.2g 6.2g 1464 S 0 79.9 14:35.83 /usr/bin/pulseaudio --start
This should be a release blocker.
Changed in pulseaudio (Ubuntu): | |
status: | Incomplete → Confirmed |
Daniel T Chen (crimsun) wrote : Re: [Bug 424655] Re: Pulse audio memory leak | #6 |
Are you using the PPA?
On Oct 11, 2009 1:00 PM, "Jeff Schroeder" <email address hidden>
wrote:
This is a HUGE regression. I left a karmic desktop turned on overnight.
In the morning I was trying to figure out why my computer was so slow.
It turns out that pdflush was writing data to disk (swap) as fast as
possible and was stuck in IO Wait (D state in ps aux). pulseaudio was
taking almost 80% of my 8G of memory. Not cool.
19170 jeff 20 0 12.2g 6.2g 1464 S 0 79.9 14:35.83
/usr/bin/pulseaudio --start
This should be a release blocker.
** Changed in: pulseaudio (Ubuntu)
Status: Incomplete => Confirmed
-- Pulse audio memory leak https:/
received this bug notificati...
Status in “pulseaudio” package in Ubuntu: Confirmed
Bug description:
Binary package hint: pulseaudio Pulse audio routinely uses 2GB+ over the
course of a few hours. D...
Jeff Schroeder (sejeff) wrote : Re: Pulse audio memory leak | #7 |
No I'm not using the PPA. Should I be? It seems like if the ppa fixes the problem that the ppa packages should be put in main asap to get more visibility.
Daniel T Chen (crimsun) wrote : Re: [Bug 424655] Re: Pulse audio memory leak | #8 |
On Sun, Oct 11, 2009 at 3:07 PM, Jeff Schroeder
<email address hidden> wrote:
> No I'm not using the PPA. Should I be? It seems like if the ppa fixes
> the problem that the ppa packages should be put in main asap to get more
> visibility.
Yes, you should be testing it. That's why it's called staging for main. (:
Jeff Schroeder (sejeff) wrote : Re: Pulse audio memory leak | #9 |
Alright I've upgraded to the ppa alsa and pulse packages. If the problem happens again I'll let you know.
Jeff Schroeder (sejeff) wrote : | #10 |
I wrote this hack handy to see if pulse was still leaking memory and thought I'd share:
while true; do
echo -n "$(date +'%m/%d/%Y %H:%M:%S - ')" >> pulse-audio-
ps -o args=,rss= $(pgrep -f 'pulseaudio --start') >> pulse-audio-
sleep 60
done
It seems that the ppa packages have fixed the bug. I'll know for sure tomorrow.
jeff@desktopmon
10/11/2009 12:52:26 - /usr/bin/pulseaudio --start 15164
10/11/2009 12:53:26 - /usr/bin/pulseaudio --start 14728
10/11/2009 12:54:26 - /usr/bin/pulseaudio --start 14960
10/11/2009 12:55:27 - /usr/bin/pulseaudio --start 15076
10/11/2009 12:56:27 - /usr/bin/pulseaudio --start 15228
10/11/2009 12:57:27 - /usr/bin/pulseaudio --start 15012
10/11/2009 12:58:27 - /usr/bin/pulseaudio --start 15244
Artyom (artyom-szasa) wrote : | #11 |
Same here on release of Karmic (AMD64) with pulseaudio 1:0.9.19-0ubuntu4.
After 6 hours pulseaudio eats up 2,5 Gb of RAM:(
Daniel T Chen (crimsun) wrote : Re: [Bug 424655] Re: Pulse audio memory leak | #12 |
"pactl stat" should reveal some information
More than likely there's at least one misbehaved client.
Artyom (artyom-szasa) wrote : Re: Pulse audio memory leak | #13 |
- Pusle audio 1,3Gb Edit (233.5 KiB, image/png)
now my laptop as running for about 5 hours and pulseaudio has already eaten up 1,3 Gb..
"pactl stat" writes next:
"artyom@
Jelenleg lefoglalt blokkok száma: 10, amely összesen 146,6 KiB bájtot jelent.
A futás során összesen lefoglalt blokkok száma: 116516, amely összesen 1,3 GiB bájtot jelent.
Minta-gyorsítótár mérete: 0 B
Felhasználónév: artyom
Számítógépnév: artyom-laptop
Kiszolgálónév: pulseaudio
Kiszolgáló verzió: 0.9.19
Alapértelmezett mintavételi leírás: s16le 2ch 44100Hz
Alapértelmezett csatornaleképzés: front-left,
Alapértelmezett nyelő: alsa_output.
Alapértelmezett forrás: alsa_input.
Süti: d1073605"
Sorry it is in hungarian, but first two lines mean now allocated 10 blocks, 146 KiB, total allocated blocks: 116516 - 1,3 Gb
Zatara214 (zatara214) wrote : | #14 |
This bug is still present in the final stable version of Karmic. Is anyone actually doing anything about this, or are we just supposed to kill the pulse process every 30 minutes until Lucid comes out?
Daniel T Chen (crimsun) wrote : Re: [Bug 424655] Re: Pulse audio memory leak | #15 |
On Fri, Nov 6, 2009 at 9:17 PM, Zatara214 <email address hidden> wrote:
> This bug is still present in the final stable version of Karmic. Is
> anyone actually doing anything about this, or are we just supposed to
> kill the pulse process every 30 minutes until Lucid comes out?
You could, of course, use valgrind to help find the bug, presuming
there's a legitimate one.
David Henningsson (diwic) wrote : Re: Pulse audio memory leak | #16 |
@Artyom: If you run "LANG=C pactl stat" result will be in the native language of the application, which is often preferred.
Artyom (artyom-szasa) wrote : | #17 |
- pulseaudio 1.6 Gb Edit (235.0 KiB, image/png)
Sorry for hungarian shot/info, here are the same things in english:
LANG=C pactl stat:
Currently in use: 45 blocks containing 215.5 KiB bytes total.
Allocated during whole lifetime: 1064585 blocks containing 3.0 GiB bytes total.
Sample cache size: 0 B
User name: artyom
Host Name: artyom-laptop
Server Name: pulseaudio
Server Version: 0.9.19
Default Sample Specification: s16le 2ch 44100Hz
Default Channel Map: front-left,
Default Sink: alsa_output.
Default Source: alsa_input.
Cookie: 59a973d5
gpstar (michael-rajotte) wrote : | #18 |
getting same issue on my laptop. Pulse audio is eating up memory until it slows my system to a halt and locks it up.
Daniel T Chen (crimsun) wrote : Re: [Bug 424655] Re: Pulse audio memory leak | #19 |
Please see https:/
On Nov 9, 2009 7:25 PM, "gpstar" <email address hidden> wrote:
getting same issue on my laptop. Pulse audio is eating up memory until
it slows my system to a halt and locks it up.
-- Pulse audio memory leak https:/
received this bug notificati...
Status in “pulseaudio” package in Ubuntu: Confirmed Bug description:
Binary package hint: pulseaudio Pulse audio routinely uses 2GB+ over the
course of a few hours. D...
gpstar (michael-rajotte) wrote : Re: Pulse audio memory leak | #20 |
gpstar (michael-rajotte) wrote : | #21 |
gpstar (michael-rajotte) wrote : | #22 |
oh forgot to add, here's a screenshot to show it eating up memory.
Andrew Saturn (saturn) wrote : | #23 |
I am getting this exact same problem. if I leave my computer running all night, I often wake up to pulseaudio trying to use 2gb+ of ram...
what can I do to help? there are no clear instructions in here...
Daniel T Chen (crimsun) wrote : Re: [Bug 424655] Re: Pulse audio memory leak | #24 |
On Mon, Nov 9, 2009 at 8:24 PM, Andrew Saturn <email address hidden> wrote:
> I am getting this exact same problem. if I leave my computer running all
> night, I often wake up to pulseaudio trying to use 2gb+ of ram...
>
> what can I do to help? there are no clear instructions in here...
valgrind output would be useful.
Andrew Saturn (saturn) wrote : Re: Pulse audio memory leak | #25 |
what should I type? "valgrind pulseaudio"? never heard of that command...
gpstar (michael-rajotte) wrote : | #26 |
run this in a terminal
echo autospawn = no >> ~/.pulse/
killall pulseaudio
then
sudo apt-get install valgrind
then you can do something like this
valgrind --log-file=
then you can do this to restore pulseaudio settings afterwards
To return your system to a clean state again, edit ~/.pulse/
Andrew Saturn (saturn) wrote : | #27 |
so that one command;
valgrind --log-file=
gave no feedback and continues to run... pulseaudio is also climbing in memory usage...
how long should I let it run? or will it automatically stop?
Andrew Saturn (saturn) wrote : | #28 |
- pulselog.txt Edit (9.9 KiB, text/plain)
it got up to 100mb of ram useage before I killed it. here is the log it put in my home dir...
Andrew Saturn (saturn) wrote : | #29 |
so is that useful?
how do I install the ppa version mentioned above?
gpstar (michael-rajotte) wrote : | #30 |
- pulseverbose2.log Edit (3.7 MiB, text/plain)
here is another updated pulseaudio log file. During this time, i decided to play back a mp3 in rhythmbox. Everything was going fine until i opened up firefox to browse the web then the sound just stopped cutting out. pulseaudio kept on eating up memory, and computer started to lag, cursor lag, etc.
Andrew Saturn (saturn) wrote : | #31 |
same symptoms as gpstar when running firefox
I am using the latest nightly version (Minefield) build# 20091110030934
addons:
Adblock Plus 1.1.1
Download Statusbar 0.9.6.5
Flashblock 1.5.11.2
FxIF 0.3.1
Greasemonkey 0.8.20090123.1
Nightly Tester Tools 2.0.2
Ubuntu Firefox Modifications 0.8
but I DO still get a leaky memory issue even if Firefox isn't opened
gpstar (michael-rajotte) wrote : | #32 |
ya i get the memory leak even with everything closed and just idling. But playing back sound when firefox is open seems to make it want to crash or hang up my system as well. Could be a entire other issue though.
Andrew Saturn (saturn) wrote : | #33 |
up above someone mentioned to use the ~ubuntu-audio-dev PPA version
does this still fix the issue? and if so, how do I use that version?
gpstar (michael-rajotte) wrote : | #34 |
the ppa is here
https:/
i'm using the ppa version, it does not fix the problem yet.
kitov (konstantin-wirz) wrote : | #35 |
Andrew Saturn (saturn) wrote : | #36 |
this is really getting annoying. is there a way to limit the amount of RAM pulseaudio can use?
or maybe just a script to kill it every X minutes...
Tim (tima-s) wrote : | #37 |
tim@tim-laptop:~$ uptime
02:54:58 up 45 min, 2 users, load average: 0.70, 0.60, 0.56
tim@tim-laptop:~$ ps --sort rss -eo rss,cmd
....
222440 /usr/bin/pulseaudio --start
Christian Mertes (cmertes) wrote : | #38 |
- htop screenshot showing the memory usage of PA Edit (71.8 KiB, image/png)
I seem to have a milder version of this. I'll attach an htop screenshot showing pulseaudio to use about 2 gigs overall and 1 gig resident memory after about three and a half days uptime. It's usually half that much after a day I'd say, whether I use audio or not. Perhaps this is a different issue but I've found no other bug report on this so far. Is there an upstream report BTW or is this thought to be caused by Ubuntu-specific patches?
I'll post the PA stats corresponding to the htop output below. I resist having run PA in valgrind for a significant amount of time as this might be required since the leak doesn't seem as large for me as for many others. I'll do it though if required but the other valgrind logs don't seem to have done any good so far so please let me know.
$ pactl stat
Currently in use: 3 blocks containing 158.3 KiB bytes total.
Allocated during whole lifetime: 30817296 blocks containing 1.4 GiB bytes total.
Sample cache size: 0 B
User name: cmertes
Host Name: Inara
Server Name: pulseaudio
Server Version: 0.9.19
Default Sample Specification: s16le 2ch 44100Hz
Default Channel Map: front-left,
Default Sink: alsa_output.
Default Source: alsa_input.
Christian Mertes (cmertes) wrote : | #39 |
Actually, I now did find a similar bug for another distro than Ubuntu: https:/
Parker Phinney (gameguy43) wrote : | #40 |
Proposition: change bug importance to critical. This is my making my machine nearly unusable.
ageeb (adam-baltes) wrote : | #41 |
maybe this will help others?
http://
Parker Phinney (gameguy43) wrote : Re: [Bug 424655] Re: Pulse audio memory leak | #42 |
thanks! for those looking to avoid the clickthrough:
system without package 'udev' has no memory leak.
so a fix is "aptitude remove udev"?
is this an essential package?
ageeb wrote:
> maybe this will help others?
> http://
>
--
D Parker Phinney
madebyparker.com
gpstar (michael-rajotte) wrote : Re: Pulse audio memory leak | #43 |
thanks for the link,
the last post here shows what is going on
http://
package 'udev' (147~-6.1 according to synaptic) makes pulseaudio eat up all the memory. Reverting back to the previous version of udev (146~6.0) fixes the pulseaudio memory problem.
Andrew Saturn (saturn) wrote : | #44 |
so if udev is causing the problem... how can that be fixed? it's dependant... you can't just remove udev
gpstar (michael-rajotte) wrote : | #45 |
revert back to the older version. Version 147~6.0 (typo on my above post on the version #).
in synaptic if you have udev (147~-6.1) installed from karmic-updates, that is what is causing the problem. Select it udev in synaptic and goto "Packages" then "Force Version" and choose the 147~-6
Daniel T Chen (crimsun) wrote : Re: [Bug 424655] Re: Pulse audio memory leak | #46 |
Please verify that reverting to karmic's version of udev resolves this
symptom after a fresh boot. I'm a bit doubtful, but...
gpstar (michael-rajotte) wrote : Re: Pulse audio memory leak | #47 |
Just did a reboot. Everything looks good. PulseAudio is sitting at a stable 1.8MB.
gpstar (michael-rajotte) wrote : | #48 |
I'll also point out. the karmic udev on 64bit systems (dunno about the 32bit version), will not automount usb/card reader/esata with 147.60 udev, 147.61 udev solves the issue, but then you get the pulseaudio memory problem associated with it. So downgrading to 147.60 udev you may loose the possibilty on some systems on automounting external storage devices.
Andrew Saturn (saturn) wrote : | #49 |
just downgraded and not only did that fix the memory leak, but my CPU now sits at 0-5% when inactive (instead of the previous 50%+ all the time)
gpstar; that was ANOTHER annoying bug I got all the time (inability to auto-mount USB)
can someone please fix this? if I was able to program I would do it... it can't be that complicated to find where the problem was created... this bug doesn't seem to be getting any attention even though (in my mind) it seems somewhat of a high-priority... it seems like no one tested the code before applying it.
Martin Pitt (pitti) wrote : | #50 |
One potential explanation: the fd leak made udev completely stop recognizing new hardware on a lot of systems (which was fixed in -6.1). So the fix might uncover another leak by adding/probing sound hw which previously didn't appear in udev (since it simply stopped working because of exceeding the 1024 fd limit)
For those of you who can reproduce this pulseaudio memleak (I can't), it would be interesting to compare an udev dump with both versions. Please install 147~6, do
udevadm info --export-db > /tmp/udev.log
attach /tmp/udev.log here. Then upgrade to 147~-6.1, reboot, do the command again, and attach /tmp/udev.log again.
Thanks!
Changed in udev (Ubuntu): | |
status: | New → Incomplete |
importance: | Undecided → High |
Changed in pulseaudio (Ubuntu): | |
importance: | Undecided → High |
gpstar (michael-rajotte) wrote : | #51 |
gpstar (michael-rajotte) wrote : | #52 |
- udev-147~-6.1.log Edit (103.9 KiB, text/plain)
here's the udev-147~-6.1 log
(typo again on my previous post, i should have said udev-147~-6.0 instead of 146~-6.0)
ageeb (adam-baltes) wrote : | #53 |
147~-6 == http://
147~-6.1 == http://
easiest way for me to host...
Martin Pitt (pitti) wrote : | #54 |
Thanks. So for ageeb the difference is basically nothing (just some noise due to different enumeration order, which is expected to be pretty random). For gpstar the diff is that with 6.1 you get a proper identification of your hard disk (which is one incarnation of what 6.1 was supposed to fix).
Neither affect the detection of sound devices, though.
To rule out/check if it is an issue with a changed tool chain, would anyone be up to trying to rebuild the karmic final package and see whether or not the leak happens with that?
sudo apt-get build-dep udev
apt-get source -b udev=147~-6
sudo dpkg -i *.deb
then reboot, and check whether you get the leak.
Thanks!
ageeb (adam-baltes) wrote : | #55 |
>sudo apt-get build-dep udev
>apt-get source -b udev=147~-6
>sudo dpkg -i *.deb
>then reboot, and check whether you get the leak.
my pulseaudio process is stable after applying those intstructions...
gpstar (michael-rajotte) wrote : | #56 |
pulseaudio process stable here on my end after doing the above instructions.
Martin Pitt (pitti) wrote : | #57 |
Thanks. So this rules out a toolchain issue.
The first change which was done to fix bug 463347 was
http://
This does not change any external API, and just fixes a demonstrated major fd leak. I am fairly sure that this was not the culprit.
The second change was
http://
which repairs inotify handling. It also does not change external API, but by making it actually work again on a lot of machines it seems like the kind of bug which might trigger pulseaudio bugs which were previously not visible.
In the built tree that you have, can you please open udev/udev-node.c in gedit and apply the change in http://
dpkg-buildpackage -us -uc -b -nc
inside the udev-147~ directory, and then install ../*.deb again? I expect that this will still keep pulseaudio happy, but I'd like to make 100% sure.
gpstar (michael-rajotte) wrote : | #58 |
ok, I made the closedir(dir); changes to udev-node.c, rebuilt the packages and installed them and rebooted.
Pulseaudio is now eating up my memory.
ageeb (adam-baltes) wrote : | #59 |
I'm only a week or two into linux :(
i'm with you until this part: and then install ../*.deb again?
I'm not sure which commands actually execute that...
all this or a certain part?
sudo apt-get build-dep udev
>apt-get source -b udev=147~-6
>sudo dpkg -i *.deb
sorry you have to hold my hands...
Changed in udev (Ubuntu): | |
status: | Incomplete → Invalid |
Changed in udev (Ubuntu Karmic): | |
status: | New → Invalid |
Martin Pitt (pitti) wrote : | #60 |
Thanks for confirming. TBH this is really a miracle to me, since merely closing an internal fd in udev should not have _any_ impact on pulseaudio, except if pulseaudio was actually relying on udev not working. I don't think we want to break udev for half of the systems again, so we need to track down the actual pulse leak.
Please try to restart pulse in the foreground with debugging mode with this:
pulseaudio -k; pulseaudio -vvv 2>&1 | tee /tmp/pulse.log
If you see this in the second last line:
E: pid.c: Daemon already running.
then please just keep retrying until it works and it says "I: main.c: Daemon startup complete." in the bottom.
Does this reproduce the leak as well? Normally it stops after "daemon startup complete" and there's only occasional output. I hope/suspect that you will get a wild endless loop of output; if you do, press Control-C after a couple of seconds. If it stops outputing text, wait 20 seconds and press Control-C then. Please attach /tmp/pulse.log afterwards.
If you can reproduce the leak, but don't see looping output, please try to obtain a valgrind log as described on
https:/
Thanks!
Changed in pulseaudio (Ubuntu): | |
status: | Confirmed → Incomplete |
Martin Pitt (pitti) wrote : | #61 |
Ah, nevermind. In fact this bug already has valgrind and pulseaudio -v logs attached, and http://
Also, the reporting of this bug predates the udev SRU by two months.
Martin Pitt (pitti) wrote : Re: [Bug 424655] Re: Pulse audio memory leak | #62 |
Hello ageeb,
don't worry about this too much, it was already confirmed.
ageeb [2009-11-19 19:45 -0000]:
> i'm with you until this part: and then install ../*.deb again?
Sorry, that was meant to be "sudo dpkg -i ../*.deb".
But as I said, I don't think you actually need to do it now.
Martin
--
Martin Pitt | http://
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
Tim (tima-s) wrote : Re: Pulse audio memory leak | #63 |
I 've been experimenting with different udev versions:
1) 147-6 , which has problem with mounting removable media. but pulseaudio seem to be not leaking memory
2) 147-6.1 (which differs from -6 by this commit http://
It fixes mounting media but pulseaudio leaks memory badly
3) vanilla udev 147 , which behaves like 147-2
ubuntu karmic amd64
Meya: 3) vanilla udev 147 , which behaves like 147-6.1
j.Couture (witchking117z) wrote : | #64 |
is there any fix in the near future for this, reverting udev makes it so i cant mount anything, and that seem to be the only fix so far.
Ergün KOÇAK (ergun) wrote : | #65 |
in process manager pulsaaudio is using up to 2 GB sometimes more :)
pls guys in 9.04 everything was fine ...
Thanks for your instructions Martin. I found the previous version of udev fixed the memory leak, but followed your rebuild instructions in order to get the benefit of the USB fix: http://
Testing now - but looks good so far. The pulseaudio process now sits at 6.6MB (resident) and 260MB (virtual).
NOTE: this is contrary to what gpstar reported in comment 58.
Thanks again - this was causing regular headaches for me (despite the fact we haven't yet got to the root cause).
j.Couture (witchking117z) wrote : | #67 |
I tried the fix with udev and just like gpstar pusleaudio has started leaking again once I do the fix to re enable usb mounting.
Martin Pitt (pitti) wrote : | #68 |
Can anyone please produce a valgrind log (https:/
Changed in pulseaudio (Ubuntu): | |
assignee: | nobody → Luke Yelavich (themuso) |
Unfortunately pulseaudio started leaking again today. I've backed out the http://
Apologies gpstar - I think you are correct; only the vanilla 147~-6 cures the leak.
ageeb (adam-baltes) wrote : | #70 |
does this help?
Mark A. Hershberger (hexmode) wrote : | #71 |
- pulse audio output Edit (4.8 KiB, text/plain)
I suspect udev is not the only source of the leak. I removed pulseaudio-
Mark A. Hershberger (hexmode) wrote : | #72 |
gpstar (michael-rajotte) wrote : | #73 |
just to note, for those you who are like me and reverted back to Version 147~6.0 of udev to stop the memory leaks, you can get your hot swapping of external drives/memory sticks, etc working by opening up a terminal and typing
sudo stop udev
sudo start udev
then your external drives will get will pop up as normal. You'll have to do this every time you reboot your system though.
Mark A. Hershberger (hexmode) wrote : | #74 |
ok, so it looks like I was wrong. Downgraded udev and the memory leak disappeared.
Martin Pitt (pitti) wrote : | #75 |
Hm, looks like none of those valgrind logs catch memory leaks. I don't know valgrind too well, but I think you need to run it in "massif" mode, which is for leaks (unlike the standard mode which catches allocation/access errors).
http://
gpstar (michael-rajotte) wrote : | #76 |
- pulselog2.txt Edit (9.6 KiB, text/plain)
here you go, i ran it as indicated in the link you sent about massif mode.
Dávid Vastag (d-vastag) wrote : | #77 |
Pulseaudio stopped leaking my memory today. It stays at ~1.6 MiB. The only thing that I did was install the usual updates on my system.
vaughn (vaughngrisham) wrote : | #78 |
I installed Karmic yesterday and have installed all available updates. Pulseaudio was using over 300mb of memory a few minutes ago. I issued the command 'pulseaudio -k' and memory usage dropped back down under 2mb. After 10 minutes however, it's crept back up to over 14 mb and is still climbing.
Daniel T Chen (crimsun) wrote : Re: [Bug 424655] Re: Pulse audio memory leak | #79 |
Are you folks seeing these leaks with apps that open lots of
short-lived connections, e.g., lots of system sounds?
ageeb (adam-baltes) wrote : Re: Pulse audio memory leak | #80 |
for other readers, i had around 40MB of updates and installed all updates minus udev, and then rebooted to find no leak (no suprise). Installed udev -~6.1 again and rebooted and started leaking again. Forced version back -~6 and stable.
gpstar (michael-rajotte) wrote : | #81 |
i have system sounds turned off, and it'll leak when idling as soon as the system is first booted up.
vaughn (vaughngrisham) wrote : | #82 |
Martin Pitt's workaround above works nicely. When this is solved and a fix is released, will UDEV upgrade or will it stick to the downgraded version?
Martin Pitt (pitti) wrote : Re: [Bug 424655] Re: Pulse audio memory leak | #83 |
vaughn [2009-12-07 17:49 -0000]:
> Martin Pitt's workaround above works nicely. When this is solved and a
> fix is released, will UDEV upgrade or will it stick to the downgraded
> version?
Well, a memleak in pulse can't really be fixed in udev, I'm afraid. I
don't even understand yet why udev triggers it.
vaughn (vaughngrisham) wrote : Re: Pulse audio memory leak | #84 |
Martin,
Well, you're right. It's not an appropriate workaround after all. My USB ports wouldn't work with UDEV downgraded. I'm back to square one and a major memory leak.
I sure hope this gets resolved quickly.
Vaughn
Daniel T Chen (crimsun) wrote : Re: [Bug 424655] Re: Pulse audio memory leak | #85 |
Please export PULSE_MEMPOOL_
shell uses), logout and login again.
vaughn (vaughngrisham) wrote : Re: Pulse audio memory leak | #86 |
Daniel,
I just tried inserting that into .bashrc. I rebooted, but the problem persists. Does your line need to go in a specific location in the bashrc file?
Thanks,
Vaughn
Daniel T Chen (crimsun) wrote : Re: [Bug 424655] Re: Pulse audio memory leak | #87 |
Just:
export PULSE_MEMPOOL_
vaughn (vaughngrisham) wrote : Re: Pulse audio memory leak | #88 |
Daniel T Chen (crimsun) wrote : Re: [Bug 424655] Re: Pulse audio memory leak | #89 |
Yes, that's correct. So we've eliminated the mempool as a possible culprit.
Maxxer (lorenzo-milesi) wrote : Re: Pulse audio memory leak | #90 |
if can matter, I run Karmic on an Asus A6K with no problems.
while I run into this bug on an Fujitsu Siemens Amilo SI3655, equiped with the following card:
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
both amd64.
Daniel T Chen (crimsun) wrote : Re: [Bug 424655] Re: Pulse audio memory leak | #91 |
@Maxxer
It's the controller and codec (not lspci) that matter; see
/proc/asound/
Trev Peterson (trev-advanced-reality) wrote : Re: Pulse audio memory leak | #92 |
I also had this problem (2+Gig mem usage within a few hours and about 30% higher baseline proc usage). Reverting to udev 147~6.0 seems to have corrected the problem.
Daniel T Chen (crimsun) wrote : Re: [Bug 424655] Re: Pulse audio memory leak | #93 |
Could everyone please test using module-detect instead of
module-udev-detect? You'd need to comment out the appropriate
if/fi/else in /etc/pulse/
gpstar (michael-rajotte) wrote : Re: Pulse audio memory leak | #94 |
i commented out the module-udev-detect loading so module-detect is used instead.
The pulseaudio memory leak is now gone. However the higher than normal cpu idle usages is still there. There are a bunch of udevd processes in the system monitor (76+ of them)
Maxxer (lorenzo-milesi) wrote : | #95 |
> The pulseaudio memory leak is now gone. However the higher than
> normal cpu idle usages is still there. There are a bunch of udevd processes
> in the system monitor (76+ of them)
same here. leak seems to be gone, memory stays low, but cpu still a bit high when idle
James (jbertelson) wrote : | #96 |
Also confirmed -- commenting out the if/else surrounding module-udev-detect keeps pulseaudio from leaking memory. I don't notice abnormal CPU usage though, before or after the change. (core 2 T7700)
Changed in pulseaudio (Ubuntu): | |
status: | Incomplete → Triaged |
summary: |
- Pulse audio memory leak + using module-udev-detect leaks memory |
Parker Phinney (gameguy43) wrote : Re: [Bug 424655] Re: Pulse audio memory leak | #97 |
fwiw, i just did a fresh reformat and install of karmic on my 64-bit system
(system76 darter ultra). i had previously been running karmic after
upgrading from intrepid (upgraded from jaunty, i think), and i had the
pulseaudio memory leak. after a fresh install, seems to be gone (thus
far). hope this helps.
On Tue, Dec 15, 2009 at 4:24 PM, Daniel T Chen <email address hidden>wrote:
> ** Changed in: pulseaudio (Ubuntu)
> Status: Incomplete => Triaged
>
> ** Summary changed:
>
> - Pulse audio memory leak
> + using module-udev-detect leaks memory
>
> --
> using module-udev-detect leaks memory
> https:/
> You received this bug notification because you are a direct subscriber
> of the bug.
>
vaughn (vaughngrisham) wrote : | #98 |
A fresh install did nothing to help me. I'm running a System76 Pangolin and had this problem with a fresh install.
Parker Phinney (gameguy43) wrote : | #99 |
false alarm. the leak is back. i swear it was stable for at least a bit
tho. maybe it took one restart or something to provoke the leak? but yeah,
its definitely back now.
how are you guys coping in the mean time? just running pulseaudio -k every
20 minutes?
On Wed, Dec 16, 2009 at 12:22 AM, Parker <email address hidden> wrote:
> fwiw, i just did a fresh reformat and install of karmic on my 64-bit system
> (system76 darter ultra). i had previously been running karmic after
> upgrading from intrepid (upgraded from jaunty, i think), and i had the
> pulseaudio memory leak. after a fresh install, seems to be gone (thus
> far). hope this helps.
>
>
> On Tue, Dec 15, 2009 at 4:24 PM, Daniel T Chen <email address hidden>wrote:
>
>> ** Changed in: pulseaudio (Ubuntu)
>> Status: Incomplete => Triaged
>>
>> ** Summary changed:
>>
>> - Pulse audio memory leak
>> + using module-udev-detect leaks memory
>>
>> --
>> using module-udev-detect leaks memory
>> https:/
>> You received this bug notification because you are a direct subscriber
>> of the bug.
>>
>
>
>
> --
> http://
>
gpstar (michael-rajotte) wrote : | #100 |
revert back to the old version of udev to stop the leak in the meantime. I mentioned it in post #73 here
https:/
Andrew Saturn (saturn) wrote : | #101 |
I always reverted back to older udev, which made plugging in USB devices not work unless you stop and start udev, but "fixed" the leak...
HOWEVER...
I did a FRESH install of 9.10 on my laptop and the bug is (apparently) gone? no idea why that would matter, other than before it was an upgrade from 9.04.
only other difference is I'm using Firefox 3.5.5 rather than the Minefield nightly.
gpstar (michael-rajotte) wrote : | #102 |
a fresh install of karmic wont have the memory leak because it is using the older udev. updating the udev should produce it on certain system. I know it does on mine with a fresh install of 64bit karmic with my intel based hardware on my laptop after updating udev.
Parker Phinney (gameguy43) wrote : Re: [Bug 424655] Re: using module-udev-detect leaks memory | #103 |
what are our action tasks here? have we gotten the attention of the udev
devels?
On Wed, Dec 16, 2009 at 5:03 PM, gpstar <email address hidden> wrote:
> a fresh install of karmic wont have the memory leak because it is using
> the older udev. updating the udev should produce it on certain system. I
> know it does on mine with a fresh install of 64bit karmic with my intel
> based hardware on my laptop after updating udev.
>
> --
> using module-udev-detect leaks memory
> https:/
> You received this bug notification because you are a direct subscriber
> of the bug.
>
Scott James Remnant (Canonical) (canonical-scott) wrote : | #104 |
On Thu, 2009-12-17 at 01:35 +0000, Parker Phinney wrote:
> what are our action tasks here? have we gotten the attention of the udev
> devels?
>
There's no evidence of any udev issue; module-udev-detect is still
PulseAudio code.
Scott
--
Scott James Remnant
<email address hidden>
Parker Phinney (gameguy43) wrote : | #105 |
Ah, I see. I misunderstood then.
On Thu, Dec 17, 2009 at 6:32 AM, Scott James Remnant <email address hidden>wrote:
> On Thu, 2009-12-17 at 01:35 +0000, Parker Phinney wrote:
>
> > what are our action tasks here? have we gotten the attention of the udev
> > devels?
> >
> There's no evidence of any udev issue; module-udev-detect is still
> PulseAudio code.
>
> Scott
> --
> Scott James Remnant
> <email address hidden>
>
> --
> using module-udev-detect leaks memory
> https:/
> You received this bug notification because you are a direct subscriber
> of the bug.
>
ZAP (michaelzap) wrote : | #106 |
What's the ETA for getting this bug resolved? I've been running killall pulseaudio constantly for nearly two months now. Is there a patch that we can test out?
gpstar (michael-rajotte) wrote : | #107 |
ZAP, revert back to the previous version of udev to stop the leak until a fix comes out. I mentioned it in post #73 here.
https:/
soundconjurer (palemastervolrath) wrote : | #108 |
The issue with pulseaudio seems to become clear if you look at its memory maps. It keeps pulling the same files into memory over and over and over again.
...
/usr/lib/
I wonder if what udev is doing is auto-remounting the sound card forcing pulseaudio to reload the same files into memory again and again.
I'm not expert, but I am pretty sure the clues are around there.
soundconjurer (palemastervolrath) wrote : | #109 |
Ok, I know my last post was redundant and I reread the forum.
I found a little catch in the memory leak.
Opening up the system monitor and I killed pulseaudio.
Then I stopped it and closed all my programs. I returned to it after a while and turned it back on and it is no longer climbing in memory. It's sustaining the 3.5 mb where I left it after turning it off.
Strange strange.
WQ (irrigate99) wrote : | #110 |
Oh, but my puleseaudio version is 1:0.9.21-
I came to use the ubuntu OS just about a few weeks ago and I don't know much about it.
Is there anything I can do to solve this problem?
I wish you would understand my mail because my English is not so good!
Thank for your mails and answers!!
在2009-12-
>The?issue?
>memory?
>and?over?again.
>
>...
>/usr/lib/
>
>I?wonder?
>pulseaudio?
>
>I'm?not?
>
>--?
>using?
>https:/
>You?received?
>of?a?duplicate
>
>Status?
>Status?
>Status?
>Status?
>
>Bug?description:
>Binary?
>
>Pulse?
>
>
>Description: Ubuntu?
>Release: 9.10
>
>pulseaudio:
>??Installed:
>??Candidate:
>??Version?table:
>?***?1:
>????????500?http://
>??????
>
>
>I?expect?
>
>After?
>
>To?unsubscribe
>https:/
WQ (irrigate99) wrote : | #111 |
I renamed the "module-
But my system can't play any sound now.
thanks.
在2009-12-
>Ok,?I?
>
>I?found?
>
>Opening?
>
>Then?I?
>while?
>sustaining?
>
>Strange?strange.
>
>--?
>using?
>https:/
>You?received?
>of?a?duplicate
>
>Status?
>Status?
>Status?
>Status?
>
>Bug?description:
>Binary?
>
>Pulse?
>
>
>Description: Ubuntu?
>Release: 9.10
>
>pulseaudio:
>??Installed:
>??Candidate:
>??Version?table:
>?***?1:
>????????500?http://
>??????
>
>
>I?expect?
>
>After?
>
>To?unsubscribe
>https:/
valindil89 (jsduncan98) wrote : | #112 |
in response to post #109 this little tweak of stopping and starting the pulseaudio does stop the memory leak, but it does not drop the Proc usage from around 50% usage all of the time... ETA on possible fix? its almost the new year....
Daniel T Chen (crimsun) wrote : | #113 |
I don't have free time until next year to look at this bug, but if an
enterprising user wants to start debugging, look in
src/modules/
gpstar (michael-rajotte) wrote : | #114 |
valindil89
read post #73
https:/
you have to revert back to the older udev for now to stop the leak and extra cpu usage.
valindil89 (jsduncan98) wrote : | #115 |
gpstar,
I have already done that, Reverand_of_War proposed that alternate option which would be fine for the select few people that were not having the CPU issue because it does fix the leak until you restart the computer. But for the CPU issue being there also it is best to revert to the older udev like in post #73 instead of just stopping and starting audioPulse.
vaughn (vaughngrisham) wrote : | #116 |
Can anyone comment on whether this bug is present in Lucid Lynx. I know it's still in Alpha, but I'm hoping for a light at the end of the tunnel.
sektor (sektor-1) wrote : | #117 |
Bug https:/
Daniel T Chen (crimsun) wrote : | #118 |
Summary: Yes, the bug is still present in Lucid. I have a candidate for Karmic that's currently building in my PPA (https:/
Changed in pulseaudio (Ubuntu Karmic): | |
assignee: | nobody → Daniel T Chen (crimsun) |
importance: | Undecided → High |
status: | New → In Progress |
Daniel T Chen (crimsun) wrote : | #119 |
Also, please use:
udevadm monitor --property > ~/udevadm-
and attach the log here. Thanks!
stfoull (stfouill) wrote : | #120 |
Hello, I had the same problem with pulseaudio, and I have tried adding your PPA. And it seems to work! Pulseaudio only uses 1.7Mio and the computer is on for a couple of hours now. Thanks a lot!
gpstar (michael-rajotte) wrote : | #121 |
I'm having problems trying to install the Pulseaudio package from your ppa.
I get these errors when i remove pulseaudio from my system and try to install the one from your ppa
"pulseaudio:
Depends: libpulse0 (=1:0.9.
Depends: pulseaudio-
Recommends: pulseaudio-
Recommends: pulseaudio-
when I try to force version of the pulseaudio from your ppa i get this
"To be removed
rtkit"
then when i click apply i get
"E: Unable to correct problems, you have held broken packages.
E: Unable to lock the download directory"
Daniel T Chen (crimsun) wrote : | #122 |
On Wed, Jan 13, 2010 at 1:08 PM, gpstar wrote:
> "pulseaudio:
> Depends: libpulse0 (=1:0.9.
sudo dpkg -P --force-depends libpulse0 && sudo apt-get -f install
gpstar (michael-rajotte) wrote : | #123 |
doing the "sudo dpkg -P --force-depends libpulse0 && sudo apt-get -f install" wants to remove some gnome stuff
The following packages will be REMOVED:
gnome-applets gnome-control-
indicator-
pavucontrol pavumeter pulseaudio-utils
The following NEW packages will be installed:
libpulse0
Daniel T Chen (crimsun) wrote : | #124 |
You need to remove all the pulseaudio packages already installed
forcibly (--force-depends), then reinstall the version from the ppa.
gpstar (michael-rajotte) wrote : | #125 |
- udevadm-monitor.log Edit (4.8 MiB, text/plain)
Ok managed to get pulseaudio switched over. updated udev to the latest version (147~6.1) and attached is the udevadm-monitor.log
the memory leak is now gone, however there are still many udev processes which are eating up CPU usage still.
sudo stop udev
to stop udev will bring my CPU usage back down
Launchpad Janitor (janitor) wrote : | #126 |
This bug was fixed in the package pulseaudio - 1:0.9.22~
---------------
pulseaudio (1:0.9.
* New snapshot based on stable-queue git branch (testing requested
specifically by upstream)
- LP: #164745, #173212, #201391, #204536, #207796, #210016, #221038,
- LP: #226342, #230408, #236423, #237443, #250059, #269585, #274304,
- LP: #274577, #275474, #277532, #277566, #277932, #278025, #280534,
- LP: #283049, #286816, #287036, #292732, #298011, #298301, #300290,
- LP: #302038, #311497, #311853, #324062, #339448, #344057, #348979,
- LP: #350829, #356206, #367379, #367544, #369822, #371897, #374846,
- LP: #375570, #381801, #399515, #402950, #403786, #408169, #409322,
- LP: #409723, #410326, #410446, #417695, #417976, #419271, #421072,
- LP: #422774, #423979, #424655, #425028, #427016, #431072, #432660,
- LP: #437640, #437996, #442191, #443306, #443389, #446719, #449762,
- LP: #455417, #461532, #464652, #483191, #497537, #503780
* debian/patches/:
+ add: 0099-change-
upstream 0.9.21 for shlibs and LIBPULSE_
- drop: 0004-set-
+ refresh: 0001-change-
-- Daniel T Chen <email address hidden> Thu, 14 Jan 2010 20:33:05 -0500
Changed in pulseaudio (Ubuntu): | |
status: | Triaged → Fix Released |
Andrew McWhirter (andrew-mcwhirter) wrote : | #127 |
Everything is working good now! I have the latest version of udev running (147-6.1 ) with pulseaudio from the crimson ppa. Pulseaudio is not draining memory, and my usb keys are being mounted without restarting udev. It's been running solid for a good 12 hours.
1) Add ppa:crimsun/ppa to your software resources under the Administration menu in the Other Software tab.
2) Run in terminal: sudo dpkg -P --force-depends libpulse0 && sudo apt-get -f install
3) Update your udev back to version 147-6.1 (if you reverted to the previous version to fix this bug) either in Synaptic or from terminal: sudo apt-get install udev which should install the latest version.
Daniel T Chen (crimsun) wrote : | #128 |
description: | updated |
Martin Pitt (pitti) wrote : Please test proposed package | #129 |
Accepted pulseaudio into karmic-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https:/
Changed in pulseaudio (Ubuntu Karmic): | |
status: | In Progress → Fix Committed |
tags: | added: verification-needed |
sektor (sektor-1) wrote : | #130 |
I confirm that the proposed pulseaudio package is not leaking here.
tags: |
added: verification-done removed: verification-needed |
jonee316 (jonee316) wrote : | #131 |
i am sorry but how does one fix this in 9.10? why is it called a "minimal fix"?
don't you plan to provide a proper update to remedy this bug which has been around at the start- at least two months old?
Daniel T Chen (crimsun) wrote : Re: [Bug 424655] Re: using module-udev-detect leaks memory | #132 |
jonee316, clearly you haven't read Martin Pitt's instructions above
for enabling the karmic-proposed repository to test the provided fix.
It's called a minimal fix because the actual changes to the source
code should be as noninvasive as possible.
Launchpad Janitor (janitor) wrote : | #133 |
This bug was fixed in the package pulseaudio - 1:0.9.19-0ubuntu4.1
---------------
pulseaudio (1:0.9.
* debian/
+ Add from upstream stable-queue branch; we should free
the udev context for unused devices. Failing to do so
causes some nasty memory leaks.
-- Daniel T Chen <email address hidden> Tue, 12 Jan 2010 17:41:27 -0500
Changed in pulseaudio (Ubuntu Karmic): | |
status: | Fix Committed → Fix Released |
Changed in pulseaudio (Ubuntu): | |
status: | Fix Released → Fix Committed |
status: | Fix Committed → In Progress |
status: | In Progress → Fix Released |
Tom Pringle (thomas-b-pringle) wrote : | #134 |
It sounds like the fix is supposed to be released yet I just ran into something that seems very similar to this bug on a fully updated version of karmic.
Daniel T Chen (crimsun) wrote : | #135 |
Tom, please file a separate bug.
On Mon, Apr 19, 2010 at 4:13 PM, Tom Pringle <email address hidden> wrote:
> It sounds like the fix is supposed to be released yet I just ran into
> something that seems very similar to this bug on a fully updated version
> of karmic.
Changed in pulseaudio (Fedora): | |
importance: | Unknown → Medium |
status: | Unknown → Fix Released |
You need to use the ~ubuntu-audio-dev PPA version until it enters main (likely next week, since it's the weekend).