:: [DNG] Fwd: Setting default limits …
Góra strony
Delete this message
Reply to this message
Autor: Lorenz
Data:  
Dla: Devuan ML
Temat: [DNG] Fwd: Setting default limits for users
[ I replied to Martin but the massage was meant for the mailing list,
so sending again ]

Hi Martin,

Il giorno gio 30 gen 2025 alle ore 21:01 Martin Steigerwald
<martin@???> ha scritto:
>
> Hi!
>
> I wonder how
>
> [ pam maintainer message ]
>
> affects users that use an other than Systemd' init.
>
> Any idea?


try to compare limits for your user before and after pam upgrade and
see if they change;
on my machine I have:

$ ulimit -Sa
real-time non-blocking time  (microseconds, -R) unlimited
core file size              (blocks, -c) 0
data seg size               (kbytes, -d) unlimited
scheduling priority                 (-e) 0
file size                   (blocks, -f) unlimited
pending signals                     (-i) 127814
max locked memory           (kbytes, -l) unlimited
max memory size             (kbytes, -m) unlimited
open files                          (-n) 1024
pipe size                (512 bytes, -p) 8
POSIX message queues         (bytes, -q) 819200
real-time priority                  (-r) 95
stack size                  (kbytes, -s) 8192
cpu time                   (seconds, -t) unlimited
max user processes                  (-u) 127814
virtual memory              (kbytes, -v) unlimited
file locks                          (-x) unlimited


$ ulimit -Ha
real-time non-blocking time  (microseconds, -R) unlimited
core file size              (blocks, -c) unlimited
data seg size               (kbytes, -d) unlimited
scheduling priority                 (-e) 0
file size                   (blocks, -f) unlimited
pending signals                     (-i) 127814
max locked memory           (kbytes, -l) unlimited
max memory size             (kbytes, -m) unlimited
open files                          (-n) 4096
pipe size                (512 bytes, -p) 8
POSIX message queues         (bytes, -q) 819200
real-time priority                  (-r) 95
stack size                  (kbytes, -s) unlimited
cpu time                   (seconds, -t) unlimited
max user processes                  (-u) 127814
virtual memory              (kbytes, -v) unlimited
file locks                          (-x) unlimited


not sure about SysV, but on runit we are not enforcing any limits
for services or logged in users, so I think we inherit values from the
kernel? Yeah, reading the message from PAM maintainer, I guess for
logged in users pam can change such values..

Best,
Lorenzo