Re: performance differences: "maxcpus=1" vs. "echo 0 > /sys/devices/system/cpu/cpu1/online"

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Len Brown
Date: Tuesday, March 25, 2008 - 4:27 pm

On Tuesday 25 March 2008, Michael Meyer wrote:

this above is the baseline, yes?
it is same as if you used no boot param
and did not touch the online file, yes?


Please post the contents of 
# grep . /sys/devices/system/cpu/cpu*/cpufreq/*
and also
grep . /proc/acpi/processor/*/power

My guess that the maxcpus=1 case benefits from turbo mode, aka EIDA.
That benefit, however, is subject to this bug:
http://bugzilla.kernel.org/show_bug.cgi?id=5471
because for a single thread to run faster than the marketing MHz,
the other thread must be in deep-idle, which is prevented
by the bug above.

If your scaling_available_frequencies includes 2401000
then you probably have a turbo-mode enabled processor.

one way to verify this would be to disable turbo mode
by pegging the MHz like so:

# echo 2400000 > /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
# echo 2400000 > /sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_max_freq

-Len
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: performance differences: "maxcpus=1" vs. "echo 0 > /sy ..., Len Brown, (Tue Mar 25, 4:27 pm)