Documentation ¶
Index ¶
Constants ¶
View Source
const ( CgroupCPUPeriod string = "/sys/fs/cgroup/cpu/cpu.cfs_period_us" CgroupCPUQuota string = "/sys/fs/cgroup/cpu/cpu.cfs_quota_us" CgroupMemLimit string = "/sys/fs/cgroup/memory/memory.limit_in_bytes" Cgroupv2MemLimit string = "/sys/fs/cgroup/memory.max" Cgroupv2MemRequest string = "/sys/fs/cgroup/memory.min" Cgroupv2CPULimit string = "/sys/fs/cgroup/cpu.max" Cgroupv2CPURequest string = "/sys/fs/cgroup/cpu.weight" CpuPeriod string = "100000" PollInterval time.Duration = 2 * time.Second PollTimeout time.Duration = 4 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
func SIGDescribe ¶
SIGDescribe annotates the test with the SIG label.
Types ¶
type ContainerAllocations ¶ added in v1.27.0
type ContainerAllocations struct {
CPUAlloc, MemAlloc string
// contains filtered or unexported fields
}
type ContainerResources ¶ added in v1.27.0
type ContainerResources struct {
CPUReq, CPULim, MemReq, MemLim, EphStorReq, EphStorLim string
}
type TestContainerInfo ¶ added in v1.27.0
type TestContainerInfo struct { Name string Resources *ContainerResources Allocations *ContainerAllocations CPUPolicy *v1.ResourceResizeRestartPolicy MemPolicy *v1.ResourceResizeRestartPolicy RestartCount int32 }
Click to show internal directories.
Click to hide internal directories.