Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Apr 2011 09:13:43 +0200
From:      Bartosz Fabianowski <freebsd@chillt.de>
To:        Jeremy Chadwick <freebsd@jdc.parodius.com>
Cc:        freebsd-stable@freebsd.org, John <john@theusgroup.com>
Subject:   Re: System extremely slow under light load
Message-ID:  <4DB51F27.5010508@chillt.de>
In-Reply-To: <20110425004818.GA22579@icarus.home.lan>
References:  <4DA596D3.1090803@chillt.de> <op.vt1efdn68527sy@pinky> <BANLkTik5Jq1QP776xQ0zQvQ5MKYe4LQZUA@mail.gmail.com> <4DB44DA3.5060509@chillt.de> <4DB4589B.2020909@ksu.ru> <4DB45D6C.20203@chillt.de> <20110424182456.9DD03589@server.theusgroup.com> <4DB46ED4.2010500@chillt.de> <20110425004818.GA22579@icarus.home.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
> As the processor gets hotter, internal clocks and so on are throttled
> within the hardware to try and stabilise the temperature (to keep the
> thermal trip point being reached, re: "emergency shutdown"), which
> greatly decreases performance.  I'm not sure if there's a way to
> detect this, but I would hope (?) that it would be visible via the
> CPU clock frequency (on FreeBSD this would be sysctl
> dev.cpu.X.freq).

sysctl dev.cpu.X.freq is used to set the frequency. I have not found any
way to read back its internal state so far.

> If you boot into another operating system such as Linux or Windows,
> do you see the same overall behaviour?  Linux might be easier and
> might have some built-in way to get at CPU temperatures (via
> /proc?).

I will download a Linux ISO and give it a try. The machine currently has
FreeBSD and nothing else installed on it.

> Trying to figure out if this is a FreeBSD issue or not is difficult.
> Can you please provide:
>
> - Contents of rc.conf

# Console
keymap="german.iso"             # Set German keyboard map

# Network
hostname="taiko.lan"            # Set hostname to taiko.lan
ifconfig_re0="DHCP"             # Configure wired Ethernet via DHCP

# Daemons
powerd_enable="YES"             # Run powerd to lower our power usage
sshd_enable="YES"               # Run the SSH daemon
moused_enable="YES"             # Run the mouse daemon
dbus_enable="YES"               # Run the D-Bus daemon
hald_enable="YES"               # Run the HAL daemon
webcamd_enable="YES"            # Run the webcam daemon
cupsd_enable="YES"              # Run the CUPS printer daemon

# Miscellaneous
clear_tmp_enable="YES"          # Clear /tmp at startup
devfs_system_ruleset="local"    # Apply the "local" ruleset to /dev

# PostgreSQL
postgres_enable="YES"           # Run the PostgreSQL server

> - sysctl -a hw.acpi

hw.acpi.supported_sleep_state: S3 S4 S5
hw.acpi.power_button_state: S5
hw.acpi.sleep_button_state: S3
hw.acpi.lid_switch_state: NONE
hw.acpi.standby_state: NONE
hw.acpi.suspend_state: S3
hw.acpi.sleep_delay: 1
hw.acpi.s4bios: 0
hw.acpi.verbose: 0
hw.acpi.disable_on_reboot: 0
hw.acpi.handle_reboot: 0
hw.acpi.reset_video: 0
hw.acpi.cpu.cx_lowest: C1
hw.acpi.acline: 1
hw.acpi.battery.life: -1
hw.acpi.battery.time: -1
hw.acpi.battery.state: 7
hw.acpi.battery.units: 1
hw.acpi.battery.info_expire: 5
hw.acpi.thermal.min_runtime: 0
hw.acpi.thermal.polling_rate: 10
hw.acpi.thermal.user_override: 0
hw.acpi.thermal.tz0.temperature: 26.8C
hw.acpi.thermal.tz0.active: -1
hw.acpi.thermal.tz0.passive_cooling: 0
hw.acpi.thermal.tz0.thermal_flags: 0
hw.acpi.thermal.tz0._PSV: -1
hw.acpi.thermal.tz0._HOT: -1
hw.acpi.thermal.tz0._CRT: 100.0C
hw.acpi.thermal.tz0._ACx: 71.0C 55.0C -1 -1 -1 -1 -1 -1 -1 -1
hw.acpi.thermal.tz0._TC1: -1
hw.acpi.thermal.tz0._TC2: -1
hw.acpi.thermal.tz0._TSP: -1
hw.acpi.thermal.tz1.temperature: 0.0C
hw.acpi.thermal.tz1.active: -1
hw.acpi.thermal.tz1.passive_cooling: 1
hw.acpi.thermal.tz1.thermal_flags: 0
hw.acpi.thermal.tz1._PSV: 95.0C
hw.acpi.thermal.tz1._HOT: -1
hw.acpi.thermal.tz1._CRT: 100.0C
hw.acpi.thermal.tz1._ACx: 71.0C 55.0C -1 -1 -1 -1 -1 -1 -1 -1
hw.acpi.thermal.tz1._TC1: 0
hw.acpi.thermal.tz1._TC2: 2
hw.acpi.thermal.tz1._TSP: 10

> - sysctl -a dev.cpu

dev.cpu.0.%desc: ACPI CPU
dev.cpu.0.%driver: cpu
dev.cpu.0.%location: handle=\_PR_.CPU0
dev.cpu.0.%pnpinfo: _HID=none _UID=0
dev.cpu.0.%parent: acpi0
dev.cpu.0.temperature: 82.0C
dev.cpu.0.freq: 1333
dev.cpu.0.freq_levels: 1734/45000 1599/41741 1466/38582 1333/35485 
1199/32426 1066/29457 933/26552 816/23233 699/19914 583/16595 466/13276 
349/9957 233/6638 116/3319
dev.cpu.0.cx_supported: C1/3 C2/245
dev.cpu.0.cx_lowest: C1
dev.cpu.0.cx_usage: 100.00% 0.00% last 285us
dev.cpu.1.%desc: ACPI CPU
dev.cpu.1.%driver: cpu
dev.cpu.1.%location: handle=\_PR_.CPU1
dev.cpu.1.%pnpinfo: _HID=none _UID=0
dev.cpu.1.%parent: acpi0
dev.cpu.1.temperature: 82.0C
dev.cpu.1.cx_supported: C1/3 C2/245
dev.cpu.1.cx_lowest: C1
dev.cpu.1.cx_usage: 100.00% 0.00% last 383us
dev.cpu.2.%desc: ACPI CPU
dev.cpu.2.%driver: cpu
dev.cpu.2.%location: handle=\_PR_.CPU2
dev.cpu.2.%pnpinfo: _HID=none _UID=0
dev.cpu.2.%parent: acpi0
dev.cpu.2.temperature: 82.0C
dev.cpu.2.cx_supported: C1/3 C2/245
dev.cpu.2.cx_lowest: C1
dev.cpu.2.cx_usage: 100.00% 0.00% last 238us
dev.cpu.3.%desc: ACPI CPU
dev.cpu.3.%driver: cpu
dev.cpu.3.%location: handle=\_PR_.CPU3
dev.cpu.3.%pnpinfo: _HID=none _UID=0
dev.cpu.3.%parent: acpi0
dev.cpu.3.temperature: 82.0C
dev.cpu.3.cx_supported: C1/3 C2/245
dev.cpu.3.cx_lowest: C1
dev.cpu.3.cx_usage: 100.00% 0.00% last 187us
dev.cpu.4.%desc: ACPI CPU
dev.cpu.4.%driver: cpu
dev.cpu.4.%location: handle=\_PR_.CPU4
dev.cpu.4.%pnpinfo: _HID=none _UID=0
dev.cpu.4.%parent: acpi0
dev.cpu.4.temperature: 82.0C
dev.cpu.4.cx_supported: C1/3 C2/245
dev.cpu.4.cx_lowest: C1
dev.cpu.4.cx_usage: 100.00% 0.00% last 426us
dev.cpu.5.%desc: ACPI CPU
dev.cpu.5.%driver: cpu
dev.cpu.5.%location: handle=\_PR_.CPU5
dev.cpu.5.%pnpinfo: _HID=none _UID=0
dev.cpu.5.%parent: acpi0
dev.cpu.5.temperature: 82.0C
dev.cpu.5.cx_supported: C1/3 C2/245
dev.cpu.5.cx_lowest: C1
dev.cpu.5.cx_usage: 100.00% 0.00% last 439us
dev.cpu.6.%desc: ACPI CPU
dev.cpu.6.%driver: cpu
dev.cpu.6.%location: handle=\_PR_.CPU6
dev.cpu.6.%pnpinfo: _HID=none _UID=0
dev.cpu.6.%parent: acpi0
dev.cpu.6.temperature: 82.0C
dev.cpu.6.cx_supported: C1/3 C2/245
dev.cpu.6.cx_lowest: C1
dev.cpu.6.cx_usage: 100.00% 0.00% last 138us
dev.cpu.7.%desc: ACPI CPU
dev.cpu.7.%driver: cpu
dev.cpu.7.%location: handle=\_PR_.CPU7
dev.cpu.7.%pnpinfo: _HID=none _UID=0
dev.cpu.7.%parent: acpi0
dev.cpu.7.temperature: 82.0C
dev.cpu.7.cx_supported: C1/3 C2/245
dev.cpu.7.cx_lowest: C1
dev.cpu.7.cx_usage: 100.00% 0.00% last 434us

> - sysctl -a dev.est

dev.est.0.%desc: Enhanced SpeedStep Frequency Control
dev.est.0.%driver: est
dev.est.0.%parent: cpu0
dev.est.0.freq_settings: 1734/45000 1733/45000 1599/41741 1466/38582 
1333/35485 1199/32426 1066/29457 933/26552
dev.est.1.%desc: Enhanced SpeedStep Frequency Control
dev.est.1.%driver: est
dev.est.1.%parent: cpu1
dev.est.1.freq_settings: 1734/45000 1733/45000 1599/41741 1466/38582 
1333/35485 1199/32426 1066/29457 933/26552
dev.est.2.%desc: Enhanced SpeedStep Frequency Control
dev.est.2.%driver: est
dev.est.2.%parent: cpu2
dev.est.2.freq_settings: 1734/45000 1733/45000 1599/41741 1466/38582 
1333/35485 1199/32426 1066/29457 933/26552
dev.est.3.%desc: Enhanced SpeedStep Frequency Control
dev.est.3.%driver: est
dev.est.3.%parent: cpu3
dev.est.3.freq_settings: 1734/45000 1733/45000 1599/41741 1466/38582 
1333/35485 1199/32426 1066/29457 933/26552
dev.est.4.%desc: Enhanced SpeedStep Frequency Control
dev.est.4.%driver: est
dev.est.4.%parent: cpu4
dev.est.4.freq_settings: 1734/45000 1733/45000 1599/41741 1466/38582 
1333/35485 1199/32426 1066/29457 933/26552
dev.est.5.%desc: Enhanced SpeedStep Frequency Control
dev.est.5.%driver: est
dev.est.5.%parent: cpu5
dev.est.5.freq_settings: 1734/45000 1733/45000 1599/41741 1466/38582 
1333/35485 1199/32426 1066/29457 933/26552
dev.est.6.%desc: Enhanced SpeedStep Frequency Control
dev.est.6.%driver: est
dev.est.6.%parent: cpu6
dev.est.6.freq_settings: 1734/45000 1733/45000 1599/41741 1466/38582 
1333/35485 1199/32426 1066/29457 933/26552
dev.est.7.%desc: Enhanced SpeedStep Frequency Control
dev.est.7.%driver: est
dev.est.7.%parent: cpu7
dev.est.7.freq_settings: 1734/45000 1733/45000 1599/41741 1466/38582 
1333/35485 1199/32426 1066/29457 933/26552

> - sysctl -a dev.cpufreq

dev.cpufreq.0.%driver: cpufreq
dev.cpufreq.0.%parent: cpu0
dev.cpufreq.1.%driver: cpufreq
dev.cpufreq.1.%parent: cpu1
dev.cpufreq.2.%driver: cpufreq
dev.cpufreq.2.%parent: cpu2
dev.cpufreq.3.%driver: cpufreq
dev.cpufreq.3.%parent: cpu3
dev.cpufreq.4.%driver: cpufreq
dev.cpufreq.4.%parent: cpu4
dev.cpufreq.5.%driver: cpufreq
dev.cpufreq.5.%parent: cpu5
dev.cpufreq.6.%driver: cpufreq
dev.cpufreq.6.%parent: cpu6
dev.cpufreq.7.%driver: cpufreq
dev.cpufreq.7.%parent: cpu7

> - sysctl -a kern.timecounter

kern.timecounter.tick: 1
kern.timecounter.choice: TSC(-100) HPET(900) ACPI-safe(850) i8254(0) 
dummy(-1000000)
kern.timecounter.hardware: HPET
kern.timecounter.stepwarnings: 0
kern.timecounter.tc.i8254.mask: 65535
kern.timecounter.tc.i8254.counter: 56046
kern.timecounter.tc.i8254.frequency: 1193182
kern.timecounter.tc.i8254.quality: 0
kern.timecounter.tc.ACPI-safe.mask: 16777215
kern.timecounter.tc.ACPI-safe.counter: 11762669
kern.timecounter.tc.ACPI-safe.frequency: 3579545
kern.timecounter.tc.ACPI-safe.quality: 850
kern.timecounter.tc.HPET.mask: 4294967295
kern.timecounter.tc.HPET.counter: 4005351156
kern.timecounter.tc.HPET.frequency: 14318180
kern.timecounter.tc.HPET.quality: 900
kern.timecounter.tc.TSC.mask: 4294967295
kern.timecounter.tc.TSC.counter: 1320432496
kern.timecounter.tc.TSC.frequency: 1729007846
kern.timecounter.tc.TSC.quality: -100
kern.timecounter.smp_tsc: 0
kern.timecounter.invariant_tsc: 1

> Finally, just as a data point -- and this should be honoured no
> matter what -- there have been cases where manufacturers have
> incorrectly been applying thermal grease (if used rather than a TIM
> pad)

I watched the Dell technician during the various repairs. From what I 
remember, the CPU and GPU share a heat pipe and both have TIM pads.

- Bartosz



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4DB51F27.5010508>