(Note: in the examples below, the container is configured to halt itself after acquiring a DHCP lease.)

# lxc-start -n mimic -f /etc/lxc/mimic.conf -slxc.cgroup.memory.limit_in_bytes=2G -slxc.cgroup.memory.memsw.limit_in_bytes=1G
lxc-start: write /var/cgroup/mimic/memory.memsw.limit_in_bytes : Invalid argument
lxc-start: failed to setup the cgroups for 'mimic'
lxc-start: failed to setup the container
lxc-start: invalid sequence number 1. expected 2
lxc-start: failed to spawn 'mimic'
# lxc-start -n mimic -f /etc/lxc/mimic.conf -slxc.cgroup.memory.limit_in_bytes=1G -slxc.cgroup.memory.memsw.limit_in_bytes=2G
BOOTED SUCCESSFULLY, HALTING.
# lxc-start -n mimic -f /etc/lxc/mimic.conf -slxc.cgroup.memory.limit_in_bytes=256M -slxc.cgroup.memory.memsw.limit_in_bytes=128M
lxc-start: write /var/cgroup/mimic/memory.memsw.limit_in_bytes : Invalid argument
lxc-start: failed to setup the cgroups for 'mimic'
lxc-start: failed to setup the container
lxc-start: invalid sequence number 1. expected 2
lxc-start: failed to spawn 'mimic'
# free -m
free -m
             total       used       free     shared    buffers     cached
Mem:          7963       6538       1425          0        703       4853
-/+ buffers/cache:        981       6982
Swap:        24575          3      24572
# lxc-start -n mimic -f /etc/lxc/mimic.conf -slxc.cgroup.memory.limit_in_bytes=512M -slxc.cgroup.memory.memsw.limit_in_bytes=256M
lxc-start: write /var/cgroup/mimic/memory.memsw.limit_in_bytes : Invalid argument
lxc-start: failed to setup the cgroups for 'mimic'
lxc-start: failed to setup the container
lxc-start: invalid sequence number 1. expected 2
lxc-start: failed to spawn 'mimic'
# lxc-start -n mimic -f /etc/lxc/mimic.conf -slxc.cgroup.memory.limit_in_bytes=512M
BOOTED SUCCESSFULLY, HALTING.
# lxc-start -n mimic -f /etc/lxc/mimic.conf  -slxc.cgroup.memory.memsw.limit_in_bytes=256M
lxc-start: write /var/cgroup/mimic/memory.memsw.limit_in_bytes : Invalid argument
lxc-start: failed to setup the cgroups for 'mimic'
lxc-start: failed to setup the container
lxc-start: invalid sequence number 1. expected 2
lxc-start: failed to spawn 'mimic'
# lxc-start -n mimic -f /etc/lxc/mimic.conf -slxc.cgroup.memory.limit_in_bytes=256M -slxc.cgroup.memory.memsw.limit_in_bytes=256M
BOOTED SUCCESSFULLY, HALTING.
# lxc-start -n mimic -f /etc/lxc/mimic.conf -slxc.cgroup.memory.memsw.limit_in_bytes=0
lxc-start: write /var/cgroup/mimic/memory.memsw.limit_in_bytes : Invalid argument
lxc-start: failed to setup the cgroups for 'mimic'
lxc-start: failed to setup the container
lxc-start: invalid sequence number 1. expected 2
lxc-start: failed to spawn 'mimic'
# lxc-start -n mimic -f /etc/lxc/mimic.conf -slxc.cgroup.memory.memsw.limit_in_bytes=0M
lxc-start: write /var/cgroup/mimic/memory.memsw.limit_in_bytes : Invalid argument
lxc-start: failed to setup the cgroups for 'mimic'
lxc-start: failed to setup the container
lxc-start: invalid sequence number 1. expected 2
lxc-start: failed to spawn 'mimic'
# 
