Class IsolatedProcessors
java.lang.Object
org.apache.bookkeeper.common.util.affinity.impl.IsolatedProcessors
-
Method Summary
Modifier and TypeMethodDescription(package private) static voiddisableCpu(int cpu) Instruct Linux to disable a particular CPU.(package private) static voidenableCpu(int cpu) get()parseProcessorRange(String range)
-
Method Details
-
get
- Throws:
IOException
-
parseProcessorRange
-
disableCpu
Instruct Linux to disable a particular CPU. This is used to disable hyper-threading on a particular core, by shutting down the cpu that shares the same core.- Throws:
IOException
-
enableCpu
- Throws:
IOException
-