code: func (sf *stateFile) storeState() {
  	var content []byte
  	var err error
  
  	data := stateFileData{
  		PolicyName:    sf.policyName,
  		DefaultCPUSet: sf.cache.GetDefaultCPUSet().String(),
  		Entries:       map[string]string{},
  	}
  
  	for containerID, cset := range sf.cache.GetCPUAssignments() {
  		data.Entries[containerID] = cset.String()
  	}
  
  	if content, err = json.Marshal(data); err != nil {
  		panic("[cpumanager] state file: could not serialize state to json")
  	}
  
  	if err = ioutil.WriteFile(sf.stateFilePath, content, 0644); err != nil {
  		panic("[cpumanager] state file not written")
  	}
  	return
  }
docs: // saves state to a file, caller is responsible for locking