]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/attach.c
conf: implement resource limits
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 4 Nov 2016 09:19:07 +0000 (10:19 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 11 Apr 2017 12:01:11 +0000 (14:01 +0200)
commitc6d09e15c5a25fc1a16859e498af2af17b5dfb2f
tree056631469e2cad76e6543a287dbf667557c33cdc
parent359f86f975061a7ea182fe3531f90b88331523b0
conf: implement resource limits

This adds lxc.limit.<name> options consisting of one or two
colon separated numerical values (soft and optional hard
limit). If only one number is specified it'll be used for
both soft and hard limit. Additionally the word 'unlimited'
can be used instead of numbers.

Eg.
  lxc.limit.nofile = 30000:32768
  lxc.limit.stack = unlimited

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
configure.ac
src/lxc/attach.c
src/lxc/conf.c
src/lxc/conf.h
src/lxc/confile.c
src/lxc/start.c