sigxcpu76 / illumos-coretemp

Illumos implementation of coretemp driver

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A coretemp driver implementation for Illumos

This is a kstat producer. Included is an utility (coretempstat) that displays the temperatures in a nice format.

Install

make install

Test

Sample output:

# kstat -m cpu_info -n "coretemp*"
module: cpu_info                        instance: 0
name:   coretemp0                       class:    misc
        chip_id                         0
        chip_temp                       41
        core_id                         0
        core_temp                       33
        crtime                          258514.520731534
        snaptime                        258745.631569397
        target_temp                     90
        tj_max                          94
        valid                           1

module: cpu_info                        instance: 1
name:   coretemp1                       class:    misc
        chip_id                         0
        chip_temp                       41
        core_id                         1
        core_temp                       33
        crtime                          258514.520737457
        snaptime                        258745.631591757
        target_temp                     90
        tj_max                          94
        valid                           1

coretempstat output:

Found 8 CPUs in 1 socket
Socket #0 temp : 41 °C
        Core #0 temp : 32 °C
        Core #1 temp : 35 °C
        Core #2 temp : 33 °C
        Core #3 temp : 41 °C

For graphing and/or monitoring there is coretempstat -p:

# ./coretempstat -p
0 33
1 34
2 33
3 41

or

# ./coretempstat -p 2
33

About

Illumos implementation of coretemp driver


Languages

Language:C 94.8%Language:Makefile 5.2%