use cgroups to calculate percentage of cpu used