
Code: Select all
$ cat /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state
3401000 1870423
3400000 24155
3300000 17158
3200000 17398
3100000 21504
3000000 15002
2900000 19560
2800000 14144
2700000 15769
2600000 12017
2500000 12041
2400000 15470
2300000 12035
2200000 14898
2100000 67065
1600000 72200830
It also suggest me some things. Should I do it?Cn Avg residency P-states (frequencies)
C0 (cpu running) ( 0.6%)
polling 0.0ms ( 0.0%)
C1 mwait 0.1ms ( 1.3%)
C2 mwait 1.3ms ( 0.1%)
C3 mwait 13.1ms (98.0%)
i7z DEBUG: i7z version: svn-r77-(20-Nov-2011)
i7z DEBUG: Found Intel Processor
i7z DEBUG: Stepping 7
i7z DEBUG: Model a
i7z DEBUG: Family 6
i7z DEBUG: Processor Type 0
i7z DEBUG: Extended Model 2
i7z DEBUG: msr = Model Specific Register
i7z DEBUG: Detected an i3/i5/i7 - 32nm (sandy bridge - 2nd generation
i7z DEBUG: msr device files DONOT exist, trying out a m
mknod: `/dev/cpu/0/cpuid': File exists
mknod: `/dev/cpu/1/cpuid': File exists
mknod: `/dev/cpu/2/cpuid': File exists
mknod: `/dev/cpu/3/cpuid': File exists
mknod: `/dev/cpu/4/cpuid': File exists
mknod: `/dev/cpu/5/cpuid': File exists
mknod: `/dev/cpu/6/cpuid': File exists
mknod: `/dev/cpu/7/cpuid': File exists
i7z DEBUG: modprobbing for msr
FATAL: Module msr not found.
FATAL: Module msr not found.
------------------------------
--[core id]--- Other information
-------------------------------------
--[0] Processor number 0
--[0] Socket number/Hyperthreaded Sibling number 0,4
--[0] Core id number 0
--[0] Display core in i7z Tool: Yes
--[1] Processor number 1
--[1] Socket number/Hyperthreaded Sibling number 0,5
--[1] Core id number 1
--[1] Display core in i7z Tool: Yes
--[2] Processor number 2
--[2] Socket number/Hyperthreaded Sibling number 0,6
--[2] Core id number 2
--[2] Display core in i7z Tool: Yes
--[3] Processor number 3
--[3] Socket number/Hyperthreaded Sibling number 0,7
--[3] Core id number 3
--[3] Display core in i7z Tool: Yes
--[4] Processor number 4
--[4] Socket number/Hyperthreaded Sibling number 0,0
--[4] Core id number 0
--[4] Display core in i7z Tool: No
--[5] Processor number 5
--[5] Socket number/Hyperthreaded Sibling number 0,1
--[5] Core id number 1
--[5] Display core in i7z Tool: No
--[6] Processor number 6
--[6] Socket number/Hyperthreaded Sibling number 0,2
--[6] Core id number 2
--[6] Display core in i7z Tool: No
--[7] Processor number 7
--[7] Socket number/Hyperthreaded Sibling number 0,3
--[7] Core id number 3
--[7] Display core in i7z Tool: No
Socket-0 [num of cpus 4 physical 4 logical 8] 0,1,2,3,
Socket-1 [num of cpus 0 physical 0 logical 0]
GUI has been Turned ON
Logging is OFF
i7z DEBUG: Single Socket Detected
i7z DEBUG: In i7z Single_Socket()
i7z DEBUG: guessing Sandy Bridge
Quitting i7z
Code: Select all
EMERGE_DEFAULT_OPTS="--jobs=3"
MAKEOPTS="-j9 -l8"Code: Select all
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="-gtk -gnome gt4 kde dvd alsa cdr mmx sse sse2
consolekit dbus policykit udev"
EMERGE_DEFAULT_OPTS="--jobs 8 --load-average 16"
MAKEOPTS="-j9 -l16"
PORT_LOGDIR="var/log/portage"
CLEAN_DELAY="2"
PORTAGE_NICENESS="19"
PORTAGE_IONICE_COMMAND="ionice -c 3 -p \${PID}"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
AUTOCLEAN="yes"
INPUT_DEVICES="evdev keyboard mouse"
VIDEO_CARDS="nvidia"
LINGUAS="pl en_US"
Code: Select all
## These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="-gtk -gnome gt4 kde dvd alsa cdr mmx sse sse2"
EMERGE_DEFAULT_OPTS="--jobs 8 --load-average 16"
MAKEOPTS="-j9 -l16"
PORT_LOGDIR="var/log/portage"
CLEAN_DELAY="2"
PORTAGE_NICENESS="19"
PORTAGE_IONICE_COMMAND="ionice -c 3 -p \${PID}"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
AUTOCLEAN="yes"
VIDEO_CARDS="nouveau"
INPUT_DEVICES="evdev keyboard mouse"
"It's really slow" is not an easy description to work with. A 3.4GHz core i7 is anything but slow, it's a beast. Maybe your expectations are a bit out of whack, compiling takes time. Compiling big packages takes quite a lot of time. But:kbzium wrote:It seems i've made it already. But are the other settings okay? It's really slow.
In practice you can't wear a CPU unless you overtweak it into toast. Minimising wakeups is about saving power. If you're not running off a battery, it's not all that important. Your numbers are fine, anyway. It is completely pointless to try to compare windows and linux in terms of wakeups/sec.Does this wakeups wear cpu's somehow? Or it's just energy-related? Do you happen to know how many wakeups does windows 7 (sorry) make? One more thing: what about voltages? How to check if cpu voltage is reduced when idle? This powertop should show me that too, yes? But I have misconfigured my kernel so it can't do that now i guess.
Code: Select all
taskset -c 0 mhz
3603 MHz, 0.2775 nanosec clock
As long as you don't mess with some strange kernel patches or play with the MSR on your own, the CPU will do it on your own. Changing voltage in BIOS, however, MAY influence the way the hardware control works (but this applies to any OS, not just Linux).But what about voltages? Does it also let processor (or bios) decide? I don't want my i7 running at 1.2V at 1600MHz, cause it normally runs at 0.9V then.
Emerge the lm_sensors package. In order to support all that, you need the appropriate sensor for Intel CPUs (if I remember correctly, it is called "CORETEMP" - you find that in the hardware monitoring section of device drivers in the kernel configuration). If you enable that (and load the module, if build as module) "sensors" will read the internal sensors of the CPU. These values will be significantly higher than the values reported by the (external to CPU) sensors of the mainboard. For your CPU, everything up to the lower 80s (celsius) should be okay for high load. Second, for reading voltage and temperature sensors of mainboard you need the right sensor modules for YOUR board. Best is here to try or to google for lm_sensors and your board. Please keep in mind that these values may not be correct.Moreover, do you happen to know what kernel options should I enable in order to fully monitor my CPU yet not let it be destroyed anyhow? Now i cannot display detailed things like temperature and so on.
Are you sure that you know how to compile a kernel?Kernel compilation still uses only 1 tread/core. up to 15%... Any ideas? I've changed those two options.