Re: pipewire memory usage

2021-12-14 Thread Dominique Martinet
Carlos O'Donell wrote on Tue, Dec 14, 2021 at 11:07:42AM -0500: > > So I guess we're just chasing after artifacts from the allocator, and > > it'll be hard to tell which it is when I happen to see pipewire-pulse > > with high memory later on... > > It can be difficult to tell the difference

Re: pipewire memory usage

2021-12-14 Thread Carlos O'Donell
On 12/14/21 07:08, Dominique Martinet wrote: > I've double-checked with traces in load_spa_handle/unref_handle and it > is all free()d as soon as the client disconnects, so there's no reason > the memory would still be used... And I think we're just looking at some > malloc optimisation not

Re: pipewire memory usage

2021-12-14 Thread Dominique Martinet
Wim Taymans wrote on Tue, Dec 14, 2021 at 09:09:30AM +0100: > I can get it as high as that too but then it stays there and doesn't really > grow anymore so it does not seem like > it's leaking. Maybe it's the way things are done, there is a lot of ldopen > and memfd/mmap. Right, I've had a look

Re: pipewire memory usage

2021-12-14 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Dec 14, 2021 at 09:09:30AM +0100, Wim Taymans wrote: > I can get it as high as that too but then it stays there and doesn't really > grow anymore so it does not seem like > it's leaking. Maybe it's the way things are done, there is a lot of ldopen > and memfd/mmap. This doesn't sound

Re: pipewire memory usage

2021-12-14 Thread Wim Taymans
I can get it as high as that too but then it stays there and doesn't really grow anymore so it does not seem like it's leaking. Maybe it's the way things are done, there is a lot of ldopen and memfd/mmap. Wim On Mon, Dec 13, 2021 at 11:42 PM Dominique Martinet wrote: > Wim Taymans wrote on

Re: pipewire memory usage

2021-12-13 Thread Dominique Martinet
Wim Taymans wrote on Mon, Dec 13, 2021 at 09:22:42AM +0100: > There was a leak in 0.3.40 that could explain this, see > https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/1840 > > Upcoming 0.3.41 will have this fixed. At least I can't reproduce this > anymore with the test you posted

Re: pipewire memory usage

2021-12-13 Thread Wim Taymans
There was a leak in 0.3.40 that could explain this, see https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/1840 Upcoming 0.3.41 will have this fixed. At least I can't reproduce this anymore with the test you posted below. Wim On Sun, Dec 12, 2021 at 12:49 PM Dominique Martinet wrote: >

Re: pipewire memory usage

2021-12-12 Thread Dominique Martinet
Fabio Valentini wrote on Sun, Dec 12, 2021 at 12:25:11PM +0100: > > on my laptop, /usr/bin/pipewire uses 56M RSS, 5M SHR, > > but/usr/bin/pipewire-pulse uses 347M RSS, 4M SHR. > > 56M is okeyish, but 347M seems a lot. I think firefox is going > > through pipewire-pulse, so that interface might

Re: pipewire memory usage

2021-12-12 Thread Zbigniew Jędrzejewski-Szmek
On Sun, Dec 12, 2021 at 12:25:11PM +0100, Fabio Valentini wrote: > On Sat, Dec 11, 2021 at 6:46 PM Zbigniew Jędrzejewski-Szmek > wrote: > > > > Hi, > > > > on my laptop, /usr/bin/pipewire uses 56M RSS, 5M SHR, > > but/usr/bin/pipewire-pulse uses 347M RSS, 4M SHR. > > 56M is okeyish, but 347M

Re: pipewire memory usage

2021-12-12 Thread Fabio Valentini
On Sat, Dec 11, 2021 at 6:46 PM Zbigniew Jędrzejewski-Szmek wrote: > > Hi, > > on my laptop, /usr/bin/pipewire uses 56M RSS, 5M SHR, > but/usr/bin/pipewire-pulse uses 347M RSS, 4M SHR. > 56M is okeyish, but 347M seems a lot. I think firefox is going > through pipewire-pulse, so that interface

pipewire memory usage

2021-12-11 Thread Zbigniew Jędrzejewski-Szmek
Hi, on my laptop, /usr/bin/pipewire uses 56M RSS, 5M SHR, but/usr/bin/pipewire-pulse uses 347M RSS, 4M SHR. 56M is okeyish, but 347M seems a lot. I think firefox is going through pipewire-pulse, so that interface might be getting more use than native pipewire. But what are the expected values