'Specify (real) cores that our cgroup can run on'

def setCPUs(self, cores, mems=0):

    if (not cores):
        return
    if isinstance(cores, list):
        cores = ','.join([str(c) for c in cores])
    self.cgroupSet(resource='cpuset', param='cpus', value=cores)
    self.cgroupSet(resource='cpuset', param='mems', value=mems)
    errFail(('cgclassify    -g    cpuset:/%s    %s' % (self.name, self.pid)))
