Bug 105779 - 80% (512MB) of gnome-shell's memory mappings at start-up are due to PulseAudio
Summary: 80% (512MB) of gnome-shell's memory mappings at start-up are due to PulseAudio
Status: RESOLVED MOVED
Alias: None
Product: PulseAudio
Classification: Unclassified
Component: core (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: pulseaudio-bugs
QA Contact: pulseaudio-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-28 07:24 UTC by Daniel van Vugt
Modified: 2018-07-30 09:41 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
gnome-shell-all-mmaps-at-startup.pdf (21.33 KB, application/pdf)
2018-03-28 07:24 UTC, Daniel van Vugt
Details

Description Daniel van Vugt 2018-03-28 07:24:17 UTC
Created attachment 138392 [details]
gnome-shell-all-mmaps-at-startup.pdf

80% (512MB) of gnome-shell's memory mappings at start-up are due to PulseAudio. This seems excessive.

Memory profile from Google heap profiler attached.

Although this may not be a bug. It might just be reserved address space with very little physical memory impact...?
Comment 1 Daniel van Vugt 2018-03-28 07:36:07 UTC
Looks like maybe gnome-shell's use of libcanberra might be one of the triggers.
Comment 2 Tanu Kaskinen 2018-03-28 16:07:45 UTC
Each "mempool" in pulseaudio is 64 MB by default, and there's one mempool per client. Maybe gnome-shell has multiple connections to pulseaudio? 8 connections sounds excessive, though... Maybe the server's own mempool is visible in the client memory mapping too, so perhaps two mempools per connection are visible in the client memory map. 4 connections sounds still a bit much, though.

The mempools should indeed not have full "physical" impact unless they're actually fully used.

What if you set "shm-size-bytes = 33554432" (i.e. 32 MB) in /etc/pulse/client.conf and /etc/pulse/daemon.conf and reboot? Does the gnome-shell memory usage go down by 256 MB?
Comment 3 GitLab Migration User 2018-07-30 09:41:07 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/92.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.