From: Mattia Dongili <malattia@linux.it>
To: Eric Piel <Eric.Piel@tremplin-utc.net>
Cc: davej@redhat.com, cpufreq@lists.linux.org.uk,
Dominik Brodowski <linux@dominikbrodowski.net>
Subject: Re: [PATCH] transition latency of speedstep-ich (third try)
Date: Mon, 28 Nov 2005 23:12:38 +0100 [thread overview]
Message-ID: <20051128221237.GA6340@inferi.kami.home> (raw)
In-Reply-To: <4388E454.6050304@tremplin-utc.net>
On Sat, Nov 26, 2005 at 11:40:20PM +0100, Eric Piel wrote:
> 05.10.2005 22:39, Pallipadi, Venkatesh wrote/a écrit:
[...]
> >Do you have ACPI PM timer on your system? May be we can measure the
> >latency using that.
> >
> Hello,
>
> Sorry for the looonnnggg delay of the reply. I've finally found time to
> hunt for the PM timer on my computer, found it, and kludged
> speedstep-ich to read it :-) For verification and completeness, the
> patch is attached. (the PM timer address is hard-coded, it has to be
> changed before running it on another system, it's indicated at boot in
> dmesg).
>
> So the results are quite interesting and confirm your expectations,
> Venki. After few hours with the ondemand governor, I checked the logs
> and the transition latency seems very stable: around 735 to 742 PM timer
> ticks (~206 us). So indeed, 100us of transition latency was quite
> under-estimating it!
So here's some measurement on my P3M (seems a little faster than yours
in switching):
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 11
model name : Intel(R) Pentium(R) III Mobile CPU 1000MHz
stepping : 1
cpu MHz : 994.394
cache size : 512 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse
bogomips : 1991.49
cpufrequtils 0.3: cpufreq-info (C) Dominik Brodowski 2004
Report errors and bugs to linux@brodo.de, please.
analyzing CPU 0:
driver: speedstep-ich
CPUs which need to switch frequency at the same time: 0
hardware limits: 732 MHz - 998 MHz
available frequency steps: 998 MHz, 732 MHz
available cpufreq governors: powersave, performance
current policy: frequency should be within 732 MHz and 998 MHz.
The governor "performance" may decide which speed to use
within this range.
current CPU frequency is 998 MHz.
Some stats while switching from the 2 available frequencies while
doing some random compile and/or disk intensive operation:
| min->MAX | MAX->min
+--------- +---------
| 709 PM cicles - occurences 1 | 709 PM cicles - occurences 1
| 710 PM cicles - occurences 1 | 710 PM cicles - occurences 5
| 711 PM cicles - occurences 3 | 711 PM cicles - occurences 2
| 712 PM cicles - occurences 2 | 712 PM cicles - occurences 3
| 713 PM cicles - occurences 9 | 713 PM cicles - occurences 3
| 714 PM cicles - occurences 1 | 714 PM cicles - occurences 3
| 715 PM cicles - occurences 4 | 715 PM cicles - occurences 3
| 716 PM cicles - occurences 5 | 716 PM cicles - occurences 6
| 717 PM cicles - occurences 5 | 717 PM cicles - occurences 6
| 718 PM cicles - occurences 2 | 718 PM cicles - occurences 5
| 719 PM cicles - occurences 6 | 719 PM cicles - occurences 4
| 720 PM cicles - occurences 1 | 720 PM cicles - occurences 2
| 721 PM cicles - occurences 3 | 721 PM cicles - occurences 1
| 722 PM cicles - occurences 4 | 722 PM cicles - occurences 4
| 723 PM cicles - occurences 1 | 723 PM cicles - occurences 2
| 724 PM cicles - occurences 3 | 724 PM cicles - occurences 1
PM cicles weighted average: 716.412
TSC cicles weighted average: 6009.422
(you don't want to see the perl script that generated it) :)
> Now back to the original problem, from those measurements, which time
> should we put as the maximal transition latency for speedstep-ich? Do
> you think we can simply put something like 300us and that's it? Maybe we
I just build speedstep-ich with transition_latency = 250
I'll let you know how it goes. Are you interested?
> could distinguish between PIII and P4 ? It would require someone to
> rerun the measurement on a P4 hardware. Do we need to take into account
> as a parameter the CPU frequency?
Maybe it's already been discussed, but how bad would be trying to
measure transition latency at runtime?
--
mattia
:wq!
next prev parent reply other threads:[~2005-11-28 22:12 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-05 20:39 [PATCH] transition latency of speedstep-ich (third try) Pallipadi, Venkatesh
2005-11-26 22:40 ` Eric Piel
2005-11-28 22:12 ` Mattia Dongili [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-11-28 22:19 Pallipadi, Venkatesh
2005-11-28 23:35 ` Eric Piel
2005-11-28 23:48 ` Mattia Dongili
2005-11-29 7:48 ` Mattia Dongili
2005-09-28 23:53 Pallipadi, Venkatesh
2005-09-29 22:06 ` Eric Piel
2005-10-14 15:19 ` Stefan Seyfried
2005-09-28 1:26 Pallipadi, Venkatesh
2005-09-28 21:38 ` Eric Piel
2005-02-06 22:33 [PATCH] support for CPUFREQ_ETERNAL drivers by the ondemand governor Eric Piel
2005-02-09 19:15 ` Dominik Brodowski
2005-03-06 17:06 ` [PATCH] transition latency of speedstep-ich Eric Piel
[not found] ` <20050307182137.GB24559@isilmar.linta.de>
[not found] ` <432DD8DD.3090805@tremplin-utc.net>
[not found] ` <20050919101843.GA13041@isilmar.linta.de>
2005-09-19 22:35 ` [PATCH] transition latency of speedstep-ich (third try) Eric Piel
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=20051128221237.GA6340@inferi.kami.home \
--to=malattia@linux.it \
--cc=Eric.Piel@tremplin-utc.net \
--cc=cpufreq@lists.linux.org.uk \
--cc=davej@redhat.com \
--cc=linux@dominikbrodowski.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox