Re: Leaving the Desktop Market

From: Adrian Chadd <adrian_at_freebsd.org>
Date: Mon, 12 May 2014 23:06:59 -0700
Did you set cx_lowest on hw.acpi.cpu ?


-a


On 12 May 2014 20:07, Allan Jude <freebsd_at_allanjude.com> wrote:
> Before and after cx_lowest=c8 on an E5-2620v2
>
> before:
>
> # pcm.x 1
>
>  Intel(r) Performance Counter Monitor V2.6 (2013-11-04 13:43:31 +0100
> ID=db05e43)
>
>  Copyright (c) 2009-2013 Intel Corporation
>
> Number of physical cores: 12
> Number of logical cores: 24
> Threads (logical cores) per physical core: 2
> Num sockets: 2
> Core PMU (perfmon) version: 3
> Number of core PMU generic (programmable) counters: 4
> Width of generic (programmable) counters: 48 bits
> Number of core PMU fixed counters: 3
> Width of fixed counters: 48 bits
> Nominal core frequency: 2100000000 Hz
> Package thermal spec power: 80 Watt; Package minimum power: 51 Watt;
> Package maximum power: 110 Watt;
> ERROR: QPI LL monitoring device (0:127:8:2) is missing. The QPI
> statistics will be incomplete or missing.
> ERROR: QPI LL monitoring device (0:127:9:2) is missing. The QPI
> statistics will be incomplete or missing.
> Socket 0: 1 memory controllers detected with total number of 4 channels.
> 0 QPI ports detected.
> ERROR: QPI LL monitoring device (0:255:8:2) is missing. The QPI
> statistics will be incomplete or missing.
> ERROR: QPI LL monitoring device (0:255:9:2) is missing. The QPI
> statistics will be incomplete or missing.
> Socket 1: 1 memory controllers detected with total number of 4 channels.
> 0 QPI ports detected.
> Max QPI link speed: 14.4 GBytes/second (7.2 GT/second)
>
> Detected Intel(R) Xeon(R) CPU E5-2620 v2 _at_ 2.10GHz "Intel(r)
> microarchitecture codename Ivy Bridge-EP/EN/EX/Ivytown"
>
>  EXEC  : instructions per nominal CPU cycle
>  IPC   : instructions per CPU cycle
>  FREQ  : relation to nominal CPU frequency='unhalted clock
> ticks'/'invariant timer ticks' (includes Intel Turbo Boost)
>  AFREQ : relation to nominal CPU frequency while in active state (not in
> power-saving C state)='unhalted clock ticks'/'invariant timer ticks
> while in C0-state'  (includes Intel Turbo Boost)
>  L3MISS: L3 cache misses
>  L2MISS: L2 cache misses (including other core's L2 cache *hits*)
>  L3HIT : L3 cache hit ratio (0.00-1.00)
>  L2HIT : L2 cache hit ratio (0.00-1.00)
>  L3CLK : ratio of CPU cycles lost due to L3 cache misses (0.00-1.00), in
> some cases could be >1.0 due to a higher memory latency
>  L2CLK : ratio of CPU cycles lost due to missing L2 cache but still
> hitting L3 cache (0.00-1.00)
>  READ  : bytes read from memory controller (in GBytes)
>  WRITE : bytes written to memory controller (in GBytes)
>  TEMP  : Temperature reading in 1 degree Celsius relative to the TjMax
> temperature (thermal headroom): 0 corresponds to the max temperature
>
>
>  Core (SKT) | EXEC | IPC  | FREQ  | AFREQ | L3MISS | L2MISS | L3HIT |
> L2HIT | L3CLK | L2CLK  | READ  | WRITE | TEMP
>
>    0    0     0.06   1.02   0.06    0.99    2451 K   3421 K    0.28
> 0.85    0.36    0.03     N/A     N/A     56
>    1    0     0.03   1.07   0.03    0.99     649 K   1331 K    0.51
> 0.93    0.18    0.04     N/A     N/A     56
>    2    0     0.06   1.27   0.05    0.99    1020 K   1738 K    0.41
> 0.92    0.19    0.03     N/A     N/A     47
>    3    0     0.05   1.20   0.04    0.98    1057 K   2256 K    0.53
> 0.87    0.20    0.05     N/A     N/A     47
>    4    0     0.06   1.28   0.05    0.99    1115 K   1942 K    0.43
> 0.91    0.20    0.03     N/A     N/A     56
>    5    0     0.08   1.31   0.06    0.99    1046 K   1932 K    0.46
> 0.94    0.15    0.03     N/A     N/A     56
>    6    0     0.06   1.27   0.05    0.99    1167 K   1866 K    0.37
> 0.92    0.20    0.02     N/A     N/A     53
>    7    0     0.12   1.45   0.09    0.99    1256 K   2263 K    0.45
> 0.95    0.12    0.02     N/A     N/A     53
>    8    0     0.05   1.05   0.05    0.98    2372 K   3072 K    0.23
> 0.87    0.40    0.02     N/A     N/A     53
>    9    0     0.03   1.19   0.03    0.94     968 K   1521 K    0.36
> 0.48    0.29    0.04     N/A     N/A     53
>   10    0     0.09   1.27   0.07    0.99    1773 K   3184 K    0.44
> 0.89    0.21    0.03     N/A     N/A     52
>   11    0     0.14   1.33   0.10    0.99    1745 K   2808 K    0.38
> 0.96    0.14    0.02     N/A     N/A     52
>   12    1     0.04   1.21   0.03    0.98    1116 K   1867 K    0.40
> 0.69    0.28    0.04     N/A     N/A     49
>   13    1     0.09   1.24   0.07    0.99    2248 K   3901 K    0.42
> 0.81    0.27    0.04     N/A     N/A     49
>   14    1     0.10   1.35   0.07    0.98    1668 K   2603 K    0.36
> 0.92    0.20    0.02     N/A     N/A     49
>   15    1     0.05   1.26   0.04    0.99    1435 K   2286 K    0.37
> 0.68    0.33    0.04     N/A     N/A     49
>   16    1     0.11   1.29   0.08    0.99    1887 K   3232 K    0.42
> 0.92    0.19    0.03     N/A     N/A     44
>   17    1     0.06   1.28   0.05    0.99     966 K   1626 K    0.41
> 0.93    0.18    0.02     N/A     N/A     44
>   18    1     0.07   1.30   0.05    0.99    1040 K   1870 K    0.44
> 0.92    0.18    0.03     N/A     N/A     47
>   19    1     0.12   1.30   0.09    0.99    1973 K   3133 K    0.37
> 0.93    0.18    0.02     N/A     N/A     47
>   20    1     0.05   1.33   0.04    0.99     898 K   1531 K    0.41
> 0.91    0.19    0.03     N/A     N/A     48
>   21    1     0.06   1.18   0.05    0.97    1140 K   2881 K    0.60
> 0.85    0.18    0.06     N/A     N/A     48
>   22    1     0.20   1.34   0.15    1.00    3082 K   4634 K    0.33
> 0.94    0.17    0.02     N/A     N/A     47
>   23    1     0.10   1.32   0.08    0.99    1732 K   2885 K    0.40
> 0.93    0.19    0.02     N/A     N/A     47
> -------------------------------------------------------------------------------------------------------------------
>  SKT    0     0.07   1.25   0.06    0.98      16 M     27 M    0.39
> 0.92    0.21    0.03    4.56    2.91     46
>  SKT    1     0.09   1.30   0.07    0.99      19 M     32 M    0.41
> 0.91    0.20    0.03    3.44    2.56     44
> -------------------------------------------------------------------------------------------------------------------
>  TOTAL  *     0.08   1.27   0.06    0.99      35 M     59 M    0.40
> 0.91    0.21    0.03    8.00    5.46     N/A
>
>  Instructions retired:   39 G ; Active cycles:   31 G ; Time (TSC):   21
> Gticks ; C0 (active,non-halted) core residency: 6.28 %
>
>  C1 core residency: 93.72 %; C3 core residency: 0.00 %; C6 core
> residency: 0.00 %; C7 core residency: 0.00 %;
>  C2 package residency: 0.00 %; C3 package residency: 0.00 %; C6 package
> residency: 0.00 %; C7 package residency: 0.00 %;
>
>  PHYSICAL CORE IPC                 : 2.55 => corresponds to 63.74 %
> utilization for cores in active state
>  Instructions per nominal CPU cycle: 0.16 => corresponds to 3.95 % core
> utilization over time interval
>
> Intel(r) QPI data traffic estimation in bytes (data traffic coming to
> CPU/socket through QPI links):
>
>               |
> ----------------------------------------------------------------------------------------------
>  SKT    0     |
>  SKT    1     |
> ----------------------------------------------------------------------------------------------
> Total QPI incoming data traffic:    0       QPI data traffic/Memory
> controller traffic: 0.00
>
> Intel(r) QPI traffic estimation in bytes (data and non-data traffic
> outgoing from CPU/socket through QPI links):
>
>               |
> ----------------------------------------------------------------------------------------------
>  SKT    0     |
>  SKT    1     |
> ----------------------------------------------------------------------------------------------
> Total QPI outgoing data and non-data traffic:    0
>
> ----------------------------------------------------------------------------------------------
>  SKT    0 package consumed 252.82 Joules
>  SKT    1 package consumed 236.10 Joules
> ----------------------------------------------------------------------------------------------
>  TOTAL:                    488.93 Joules
>
> ----------------------------------------------------------------------------------------------
>  SKT    0 DIMMs consumed 19.62 Joules
>  SKT    1 DIMMs consumed 12.17 Joules
> ----------------------------------------------------------------------------------------------
>  TOTAL:                  31.79 Joules
>
>
>
>
>
>
> and After:
>
> # pcm.x
>
>  Intel(r) Performance Counter Monitor V2.6 (2013-11-04 13:43:31 +0100
> ID=db05e43)
>
>  Copyright (c) 2009-2013 Intel Corporation
>
> Number of physical cores: 12
> Number of logical cores: 24
> Threads (logical cores) per physical core: 2
> Num sockets: 2
> Core PMU (perfmon) version: 3
> Number of core PMU generic (programmable) counters: 4
> Width of generic (programmable) counters: 48 bits
> Number of core PMU fixed counters: 3
> Width of fixed counters: 48 bits
> Nominal core frequency: 2100000000 Hz
> Package thermal spec power: 80 Watt; Package minimum power: 51 Watt;
> Package maximum power: 110 Watt;
> ERROR: QPI LL monitoring device (0:127:8:2) is missing. The QPI
> statistics will be incomplete or missing.
> ERROR: QPI LL monitoring device (0:127:9:2) is missing. The QPI
> statistics will be incomplete or missing.
> Socket 0: 1 memory controllers detected with total number of 4 channels.
> 0 QPI ports detected.
> ERROR: QPI LL monitoring device (0:255:8:2) is missing. The QPI
> statistics will be incomplete or missing.
> ERROR: QPI LL monitoring device (0:255:9:2) is missing. The QPI
> statistics will be incomplete or missing.
> Socket 1: 1 memory controllers detected with total number of 4 channels.
> 0 QPI ports detected.
> Max QPI link speed: 14.4 GBytes/second (7.2 GT/second)
>
> Detected Intel(R) Xeon(R) CPU E5-2620 v2 _at_ 2.10GHz "Intel(r)
> microarchitecture codename Ivy Bridge-EP/EN/EX/Ivytown"
>
>  EXEC  : instructions per nominal CPU cycle
>  IPC   : instructions per CPU cycle
>  FREQ  : relation to nominal CPU frequency='unhalted clock
> ticks'/'invariant timer ticks' (includes Intel Turbo Boost)
>  AFREQ : relation to nominal CPU frequency while in active state (not in
> power-saving C state)='unhalted clock ticks'/'invariant timer ticks
> while in C0-state'  (includes Intel Turbo Boost)
>  L3MISS: L3 cache misses
>  L2MISS: L2 cache misses (including other core's L2 cache *hits*)
>  L3HIT : L3 cache hit ratio (0.00-1.00)
>  L2HIT : L2 cache hit ratio (0.00-1.00)
>  L3CLK : ratio of CPU cycles lost due to L3 cache misses (0.00-1.00), in
> some cases could be >1.0 due to a higher memory latency
>  L2CLK : ratio of CPU cycles lost due to missing L2 cache but still
> hitting L3 cache (0.00-1.00)
>  READ  : bytes read from memory controller (in GBytes)
>  WRITE : bytes written to memory controller (in GBytes)
>  TEMP  : Temperature reading in 1 degree Celsius relative to the TjMax
> temperature (thermal headroom): 0 corresponds to the max temperature
>
>
>  Core (SKT) | EXEC | IPC  | FREQ  | AFREQ | L3MISS | L2MISS | L3HIT |
> L2HIT | L3CLK | L2CLK  | READ  | WRITE | TEMP
>
>    0    0     0.06   1.02   0.06    0.99    2451 K   3421 K    0.28
> 0.85    0.36    0.03     N/A     N/A     56
>    1    0     0.03   1.07   0.03    0.99     649 K   1331 K    0.51
> 0.93    0.18    0.04     N/A     N/A     56
>    2    0     0.06   1.27   0.05    0.99    1020 K   1738 K    0.41
> 0.92    0.19    0.03     N/A     N/A     47
>    3    0     0.05   1.20   0.04    0.98    1057 K   2256 K    0.53
> 0.87    0.20    0.05     N/A     N/A     47
>    4    0     0.06   1.28   0.05    0.99    1115 K   1942 K    0.43
> 0.91    0.20    0.03     N/A     N/A     56
>    5    0     0.08   1.31   0.06    0.99    1046 K   1932 K    0.46
> 0.94    0.15    0.03     N/A     N/A     56
>    6    0     0.06   1.27   0.05    0.99    1167 K   1866 K    0.37
> 0.92    0.20    0.02     N/A     N/A     53
>    7    0     0.12   1.45   0.09    0.99    1256 K   2263 K    0.45
> 0.95    0.12    0.02     N/A     N/A     53
>    8    0     0.05   1.05   0.05    0.98    2372 K   3072 K    0.23
> 0.87    0.40    0.02     N/A     N/A     53
>    9    0     0.03   1.19   0.03    0.94     968 K   1521 K    0.36
> 0.48    0.29    0.04     N/A     N/A     53
>   10    0     0.09   1.27   0.07    0.99    1773 K   3184 K    0.44
> 0.89    0.21    0.03     N/A     N/A     52
>   11    0     0.14   1.33   0.10    0.99    1745 K   2808 K    0.38
> 0.96    0.14    0.02     N/A     N/A     52
>   12    1     0.04   1.21   0.03    0.98    1116 K   1867 K    0.40
> 0.69    0.28    0.04     N/A     N/A     49
>   13    1     0.09   1.24   0.07    0.99    2248 K   3901 K    0.42
> 0.81    0.27    0.04     N/A     N/A     49
>   14    1     0.10   1.35   0.07    0.98    1668 K   2603 K    0.36
> 0.92    0.20    0.02     N/A     N/A     49
>   15    1     0.05   1.26   0.04    0.99    1435 K   2286 K    0.37
> 0.68    0.33    0.04     N/A     N/A     49
>   16    1     0.11   1.29   0.08    0.99    1887 K   3232 K    0.42
> 0.92    0.19    0.03     N/A     N/A     44
>   17    1     0.06   1.28   0.05    0.99     966 K   1626 K    0.41
> 0.93    0.18    0.02     N/A     N/A     44
>   18    1     0.07   1.30   0.05    0.99    1040 K   1870 K    0.44
> 0.92    0.18    0.03     N/A     N/A     47
>   19    1     0.12   1.30   0.09    0.99    1973 K   3133 K    0.37
> 0.93    0.18    0.02     N/A     N/A     47
>   20    1     0.05   1.33   0.04    0.99     898 K   1531 K    0.41
> 0.91    0.19    0.03     N/A     N/A     48
>   21    1     0.06   1.18   0.05    0.97    1140 K   2881 K    0.60
> 0.85    0.18    0.06     N/A     N/A     48
>   22    1     0.20   1.34   0.15    1.00    3082 K   4634 K    0.33
> 0.94    0.17    0.02     N/A     N/A     47
>   23    1     0.10   1.32   0.08    0.99    1732 K   2885 K    0.40
> 0.93    0.19    0.02     N/A     N/A     47
> -------------------------------------------------------------------------------------------------------------------
>  SKT    0     0.07   1.25   0.06    0.98      16 M     27 M    0.39
> 0.92    0.21    0.03    4.56    2.91     46
>  SKT    1     0.09   1.30   0.07    0.99      19 M     32 M    0.41
> 0.91    0.20    0.03    3.44    2.56     44
> -------------------------------------------------------------------------------------------------------------------
>  TOTAL  *     0.08   1.27   0.06    0.99      35 M     59 M    0.40
> 0.91    0.21    0.03    8.00    5.46     N/A
>
>  Instructions retired:   39 G ; Active cycles:   31 G ; Time (TSC):   21
> Gticks ; C0 (active,non-halted) core residency: 6.28 %
>
>  C1 core residency: 93.72 %; C3 core residency: 0.00 %; C6 core
> residency: 0.00 %; C7 core residency: 0.00 %;
>  C2 package residency: 0.00 %; C3 package residency: 0.00 %; C6 package
> residency: 0.00 %; C7 package residency: 0.00 %;
>
>  PHYSICAL CORE IPC                 : 2.55 => corresponds to 63.74 %
> utilization for cores in active state
>  Instructions per nominal CPU cycle: 0.16 => corresponds to 3.95 % core
> utilization over time interval
>
> Intel(r) QPI data traffic estimation in bytes (data traffic coming to
> CPU/socket through QPI links):
>
>               |
> ----------------------------------------------------------------------------------------------
>  SKT    0     |
>  SKT    1     |
> ----------------------------------------------------------------------------------------------
> Total QPI incoming data traffic:    0       QPI data traffic/Memory
> controller traffic: 0.00
>
> Intel(r) QPI traffic estimation in bytes (data and non-data traffic
> outgoing from CPU/socket through QPI links):
>
>               |
> ----------------------------------------------------------------------------------------------
>  SKT    0     |
>  SKT    1     |
> ----------------------------------------------------------------------------------------------
> Total QPI outgoing data and non-data traffic:    0
>
> ----------------------------------------------------------------------------------------------
>  SKT    0 package consumed 252.82 Joules
>  SKT    1 package consumed 236.10 Joules
> ----------------------------------------------------------------------------------------------
>  TOTAL:                    488.93 Joules
>
> ----------------------------------------------------------------------------------------------
>  SKT    0 DIMMs consumed 19.62 Joules
>  SKT    1 DIMMs consumed 12.17 Joules
> ----------------------------------------------------------------------------------------------
>  TOTAL:                  31.79 Joules
>
>
>
>
>
> # sysctl dev.cpu.0
> dev.cpu.0.%desc: ACPI CPU
> dev.cpu.0.%driver: cpu
> dev.cpu.0.%location: handle=\_SB_.SCK0.C000
> dev.cpu.0.%pnpinfo: _HID=ACPI0007 _UID=0
> dev.cpu.0.%parent: acpi0
> dev.cpu.0.coretemp.delta: 55
> dev.cpu.0.coretemp.resolution: 1
> dev.cpu.0.coretemp.tjmax: 84.0C
> dev.cpu.0.coretemp.throttle_log: 0
> dev.cpu.0.temperature: 29.0C
> dev.cpu.0.freq: 2100
> dev.cpu.0.freq_levels: 2101/80000 2100/80000 2000/75136 1900/70367
> 1800/65694 1700/61114 1600/57383 1500/52992 1400/48680 1300/44460
> 1200/41050 1050/35918 900/30787 750/25656 600/20525 450/15393 300/10262
> 150/5131
> dev.cpu.0.cx_supported: C1/1/1 C2/2/41
> dev.cpu.0.cx_lowest: C8
> dev.cpu.0.cx_usage: 13.88% 86.11% last 2517us
>
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
Received on Tue May 13 2014 - 04:07:00 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:49 UTC