Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
turbostat tool update for Linux-3.8
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Len Brown  
View profile  
 More options Nov 14 2012, 3:43 pm
Newsgroups: fa.linux.kernel
From: Len Brown <l...@kernel.org>
Date: Wed, 14 Nov 2012 20:43:39 UTC
Local: Wed, Nov 14 2012 3:43 pm
Subject: turbostat tool update for Linux-3.8
Here are some turbostat patches I have staged.
The 1st two I've requested be pulled into 3.7,
the rest are for 3.8

The final patch allows turbostat to print Watts
as measured by hardware RAPL counters -- something
that people have been asking for.

Please let me know if you see troubles with any of these patches.

thanks,
Len Brown, Intel Open Source Technology Center

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "tools/power turbostat: Repair Segmentation fault when using -i option" by Len Brown
Len Brown  
View profile  
 More options Nov 14 2012, 3:45 pm
Newsgroups: fa.linux.kernel
From: Len Brown <l...@kernel.org>
Date: Wed, 14 Nov 2012 20:45:52 UTC
Local: Wed, Nov 14 2012 3:45 pm
Subject: [PATCH 1/7] tools/power turbostat: Repair Segmentation fault when using -i option
From: Len Brown <len.br...@intel.com>

Fix regression caused by commit 8e180f3cb6b7510a3bdf14e16ce87c9f5d86f102
(tools/power turbostat: add [-d MSR#][-D MSR#] options to print counter
deltas)

Signed-off-by: Len Brown <len.br...@intel.com>
---
 tools/power/x86/turbostat/turbostat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c
index 2655ae9..9942dee 100644
--- a/tools/power/x86/turbostat/turbostat.c
+++ b/tools/power/x86/turbostat/turbostat.c
@@ -1594,7 +1594,7 @@ void cmdline(int argc, char **argv)

        progname = argv[0];

-       while ((opt = getopt(argc, argv, "+pPSvisc:sC:m:M:")) != -1) {
+       while ((opt = getopt(argc, argv, "+pPSvi:sc:sC:m:M:")) != -1) {
                switch (opt) {
                case 'p':
                        show_core_only++;
--
1.8.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "tools/power turbostat: print Watts" by Betty Dall
Betty Dall  
View profile  
 More options Nov 15 2012, 3:59 pm
Newsgroups: fa.linux.kernel
From: Betty Dall <betty.d...@hp.com>
Date: Thu, 15 Nov 2012 20:59:51 UTC
Local: Thurs, Nov 15 2012 3:59 pm
Subject: Re: [PATCH 7/7] tools/power turbostat: print Watts
On Wed, 2012-11-14 at 15:43 -0500, Len Brown wrote:
> From: Len Brown <len.br...@intel.com>

..

> @@ -1644,7 +1967,7 @@ int main(int argc, char **argv)
>    cmdline(argc, argv);

>    if (verbose > 1)
> -          fprintf(stderr, "turbostat v2.1 October 6, 2012"
> +          fprintf(stderr, "turbostat v3.0 November 14, 2012"
>                    " - Len Brown <l...@kernel.org>\n");

>    turbostat_init();

I applied these 7 patches in order to a the upstream kernel and this
last hunk was rejected:

$ cat turbostat.c.rej
--- tools/power/x86/turbostat/turbostat.c
+++ tools/power/x86/turbostat/turbostat.c
@@ -1967,7 +2290,7 @@
        cmdline(argc, argv);

        if (verbose > 1)
-               fprintf(stderr, "turbostat v2.1 October 6, 2012"
+               fprintf(stderr, "turbostat v3.0 November 14, 2012"
                        " - Len Brown <lenb@xxxxxxxxxx>\n");

        turbostat_init();

-Betty

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "turbostat tool update for Linux-3.8" by Betty Dall
Betty Dall  
View profile  
 More options Nov 15 2012, 4:54 pm
Newsgroups: fa.linux.kernel
From: Betty Dall <betty.d...@hp.com>
Date: Thu, 15 Nov 2012 21:54:55 UTC
Local: Thurs, Nov 15 2012 4:54 pm
Subject: Re: turbostat tool update for Linux-3.8

On Wed, 2012-11-14 at 15:43 -0500, Len Brown wrote:
> Here are some turbostat patches I have staged.
> The 1st two I've requested be pulled into 3.7,
> the rest are for 3.8

> The final patch allows turbostat to print Watts
> as measured by hardware RAPL counters -- something
> that people have been asking for.

> Please let me know if you see troubles with any of these patches.

Hi Len,

I tested out these patches on an IvyBridge system and see the new Watts
fields. They look like reasonable numbers to me. I ran with the system
idle and then with lookbusy -c 50 and saw the Watts increase. Is there
anything else to do to validate the numbers? In one case I saw that the
Pkg_W for the system was off by .01, e.g. socket 0 was 28.33 and socket
1 was 29.74 and the system total was 58.08 instead of 58.07. That is
probably fine and just rounding up.

-Betty

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Len Brown  
View profile  
 More options Dec 17 2012, 1:34 pm
Newsgroups: fa.linux.kernel
From: Len Brown <l...@kernel.org>
Date: Mon, 17 Dec 2012 18:34:43 UTC
Local: Mon, Dec 17 2012 1:34 pm
Subject: Re: turbostat tool update for Linux-3.8
On 11/15/2012 03:37 PM, Betty Dall wrote:

This is likely a result of printf truncation.
note that these numbers are added internally w/o that truncation,
and then their sum is printed.

If the total system power is what you're looking for, note that
you need to calibrate these numbers vs an external A/C watt meter.
eg. add a base Watts to idle -- which covers things like fans
and fixed power supply loss, then use a coefficient on the counter
to handle factors such as power conversion loss, which tend to be
somewhat linear with load.

With constant temperature, I've found this trivial curve fitting
to be remarkably accurate.

eg. on a dual SNB Xeon box I have...

45 Watts + 1.25 * RAPL-Watt-Meter = System A/C watts
within a couple %.

cheers,
-Len

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »