Class IsolatedProcessors


  • final class IsolatedProcessors
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static void disableCpu​(int cpu)
      Instruct Linux to disable a particular CPU.
      (package private) static void enableCpu​(int cpu)  
      (package private) static java.util.SortedSet<java.lang.Integer> get()  
      (package private) static java.util.SortedSet<java.lang.Integer> parseProcessorRange​(java.lang.String range)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • get

        static java.util.SortedSet<java.lang.Integer> get()
                                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • parseProcessorRange

        static java.util.SortedSet<java.lang.Integer> parseProcessorRange​(java.lang.String range)
      • disableCpu

        static void disableCpu​(int cpu)
                        throws java.io.IOException
        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:
        java.io.IOException
      • enableCpu

        static void enableCpu​(int cpu)
                       throws java.io.IOException
        Throws:
        java.io.IOException