[lxc-users] newbee to LXC and LXCFS

Fajar A. Nugraha list at fajar.net
Thu Mar 5 07:56:26 UTC 2015


(shrug)

Works for me with ppa:ubuntu-lxc/daily

# grep MemTotal /proc/meminfo
MemTotal:       12197888 kB

# lxc-cgroup -n c7 memory.limit_in_bytes 1G

# lxc-cgroup -n c7 memory.limit_in_bytes
1073741824

# lxc-attach -n c7 -- grep MemTotal /proc/meminfo
MemTotal:        1048576 kB

-- 
Fajar

On Thu, Mar 5, 2015 at 2:38 PM, Rajasekar Darapuram
<raj at robinsystems.com> wrote:
> Thanks for the reply..However
> How come when i create 2 containers (I'm running the command lxc-create -f
> config -n name1 -t none, and my config has the option lxc.rootfs =
> /containers/container-name )  and run the cpuinfo, meminfo, uptime commands
> on each container, they both are returning the same values and they match
> the host machine values..
>
> Did I miss anything?
>
> From: "Fajar A. Nugraha" <list at fajar.net>
> To: LXC users mailing-list <lxc-users at lists.linuxcontainers.org>
> Cc:
> Date: Thu, 5 Mar 2015 06:00:00 +0700
> Subject: Re: [lxc-users] newbee to LXC and LXCFS
>
> On Thu, Mar 5, 2015 at 1:02 AM, Rajasekar Darapuram
> <raj at robinsystems.com> wrote:
>> 1. Should I explicitly bind the host /var/lib/lxcfs/cgroup/proc to the
>> container /proc (or something like /container_proc)
>
> Not if you update lxc to 1.1. See
> https://github.com/lxc/lxcfs/blob/master/README.md
>
> --
> Fajar


More information about the lxc-users mailing list