[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Has Cgroups memory limit ?



That might be worth filing a bug, but the solution is tricky.  If you are _raising_ the limits, then we have to change memory.memsw.limit_in_bytes first, but if you are _lowering_ the limit, then we have to change memory.limit_in_bytes first.  I guess the easiest way would be:

1) attempt to set memory.memsw.limit_in_bytes, but don't worry about whether it succeeds (i.e., rescue exceptions)
2) set memory.limit_in_bytes
3) set memory.memsw.limit_in_bytes

That would work for both scenarios.

----- Original Message -----
> Resolved
> 
> changed first the
> 
> memory_memsw_limit_in_bytes= 128345702
> 
> then run
> service ruby193-mcollective restart; oo-cgroup-enable --with-all-containers;
> oo-pam-enable --with-all-containers; oo-admin-ctl-tc restart
> 
> then
> 
> memory_limit_in_bytes= 1073741824
> 
> and then run
> 
> service ruby193-mcollective restart; oo-cgroup-enable --with-all-containers;
> oo-pam-enable --with-all-containers; oo-admin-ctl-tc restart
> 
> 2015-01-28 14:52 GMT+01:00 Massimiliano Dessì < massimiliano dessi gmail com
> > :
> 
> 
> 
> Hi,
> I've added some nodes to run in a medium district,
> when I changed in the reource_limit.conf the values
> from
> 
> memory_limit_in_bytes=536870912 # 512MB 536870912
> memory_memsw_limit_in_bytes=641728512 # 512M + 100M (100M swap) 641728512
> 
> to
> 
> memory_limit_in_bytes=1073741824 # 512MB
> memory_memsw_limit_in_bytes=128345702
> 
> and then when I run the commands to reload the configuration
> I see the following message from Cgroups
> 
> [root node3 ~]# service ruby193-mcollective restart
> Shutting down mcollective: [ OK ]
> Starting mcollective: [ OK ]
> [root node3 ~]# oo-cgroup-enable --with-all-containers
> Cgroups parameter cannot be set to value: memory.limit_in_bytes = 1073741824
> 
> there are memory limitations in openshift Origin nbodes ?
> 
> If I try to use 1G the message is almost the same
> 
> Thanks
> Max
> 
> 
> 
> --
> http://twitter.com/desmax74
> http://www.linkedin.com/in/desmax74
> http://www.slideshare.net/desmax74
> Author of: Spring 2.5 Aspect Oriented Programming
> " http://www.packtpub.com/aspect-oriented-programming-with-spring-2-5/book "
> 
> _______________________________________________
> users mailing list
> users lists openshift redhat com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
> 

-- 
--Andy


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]