FS#75556 - [gcr] Default locked memory limit is reduced

Attached to Project: Arch Linux
Opened by lukpod (lukpod) - Tuesday, 09 August 2022, 00:36 GMT
Last edited by Jan Alexander Steffens (heftig) - Friday, 12 August 2022, 13:12 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan Alexander Steffens (heftig)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The current default locked memory limit is 8192 KB.

# ulimit -a | grep -e -l
max locked memory (kbytes, -l) 8192

# sudo -u nobody sh -c 'ulimit -a | grep -e -l'
max locked memory (kbytes, -l) 8192

It's reduced to 1024 KB for the group users.

$ cat /etc/security/limits.d/10-gcr.conf
@users - memlock 1024

https://www.mankier.com/5/limits.conf#Description-memlock

Previously the default limit was smaller.

https://bugs.archlinux.org/task/32616
https://bugzilla.gnome.org/show_bug.cgi?id=688161
This task depends upon

Closed by  Jan Alexander Steffens (heftig)
Friday, 12 August 2022, 13:12 GMT
Reason for closing:  Fixed
Additional comments about closing:  gcr 3.41.1-2
Comment by Toolybird (Toolybird) - Friday, 12 August 2022, 03:48 GMT
It's not clear what you are reporting.. please clarify.
Is the problem that 8192 KB is too high? Or is it that the setting of 1024 in /etc/security/limits.d/10-gcr.conf is not taking effect?
IIUC, that setting is only applicable to the "users" group, which BTW on my system happens to be empty/unused (i.e useless?)
Comment by lukpod (lukpod) - Friday, 12 August 2022, 07:29 GMT
The point of introducing 10-gcr.conf was allowing more locked memory, not limiting it to 1024 KB. The limit is only effective when gcr is installed and when the logged in user is in the group users. It's pointless to reduce it only under these conditions. I request removal of etc/security/limits.d/10-gcr.conf from the package.

https://github.com/archlinux/svntogit-packages/commit/7ad066a8ca15b2556c8241b56c71b7e87385ceec
https://github.com/archlinux/svntogit-packages/commit/f2e74331607f0f26081143af5c62be34e0a2f1c2
Comment by Jan Alexander Steffens (heftig) - Friday, 12 August 2022, 13:03 GMT

Loading...