[pulseaudio-discuss] High CPU Usage in System Mode

jtharkey jtharkey at protonmail.com
Tue Jul 7 21:52:09 UTC 2020


I understand that it's not safe, but does commenting it out break anything inside PA that I'm not aware of?

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Tuesday, July 7, 2020 1:56 PM, Manuel Amador (Rudd-O) <rudd-o at rudd-o.com> wrote:

> On 01/07/2020 18.32, jtharkey wrote:
>
>> In the source I found this in daemon/main.c:
>>
>> if (conf->system_instance && !conf->disable_shm) {
>> pa_log_notice(_("Running in system mode, forcibly disabling SHM mode."));
>> conf->disable_shm = true;
>> }
>>
>> I commented that out and built it, things seemed to work and work faster. Will commenting that out have some side effect I'm not aware of?
>
> Yes, SHM mode is not safe when multiple users are using it. SHM will give you more performance but hostile users may compromise your PulseAudio daemon.
>
> --
>     Rudd-O
> http://rudd-o.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20200707/cb2e6ec5/attachment.htm>


More information about the pulseaudio-discuss mailing list