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 CgroupCore
public int[] getCpus() throws IOException
IOException
public void setCpus(int[] nums) throws IOException
IOException
public int[] getMems() throws IOException
IOException
public void setMems(int[] nums) throws IOException
IOException
public boolean isMemMigrate() throws IOException
IOException
public void setMemMigrate(boolean flag) throws IOException
IOException
public boolean isCpuExclusive() throws IOException
IOException
public void setCpuExclusive(boolean flag) throws IOException
IOException
public boolean isMemExclusive() throws IOException
IOException
public void setMemExclusive(boolean flag) throws IOException
IOException
public boolean isMemHardwall() throws IOException
IOException
public void setMemHardwall(boolean flag) throws IOException
IOException
public int getMemPressure() throws IOException
IOException
public boolean isMemPressureEnabled() throws IOException
IOException
public void setMemPressureEnabled(boolean flag) throws IOException
IOException
public boolean isMemSpreadPage() throws IOException
IOException
public void setMemSpreadPage(boolean flag) throws IOException
IOException
public boolean isMemSpreadSlab() throws IOException
IOException
public void setMemSpreadSlab(boolean flag) throws IOException
IOException
public boolean isSchedLoadBlance() throws IOException
IOException
public void setSchedLoadBlance(boolean flag) throws IOException
IOException
public int getSchedRelaxDomainLevel() throws IOException
IOException
public void setSchedRelaxDomainLevel(int value) throws IOException
IOException
Copyright © 2019 The Apache Software Foundation. All rights reserved.