Class LinuxNuma

All Implemented Interfaces:
OSNuma

public final class LinuxNuma extends OSNuma.PreCalculatedNuma
  • Field Details

    • INSTANCE

      public static final LinuxNuma INSTANCE
  • Method Details

    • isAvailable

      public boolean isAvailable()
      Description copied from interface: OSNuma
      Returns whether interaction with the OS for NUMA is available. If no interaction is available, then the following applies:
      Returns:
      Whether there exists native support to retrieve NUMA information and set scheduling affinity.
    • getCurrentCore

      public int getCurrentCore()
      Description copied from interface: OSNuma
      Returns the current core that this thread is running on. If NUMA interaction is not available, then 0 will be returned.
      Returns:
      The current core this thread is running on
      See Also:
    • getCurrentThreadAffinity

      public long[] getCurrentThreadAffinity()
      Description copied from interface: OSNuma
      Returns the current thread's affinity mask. If NUMA interaction is not available, then this function will return an undefined result.
      Returns:
      The current thread's affinity mask.
      See Also:
    • setCurrentThreadAffinity

      public void setCurrentThreadAffinity(long[] to)
      Description copied from interface: OSNuma
      Attempts to adjust the current thread's affinity mask to the specified bitset. If NUMA interaction is not available, then this function is a no-op.
      Parameters:
      to - Specified new affinity bitmask.
      See Also: