the i7z tool now dockerized and tiny

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

gigatexal

I'm here to learn
Nov 25, 2012
2,913
607
113
Portland, Oregon
alexandarnarayan.com
shameless plug, and while installing ncurses-devel and then cloning the i7z source and then making it and then running it wasn't that much of a hassle I wanted to play with the experimental features of docker 1.13.1 specifically the feature that squashes images (--experimental=true must be passed to your systemd service for docker-engine).

https://hub.docker.com/r/gigatexal/i7z-min/

build file (still kinda new to this so yeah):

Code:
FROM alpine:latest

RUN apk update
RUN apk add bash git ncurses-dev make g++

RUN cd /; mkdir temp; cd temp; git clone https://github.com/ajaiantilal/i7z.git; cd i7z; make; mkdir /i7z; cp i7z /i7z/; rm -rf /temp/i7z
RUN apk del git ncurses-dev make g++

CMD  ./i7z/i7z
Run it with this:

Code:
sudo docker run -it --privileged gigatexal/i7z-min:latest
 

Patrick

Administrator
Staff member
Dec 21, 2010
12,513
5,804
113
I am getting this:
Code:
i7z DEBUG: i7z version: svn-r93-(27-MAY-2013)
i7z DEBUG: Found Intel Processor
i7z DEBUG:    Stepping 2
i7z DEBUG:    Model f
i7z DEBUG:    Family 6
i7z DEBUG:    Processor Type 0
i7z DEBUG:    Extended Model 3
i7z DEBUG: msr = Model Specific Register
i7z DEBUG: detected a newer model of ivy bridge processor
i7z DEBUG: msr device files DO NOT exist, trying out a makedev script
i7z DEBUG: modprobbing for msr
modprobe: can't change directory to '/lib/modules': No such file or directory
modprobe: can't change directory to '/lib/modules': No such file or directory
 

gigatexal

I'm here to learn
Nov 25, 2012
2,913
607
113
Portland, Oregon
alexandarnarayan.com
I might have to poke around at the C code for the project seeing as it's been abandoned for 3 years I am not sure what I'll be able to accomplish given that it deals with reading of registers and such. Might be time to read up on the internals of the cpu's. I'd like to get this project going again but who knows.

I managed to get this to work on some of my newer SINGLE CPU systems:

Code:
sudo docker run -it --privileged gigatexal/i7z:arch
Built on an Arch image and not squashed

Code:
Cpu speed from cpuinfo 1797.00Mhz
cpuinfo might be wrong if cpufreq is enabled. To guess correctly try estimating
Linux's inbuilt cpu_khz code emulated now
True Frequency (without accounting Turbo) 1797 MHz
  CPU Multiplier 18x || Bus clock frequency (BCLK) 99.83 MHz

Socket [0] - [physical cores=2, logical cores=4, max online cores ever=2]
  TURBO DISABLED on 2 Cores, Hyper Threading ON
  Max Frequency without considering Turbo 1797.00 MHz (99.83 x [18])
  Max TURBO Multiplier (if Enabled) with 1/2/3/4 Cores is  18x/18x/18x/18x
  Real Current Frequency 811.97 MHz [99.83 x 8.13] (Max of below)
        Core [core-id]  :Actual Freq (Mult.)      C0%   Halt(C1)%  C3 %   C6 %
        Core 1 [0]:       806.94 (8.08x)           1    1.66       0       0
        Core 2 [1]:       811.97 (8.13x)           1    42.5       0       0





C0 = Processor running without halting
C1 = Processor running with halts (States >C0 are power saver modes with cores i
C3 = Cores running with PLL turned off and core cache turned off
C6, C7 = Everything in C3 + core state saved to last level cache, C7 is deeper t
  Above values in table are in percentage over the last 1 sec
it also seems to fail on virtual-machines at least it does on my linode box which runs kvm.
 

fractal

Active Member
Jun 7, 2016
309
69
28
33
Not that I want to dissuade you from playing but I compiled i7z a few years ago and have just copied the executable to every machine I use. That is a lot less work for me than installing docker just to check my temperatures...
 
  • Like
Reactions: gigatexal