Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 892822 - media-video/pipewire: add a tip about how to raise RLIMIT_MEMLOCK manually
Summary: media-video/pipewire: add a tip about how to raise RLIMIT_MEMLOCK manually
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sam James
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-01 13:33 UTC by Pacho Ramos
Modified: 2023-02-22 22:55 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2023-02-01 13:33:45 UTC
I was looking at bug 801601 as I was wondering about the sound access when switching the users in one of the systems I maintained.

When I was reading ebuild instructions I saw:
It is recommended to raise RLIMIT_MEMLOCK to 256 for users
using PipeWire. Do it either manually or add yourself
to the 'audio' group:

For us I am still running ok without raising the limit, but I was wondering about how to raise the limit manually... I would then suggest too about how to do that. I have found some solutions in Gentoo and Arch wikis:
https://wiki.gentoo.org/wiki/PipeWire#Increasing_RLIMIT_MEMLOCK_for_PulseAudio_clients_.28systemd_specific.29

I would be tempted to try the systemd solution, but reading:
https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/692

I am unsure about if all this RLIMIT_MEMLOCK modifications are really needed or, if they are still needed, why don't enable it by default in the systemd unit 

Thanks a lot
Comment 1 Larry the Git Cow gentoo-dev 2023-02-22 22:55:40 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18d85ef89d55d7337b463ff6a04e74b173283589

commit 18d85ef89d55d7337b463ff6a04e74b173283589
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-02-22 22:47:46 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-02-22 22:55:30 +0000

    media-video/pipewire: add 0.3.66
    
    Bug: https://bugs.gentoo.org/791847
    Closes: https://bugs.gentoo.org/892822
    Signed-off-by: Sam James <sam@gentoo.org>

 media-video/pipewire/Manifest               |   1 +
 media-video/pipewire/pipewire-0.3.66.ebuild | 466 ++++++++++++++++++++++++++++
 media-video/pipewire/pipewire-9999.ebuild   |  22 +-
 3 files changed, 482 insertions(+), 7 deletions(-)