code: func (m *qosContainerManagerImpl) retrySetMemoryReserve(configs map[v1.PodQOSClass]*CgroupConfig, percentReserve int64) {
  	// Unreclaimable memory usage may already exceeded the desired limit
  	// Attempt to set the limit near the current usage to put pressure
  	// on the cgroup and prevent further growth.
  	for qos, config := range configs {
  		stats, err := m.cgroupManager.GetResourceStats(config.Name)
  		if err != nil {
  			klog.V(2).Infof("[Container Manager] %v", err)
  			return
  		}
  		usage := stats.MemoryStats.Usage
  
  		// Because there is no good way to determine of the original Update()
  		// on the memory resource was successful, we determine failure of the
  		// first attempt by checking if the usage is above the limit we attempt
  		// to set.  If it is, we assume the first attempt to set the limit failed
  		// and try again setting the limit to the usage.  Otherwise we leave
  		// the CgroupConfig as is.
  		if configs[qos].ResourceParameters.Memory != nil && usage > *configs[qos].ResourceParameters.Memory {
  			configs[qos].ResourceParameters.Memory = &usage
  		}
  	}
  }
docs: // retrySetMemoryReserve checks for any QoS cgroups over the limit
  // that was attempted to be set in the first Update() and adjusts
  // their memory limit to the usage to prevent further growth.