limits inside lxc container

michabbs

Active Member
May 5, 2020
131
19
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...
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!