Class SolarisCentralProcessor

    • Constructor Detail

      • SolarisCentralProcessor

        SolarisCentralProcessor()
    • Method Detail

      • initProcessorCounts2

        private static java.util.List<CentralProcessor.LogicalProcessor> initProcessorCounts2​(java.util.Map<java.lang.Integer,​java.lang.Integer> numaNodeMap)
      • mapNumaNodes

        private static java.util.Map<java.lang.Integer,​java.lang.Integer> mapNumaNodes()
      • queryCurrentFreq2

        private static long[] queryCurrentFreq2​(int processorCount)
      • queryMaxFreq2

        private static long queryMaxFreq2()
      • getSystemLoadAverage

        public double[] getSystemLoadAverage​(int nelem)
        Description copied from interface: CentralProcessor
        Returns the system load average for the number of elements specified, up to 3, representing 1, 5, and 15 minutes. The system load average is the sum of the number of runnable entities queued to the available processors and the number of runnable entities running on the available processors averaged over a period of time.

        This method is designed to provide a hint about the system load and may be queried frequently.

        The way in which the load average is calculated is operating system specific but is typically a damped time-dependent average. Linux includes processes waiting for system resources such as disks, while macOS and Unix consider only processes waiting for CPU.

        Windows does not provide a load average. Users may set the configuration property oshi.os.windows.loadaverage to true to start a daemon thread which will provide a similar metric.

        The load average may be unavailable on some platforms (e.g., Windows without the above configuration). If the load average is not available, a negative value is returned.

        Parameters:
        nelem - Number of elements to return.
        Returns:
        an array of the system load averages for 1, 5, and 15 minutes with the size of the array specified by nelem; or negative values if not available.
      • queryProcessorCpuLoadTicks2

        private static long[][] queryProcessorCpuLoadTicks2​(int processorCount)
      • getProcessorID

        private static java.lang.String getProcessorID​(java.lang.String stepping,
                                                       java.lang.String model,
                                                       java.lang.String family)
        Fetches the ProcessorID by encoding the stepping, model, family, and feature flags.
        Parameters:
        stepping - The stepping
        model - The model
        family - The family
        Returns:
        The Processor ID string
      • queryContextSwitches2

        private static long queryContextSwitches2()
      • queryInterrupts2

        private static long queryInterrupts2()