Re: [lxc-users] lxc memory limit doesn't work

2015-04-29 Thread Fırat KÜÇÜK
I purged every single dependent package then i installed lxd from *ppa:ubuntu-lxc/lxd-stable* Now lxcfs works. and the result: root@my-container:/# free -h total used free sharedbuffers cached Mem: 2.0G10M 2.0G 492K 0B

Re: [lxc-users] lxc memory limit doesn't work

2015-04-29 Thread Fajar A. Nugraha
How did you install lxcfs? Looks like your version of cgmanger is not new enough. The ppa should also have updated cgmanager ... or if you have updated, you might simply need to reboot first. On Wed, Apr 29, 2015 at 5:29 PM, Fırat KÜÇÜK wrote: > call to move_pid_abs (all:/) failed: invalid requ

Re: [lxc-users] lxc memory limit doesn't work

2015-04-29 Thread Fırat KÜÇÜK
call to move_pid_abs (all:/) failed: invalid request WARNING: failed to escape to root cgroup call to list_controllers failed: Method "ListControllers" with signature "" on interface "org.linuxcontainers.cgmanager0_0" doesn't exist 2015-04-29 13:25 GMT+03:00 Fajar A. Nugraha : > On Wed, Apr 29

Re: [lxc-users] lxc memory limit doesn't work

2015-04-29 Thread Fajar A. Nugraha
On Wed, Apr 29, 2015 at 5:13 PM, Fırat KÜÇÜK wrote: > I reinstalled the lxc, lxcfs service cannot start. ... because ? There should be a log on /var/log/upstart/lxcfs.log. Or you could try starting it manually: /usr/bin/lxcfs -s -f -o allow_other /var/lib/lxcfs -- Fajar __

Re: [lxc-users] lxc memory limit doesn't work

2015-04-29 Thread Fırat KÜÇÜK
I reinstalled the lxc, lxcfs service cannot start. limit is the same. Fajar and Guido. Thanks for your support. BTW I will reinstall the LXD. It is quite user friendly and stable for me. 2015-04-29 12:35 GMT+03:00 Fajar A. Nugraha : > https://launchpad.net/~ubuntu-lxc/+archive/ubuntu/lxc-

Re: [lxc-users] lxc memory limit doesn't work

2015-04-29 Thread Fajar A. Nugraha
https://launchpad.net/~ubuntu-lxc/+archive/ubuntu/lxc-stable On Wed, Apr 29, 2015 at 4:30 PM, Fırat KÜÇÜK wrote: > I searched all the packages. I think there is nothing such lxcfs in ubuntu > 14.04. LTS trusty. > > > > 2015-04-29 12:23 GMT+03:00 Fajar A. Nugraha : >> >> Ah, OK. >> >> In that case

Re: [lxc-users] lxc memory limit doesn't work

2015-04-29 Thread Fırat KÜÇÜK
I searched all the packages. I think there is nothing such lxcfs in ubuntu 14.04. LTS trusty. 2015-04-29 12:23 GMT+03:00 Fajar A. Nugraha : > Ah, OK. > > In that case, on the container, try: > mount | grep lxcfs > cat /proc/cpuinfo > cat /proc/meminfo > > IF you have lxcfs correctly installed a

Re: [lxc-users] lxc memory limit doesn't work

2015-04-29 Thread Fajar A. Nugraha
Ah, OK. In that case, on the container, try: mount | grep lxcfs cat /proc/cpuinfo cat /proc/meminfo IF you have lxcfs correctly installed and used by the containers (as shown by mount command), cpuinfo and meminfo should contain container-specific values as set on cgroups (e.g. lxc.cgroup.cpuset.

Re: [lxc-users] lxc memory limit doesn't work

2015-04-29 Thread Fırat KÜÇÜK
I noticed that i have no /sys/fs/cgroup/lxc/ directory. Is it a problem? Instead: cgmanager and systemd directories exist. 2015-04-29 12:09 GMT+03:00 Fırat KÜÇÜK : > in fact. > > Today i setup lxd and lxc seperately. > > on lxd setup i used: > > lxc config set my-container limits.memory 4G > >

Re: [lxc-users] lxc memory limit doesn't work

2015-04-29 Thread Fırat KÜÇÜK
in fact. Today i setup lxd and lxc seperately. on lxd setup i used: lxc config set my-container limits.memory 4G and it worked. But i considered lxd is not quite stable for production. Than i used lxc then i created a container and edit conf-file lxc.cgroup.memory.limit_in_bytes = 2048M but

Re: [lxc-users] lxc memory limit doesn't work

2015-04-29 Thread Fajar A. Nugraha
On Wed, Apr 29, 2015 at 2:17 PM, Fırat KÜÇÜK wrote: > Hi, > > i updated the config file: > lxc.cgroup.memory.limit_in_bytes = 2048M > > but my container free -h output shows 32GB > > Is there anything that i missed? Not really. In most (all?) lxc setup, various tools (e.g. free, top) on the cont

Re: [lxc-users] lxc memory limit doesn't work

2015-04-29 Thread Fırat KÜÇÜK
Unfortunately it doesn't work. 2015-04-29 10:19 GMT+03:00 Mark Constable : > On 29/04/15 17:17, Fırat KÜÇÜK wrote: > >> lxc.cgroup.memory.limit_in_bytes = 2048M >> but my container free -h output shows 32GB >> Is there anything that i missed? >> > > For me on ubuntu I had to add this to my defaul

Re: [lxc-users] lxc memory limit doesn't work

2015-04-29 Thread Mark Constable
On 29/04/15 17:17, Fırat KÜÇÜK wrote: lxc.cgroup.memory.limit_in_bytes = 2048M but my container free -h output shows 32GB Is there anything that i missed? For me on ubuntu I had to add this to my default grub line and reboot... ~ grep cgroup /etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT="quiet

[lxc-users] lxc memory limit doesn't work

2015-04-29 Thread Fırat KÜÇÜK
Hi, i updated the config file: lxc.cgroup.memory.limit_in_bytes = 2048M but my container free -h output shows 32GB Is there anything that i missed? -- FIRAT KÜÇÜK ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcont