public class CpusetCore extends Object implements CgroupCore
| Modifier and Type | Field and Description |
|---|---|
static String |
CPUSET_CPU_EXCLUSIVE |
static String |
CPUSET_CPUS |
static String |
CPUSET_MEM_EXCLUSIVE |
static String |
CPUSET_MEM_HARDWALL |
static String |
CPUSET_MEMORY_MIGRATE |
static String |
CPUSET_MEMORY_PRESSURE |
static String |
CPUSET_MEMORY_PRESSURE_ENABLED |
static String |
CPUSET_MEMORY_SPREAD_PAGE |
static String |
CPUSET_MEMORY_SPREAD_SLAB |
static String |
CPUSET_MEMS |
static String |
CPUSET_SCHED_LOAD_BALANCE |
static String |
CPUSET_SCHED_RELAX_DOMAIN_LEVEL |
| Constructor and Description |
|---|
CpusetCore(String dir) |
| Modifier and Type | Method and Description |
|---|---|
int[] |
getCpus() |
int |
getMemPressure() |
int[] |
getMems() |
int |
getSchedRelaxDomainLevel() |
SubSystemType |
getType() |
boolean |
isCpuExclusive() |
boolean |
isMemExclusive() |
boolean |
isMemHardwall() |
boolean |
isMemMigrate() |
boolean |
isMemPressureEnabled() |
boolean |
isMemSpreadPage() |
boolean |
isMemSpreadSlab() |
boolean |
isSchedLoadBlance() |
static int[] |
parseNums(String outputStr) |
void |
setCpuExclusive(boolean flag) |
void |
setCpus(int[] nums) |
void |
setMemExclusive(boolean flag) |
void |
setMemHardwall(boolean flag) |
void |
setMemMigrate(boolean flag) |
void |
setMemPressureEnabled(boolean flag) |
void |
setMems(int[] nums) |
void |
setMemSpreadPage(boolean flag) |
void |
setMemSpreadSlab(boolean flag) |
void |
setSchedLoadBlance(boolean flag) |
void |
setSchedRelaxDomainLevel(int value) |
public static final String CPUSET_CPUS
public static final String CPUSET_MEMS
public static final String CPUSET_MEMORY_MIGRATE
public static final String CPUSET_CPU_EXCLUSIVE
public static final String CPUSET_MEM_EXCLUSIVE
public static final String CPUSET_MEM_HARDWALL
public static final String CPUSET_MEMORY_PRESSURE
public static final String CPUSET_MEMORY_PRESSURE_ENABLED
public static final String CPUSET_MEMORY_SPREAD_PAGE
public static final String CPUSET_MEMORY_SPREAD_SLAB
public static final String CPUSET_SCHED_LOAD_BALANCE
public static final String CPUSET_SCHED_RELAX_DOMAIN_LEVEL
public CpusetCore(String dir)
public static int[] parseNums(String outputStr)
public SubSystemType getType()
getType in interface CgroupCorepublic int[] getCpus()
throws IOException
IOExceptionpublic void setCpus(int[] nums)
throws IOException
IOExceptionpublic int[] getMems()
throws IOException
IOExceptionpublic void setMems(int[] nums)
throws IOException
IOExceptionpublic boolean isMemMigrate()
throws IOException
IOExceptionpublic void setMemMigrate(boolean flag)
throws IOException
IOExceptionpublic boolean isCpuExclusive()
throws IOException
IOExceptionpublic void setCpuExclusive(boolean flag)
throws IOException
IOExceptionpublic boolean isMemExclusive()
throws IOException
IOExceptionpublic void setMemExclusive(boolean flag)
throws IOException
IOExceptionpublic boolean isMemHardwall()
throws IOException
IOExceptionpublic void setMemHardwall(boolean flag)
throws IOException
IOExceptionpublic int getMemPressure()
throws IOException
IOExceptionpublic boolean isMemPressureEnabled()
throws IOException
IOExceptionpublic void setMemPressureEnabled(boolean flag)
throws IOException
IOExceptionpublic boolean isMemSpreadPage()
throws IOException
IOExceptionpublic void setMemSpreadPage(boolean flag)
throws IOException
IOExceptionpublic boolean isMemSpreadSlab()
throws IOException
IOExceptionpublic void setMemSpreadSlab(boolean flag)
throws IOException
IOExceptionpublic boolean isSchedLoadBlance()
throws IOException
IOExceptionpublic void setSchedLoadBlance(boolean flag)
throws IOException
IOExceptionpublic int getSchedRelaxDomainLevel()
throws IOException
IOExceptionpublic void setSchedRelaxDomainLevel(int value)
throws IOException
IOExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.