I don't seem to have a `cpuinfo` command. I use OmniOS, if that matters. That said, after googling for cpuinfo alternatives, I found and run:

# psrinfo -v
Status of virtual processor 0 as of: 12/26/2023 12:32:47
  on-line since 12/26/2023 01:51:23.
  The i386 processor operates at 2418 MHz,
        and has an i387 compatible floating point processor.
Status of virtual processor 1 as of: 12/26/2023 12:32:47
  on-line since 12/26/2023 01:51:29.
  The i386 processor operates at 2418 MHz,
        and has an i387 compatible floating point processor.
Status of virtual processor 2 as of: 12/26/2023 12:32:47
  on-line since 12/26/2023 01:51:29.
  The i386 processor operates at 2418 MHz,
        and has an i387 compatible floating point processor.
Status of virtual processor 3 as of: 12/26/2023 12:32:47
  on-line since 12/26/2023 01:51:29.
  The i386 processor operates at 2418 MHz,
        and has an i387 compatible floating point processor.

# kstat -m cpu_info
module: cpu_info                        instance: 0
name:   cpu_info0                       class:    misc
brand 11th Gen Intel(r) Core(tm) i5-1135G7 @ 2.40GHz
        cache_id                        0
        chip_id                         0
        clock_MHz                       2418
        clog_id                         0
        core_id                         0
        cpu_type                        i386
        crtime                          40,991033267
        current_clock_Hz                400000000
        current_cstate                  1
        family                          6
        fpu_type                        i387 compatible
implementation x86 (chipid 0x0 GenuineIntel 806C1 family 6 model 140 step 1 clock 2418 MHz)
        model                           140
        ncore_per_chip                  4
        ncpu_per_chip                   8
        pg_id                           5
        pkg_core_id                     0
        snaptime                        38606,908818304
        socket_type                     Unknown
        state                           on-line
        state_begin                     1703551883
        stepping                        1
supported_frequencies_Hz 400000000:500000000:700000000:800000000:900000000:1100000000:1300000000:1400000000:1500000000:1700000000:1800000
000:2000000000:2100000000:2300000000:2400000000:2401000000
        supported_max_cstates           3
        vendor_id                       GenuineIntel
(...)

Also, running `while true; do kstat -m cpu_info | egrep 'instance|current'; sleep 1; clear; done` shows that cstate and clock_Hz vary in time and on the various cores/instances. The only two values appearing are 2401000000 and 400000000. The displayed chaging Cstate values , 1, 2, 3

Finally, looking at
# /usr/lib/fm/fmd/fmtopo -V *sensor=temp | egrep 'resource.*product-id|reading' resource fmri hc://:product-id=Default-string:server-id=hoth:chassis-id=Default-string/motherboard=0/chip=0/core=0?sensor=temp
    reading           double    45.000000
resource fmri hc://:product-id=Default-string:server-id=hoth:chassis-id=Default-string/motherboard=0/chip=0/core=1?sensor=temp
    reading           double    46.000000
resource fmri hc://:product-id=Default-string:server-id=hoth:chassis-id=Default-string/motherboard=0/chip=0/core=2?sensor=temp
    reading           double    44.000000
resource fmri hc://:product-id=Default-string:server-id=hoth:chassis-id=Default-string/motherboard=0/chip=0/core=3?sensor=temp
    reading           double    58.000000
resource fmri hc://:product-id=Default-string:server-id=hoth:chassis-id=Default-string/motherboard=0/chip=0?sensor=temp
    reading           double    56.000000

Are those commands the proper way to detect if CPU scaling is working?

Thanks.

Le 26/12/2023 à 04:30, Alex Smith (K4RNT) a écrit :
Does 'cpuinfo -v' return anything?
" 'With the first link, the chain is forged. The first speech censured, the first thought forbidden, the first freedom denied, chains us all irrevocably.' Those words were uttered by Judge Aaron Satie as wisdom and warning... The first time any man's freedom is trodden on, we’re all damaged." - Jean-Luc Picard, quoting Judge Aaron Satie, Star Trek: TNG episode "The Drumhead"
- Alex Smith (K4RNT)
- Lacey, Washington (Olympia, WA metropolitan area)


On Mon, Dec 25, 2023 at 5:10 PM Joel Carnat <[email protected] <mailto:[email protected]>> wrote:

    __
    Hi,

    Is there a way to check the current CPU frequency and temperature ?
    Do Illumos supports scaling frequency depending on CPU load ?

    My (fanless) server is quite hot and I wonder if everything is ok.

    Thanks.

    PS: In case it depends on CPU, my server is:

    # prtdiag -v
    System Configuration: Default string Default string
    BIOS Configuration: American Megatrends International, LLC. 5.19 03/30/2021

    ==== Processor Sockets ====================================

    Version                          Location Tag
    -------------------------------- --------------------------
    11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz U3E1


------------------------------------------
illumos: illumos-discuss
Permalink: 
https://illumos.topicbox.com/groups/discuss/T138d03862d016c8a-Mb8def5cc188ba9fdd97cb79e
Delivery options: https://illumos.topicbox.com/groups/discuss/subscription

Reply via email to