All of lore.kernel.org
 help / color / mirror / Atom feed
From: Scott Lampert <scott@lampert.org>
Cc: discuss@x86-64.org, cpufreq@lists.linux.org.uk
Subject: Re: [discuss] Re: [PATCH] Allow all Opteron processors to change pstate at same time
Date: Fri, 07 Jul 2006 11:14:57 -0700	[thread overview]
Message-ID: <44AEA4A1.3050601@lampert.org> (raw)
In-Reply-To: <p73fyhdpqe1.fsf@verdi.suse.de>

As an aside, is this what the "AMD Dual-Core Optimizer" driver located at:

http://www.amd.com/us-en/Processors/TechnicalResources/0,,30_182_871_13118,00.html

does for that other OS?  Does this solution work there?
	-Scott

Andi Kleen wrote:
> "Mark Langsdorf" <mark.langsdorf@amd.com> writes:
> 
> [cc'ing back to discuss and cpufreq]
> 
>> The current generation of Opteron processors do not provide a frequency 
>> independent TSC.  This causes wild gettimeofday skew on systems that 
>> enable cpufreq while using TSC as a gtod source.
>>
>> This patch provides a workaround by changing all processors to the same 
>> frequency at the same time, so that the TSC on each processor never 
>> increments at a different rate than the TSC on another processor.
>>
>> the "powernow-k8.tscsync=1" options enables simeltameous transitions.  
>> Other options are necessary to force the use of TSC as a gtod source.
>>
>> This patch should apply cleanly to the 2.6.18-rc1 kernel.
> 
> Your patch seems to be ^M damaged.
> 
> I'm still dubious if the result is really correct if the hardware
> wasn't designed to guarantee synchronous TSC operation.
> 
> Can you do the following test please? 
> 
> - Set this option
> - Let the system run for let's say a day or two with some freq transitions
> and varying loads
> [Better would be to let two systems run in this way to compare]
> - Then hotunplug all the CPUs >0 with
> for i in /sys/devices/system/cpu/cpu*/online ; do echo 0 > $i ; done
> - Wait a bit 
> - Restart them again with 
> for i in /sys/devices/system/cpu/cpu*/online ; do echo 1 > $i ; done
> 
> The kernel should now print the results of the TSC resync for the
> replugged CPUs with output like this
> 
> CPU N: Syncing TSC to CPU 0.
> CPU N: synchronized TSC with CPU 0 (last diff XXX cycles, maxerr YYY cycles)
> 
> How do these numbers look like, also compared to the original boot
> output?
> 
> If the cycles diverge more between the different CPUs it would be a bad sign. 
> It would mean that the error would add up over longer runtime
> and timing would get more and more unstable.
> 
> -Andi
> 

  parent reply	other threads:[~2006-07-07 18:14 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-06 20:31 [PATCH] Allow all Opteron processors to change pstate at same time Mark Langsdorf
2006-07-07 12:10 ` Andi Kleen
2006-07-07 17:36   ` [discuss] " Langsdorf, Mark
2006-07-10 12:45     ` Joachim Deguara
2006-07-10 13:02       ` Joachim Deguara
2006-07-07 18:14   ` Scott Lampert [this message]
2006-07-07 18:26     ` Langsdorf, Mark
2006-07-11 12:55   ` Joachim Deguara
2006-07-11 13:07     ` Andi Kleen
2006-07-11 13:14       ` Arjan van de Ven
2006-07-11 16:15         ` Alan Cox
2006-07-11 16:01           ` Arjan van de Ven
2006-07-11 16:01             ` Arjan van de Ven
2006-07-11 16:04           ` Andi Kleen
2006-07-11 13:31       ` Langsdorf, Mark
2006-07-11 13:34         ` Arjan van de Ven
2006-07-11 13:51           ` Andi Kleen
2006-07-11 13:14     ` [OT] Evolution use (was: Re: [discuss] Re: [PATCH] Allow all Opteron processors to change pstate at same time) Xavier Bestel
2006-07-12 14:06     ` [discuss] Re: [PATCH] Allow all Opteron processors to change pstate at same time Joachim Deguara
2006-07-12 14:54       ` Andi Kleen
2006-07-25 21:47   ` Langsdorf, Mark
2006-07-26 11:31     ` Joachim Deguara
2006-07-26 16:42   ` Langsdorf, Mark
2006-07-26 16:54     ` Andi Kleen
2006-07-26 16:54       ` Andi Kleen
2006-07-26 18:34       ` Langsdorf, Mark
2006-07-26 18:53         ` Andi Kleen
2006-07-26 18:53           ` Andi Kleen
  -- strict thread matches above, loose matches on Subject: below --
2006-07-12 16:11 shin, jacob
2006-07-12 16:14 ` Langsdorf, Mark
2006-07-13 13:06 ` Pavel Machek
2006-07-13 14:32   ` Joachim Deguara
2006-07-16  1:56     ` Pavel Machek
2006-07-17  7:37       ` Joachim Deguara
2006-07-20 15:59         ` Pavel Machek
2006-07-13 13:37 Bhavana Nagendra

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44AEA4A1.3050601@lampert.org \
    --to=scott@lampert.org \
    --cc=cpufreq@lists.linux.org.uk \
    --cc=discuss@x86-64.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.