> Hi,
>
> I have some questions regarding cgroups.
> - uwsgi version is 1.9.18
> - config files are here https://gist.github.com/ikatson/7524404
> - fstab line for cgroups is:
>   none            /cgroup cgroup  cpu,cpuacct,memory      0 0
>
> 1. When cgroup= and cgroup-opt= lines are removed, and the "ini" file is
> touched, the new (reloaded) processes continue to remain in a cgroup, even
> though no cgroup config opts are set.
> This seems to be a bug. Can it be worked around somehow?


When you reload, privileged operations are skipped (as the master runs
with lower privileges).

You should make a "full stop and start" to honour privileged options

>
> 2. I have cpu.shares=128 set for all the projects, and have many of them.
> Does it constrain the CPU resources when the others are idling?
>
> E.g. if most of the projects are idling, but some require 100% cpu, will
> it
> be shared between only active processes, or all the ones?
>

the cpu share is related to the current cpu usage, if a single process
requires cpu (impossible obviously but take it as an example) it will get
100% cpu independently by its share value.

If a second process need cpu and has a share of 256, the first one will
get 33% and the new one 66%
-- 
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to