Resource limit information is not kept in the kernel for contexts that do not have
authorMarc Fiuczynski <mef@cs.princeton.edu>
Wed, 24 Aug 2005 11:46:19 +0000 (11:46 +0000)
committerMarc Fiuczynski <mef@cs.princeton.edu>
Wed, 24 Aug 2005 11:46:19 +0000 (11:46 +0000)
commitf922f3535ed5b5b3ffd0965600a1e835dc4425a2
treec611de171ffe66476e6de7c55ddebc2ad32a07fe
parent8ccb799bda96e6654434d15d9b1136876463b05e
Resource limit information is not kept in the kernel for contexts that do not have
any processes.  These limits need to be reinstantiated.  For this reason, I have
modified vsh to read in CPULIMIT, MEMLIMIT, and TASKLIMIT from /etc/vservers/xyz.conf
and set these limits if the context does not exist.   When NM takes over this role,
the get_limits() function of vsh will need to be modified to obtain those limits
from NM rather than these conf files.
src/vsh.c