Bug 569347
| Summary: | Pulseaudio uses 380 mb ram in /dev/shm | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | TorkildJ <aktie2> |
| Component: | pulseaudio | Assignee: | Lennart Poettering <lpoetter> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 12 | CC: | lkundrak, lpoetter |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-03-01 12:40:06 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
TorkildJ
2010-03-01 11:25:21 UTC
Please note that anonymous memory mapped is not necessarily memory actually used. Okay i was not aware of this. Is there any easy way to actually find if the pulseaudio client is actually using the 2x64mb it has allocated in /dev/shm ? And even if the memory is not actually used it prevents other programs from allocating memory in /dev/shm (even if its anonymous memory). Maybe its enough to change the following parameter in pulseaudio configuration: shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB to something like 5/10 mb . (of course depending on the actual pulseaudio usage of these files) (In reply to comment #2) > Is there any easy way to actually find if the > pulseaudio client is actually using the 2x64mb it has allocated in /dev/shm ? No idea. In file system it looks like the files have holes, which is what I suspect to be unallocated memory: [lkundrak@trurl bear]$ du -sh /dev/shm/* 12K /dev/shm/pulse-shm-3202944171 200K /dev/shm/pulse-shm-3567843226 12K /dev/shm/pulse-shm-607205414 76K /dev/shm/pulse-shm-73718790 [lkundrak@trurl bear]$ du --apparent-size -sh /dev/shm/* 65M /dev/shm/pulse-shm-3202944171 65M /dev/shm/pulse-shm-3567843226 65M /dev/shm/pulse-shm-607205414 65M /dev/shm/pulse-shm-73718790 [lkundrak@trurl bear]$ Yes, Lubomir is right. Those file sizes only reflect allocated address space, not actual memory. Use "du" to find out how much RAM this really uses. I agree that this problem might not be a serious one. But for machines with low memory (and therefore less available memory in /dev/shm) there is a risk that pulseaudio will quickly allocate all available memory and make it impossible for other programs to use /dev/shm. It seems like pulseaudio uses 200kb/64mb, which might indicate that its a good idea to change the default configuration to limit pulseaudios shm use to 10mb per instance.. 10x3=30mb insteadt of 3x64=192mb allocated memory in /dev/shm. And also, why does pulseaudio client allocate 2x64 mb memory in /dev/shm despite the pulseaudio and alsa-plugin-pulseaudio package being uninstalled?! |