# 512MB memory limit, 256MB soft limie - system treats it as low mem condition lxc.cgroup.memory.limit_in_bytes = 512M lxc.cgroup.memory.soft_limit_in_bytes = 256M # total usage memory (swap+ram) limit to 1G lxc.cgroup.memory.memsw.limit_in_bytes = 1G # arbitary value which only sets relative priority between containers lxc.cgroup.cpu.shares = 100 # restrict to use cpu core 0 and 1 lxc.cgroup.cpuset.cpus 0,1 lxc.cgroup.blkio.weight 500