limits inside lxc container

michabbs

Active Member
May 5, 2020
135
20
38
I have 2 stand-alone pve nodes. On each of them I created Ubuntu 22.04 container from tremplate.

One shows this:
# ulimit -a​
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) 256779​
max locked memory (kbytes, -l) 8192​
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) 0​
stack size (kbytes, -s) 8192​
cpu time (seconds, -t) unlimited​
max user processes (-u) 256779
virtual memory (kbytes, -v) unlimited​
file locks (-x) unlimited​

And the other one this:
# ulimit -a​
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) 31480​
max locked memory (kbytes, -l) 8192​
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) 0​
stack size (kbytes, -s) 8192​
cpu time (seconds, -t) unlimited​
max user processes (-u) 31480
virtual memory (kbytes, -v) unlimited​
file locks (-x) unlimited​

Where do these limits come from? How to configure them? I need to increase it in the 2nd container and have no idea how...