Calculate the cpu shares of the cgroups on a system