Fwd: powertop 2.4 questions
by Srinivas Pandruvada
Did anybody observed this issue?
-------- Original Message --------
Subject: powertop 2.4 questions
Date: Tue, 17 Sep 2013 10:14:49 -0700
From: Marc MERLIN <marc(a)merlins.org>
To: srinivas.pandruvada(a)linux.intel.com
Hi Srinivas,
As discussed, I have a couple of powertop questions, thanks for passing
them on.
I did try the mailing list:
Date: Fri, 2 Aug 2013 10:27:38 -0700
From: Marc MERLIN <marc_powertop(a)merlins.org>
To: powertop(a)ml01.01.org
but I never heard anything back. Is the list mostly dead, or is there
another list?
So, I got powertop 2.4 from
https://01.org/powertop/downloads/2013/powertop-v2.4
Like I showed you on my laptop, when I go left and right with my arrows,
I'm on the Overview screen, and I can't move to Idle stats or Freq stats
like I could in older powertops:
----------------------------------------------------------------------------
PowerTOP 2.4 Overview Idle stats Frequency stats Device stats Tunables
Summary: 1862.8 wakeups/second, 5.9 GPU ops/seconds, 0.0 VFS ops/sec and 26.5% CPU use
Power est. Usage Events/s Category Description
3.30 W 9.8% Device Display backlight
2.67 W 0.0 pkts/s Device Network interface: wlan0 (iwlwifi)
1.34 W 100.0% Device USB device: Integrated Camera (Chicony Ele
957 mW 4.2 ms/s 43.4 Process /usr/bin/pulseaudio --start
635 mW 154.3 ms/s 1229.7 Process /usr/bin/enlightenment
----------------------------------------------------------------------------
Separately, it reports this:
1.25 W 100.0% Device USB device: Integrated Camera (Chicony Electronics Co., Ltd.)
It's on a thinkpad T530. I haven't found a way to stop that.
I've unloaded the uvcvideo driver, but generally haven't found
anything else I can do.
If you have any ideas, it would be greatly appreciated.
Thanks,
Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/ | PGP 1024R/763BE901
8 years, 7 months
introduce powertop2 -next
by Sergey Senozhatsky
Hello everybody,
I've forked a powertop2-next (well, let it be our -next) from the current
code and dig through the list from February 2013 to September 2013 and
picked up all patches that haven't been merged. so we have better chances
not to lose them (we'll merge them with the upstream some day)
URL: https://github.com/sergey-senozhatsky/powertop2-next
WARNING: the rule remains the same - we use mailing list to publish and discuss
patches, please no github pull requests, etc.
shortlog at the moment is as follows:
Hans-Peter Deifel (2):
Use symbolic instead of numeric constants for keys
Document key bindings in man page
Sergey Senozhatsky (5):
Suppress decimal constant compilation warning (From: Paul Menzel <paulepanter(a)users.sourceforge.net>)
Seg Fault due to function format_watts in file src/lib.cpp
Do not leak fd in perf_bundle read_file()
README: add CONFIG_DEBUG_FS to Kernel Parameters
Introduce --auto-tune mode
Youquan Song (1):
Fix running failure when > 69 CPUs for open file limitation
Daniel Kahn Gillmor's 'embed self-contained javascript' patch has some minor
issues at the moment.
NOTE: if you feel that your patch has been lost, please kindly rebase and resend.
Thanks,
-ss
8 years, 7 months
patch: tell user if the system is running out of FDs
by Jaroslav Skarvada
Hi,
complex servers can run out of FDs easily (due to perf).
In such case tell user that more FDs are needed instead
of the generic message (that kernel doesn't support
the perf)
regards
Jaroslav
8 years, 7 months
Tunables: Ondemand Governor and intel_pstate
by Christian Krause
Dear PowerTop Developers,
I have been wondering for a while and just found out:
tunables show:
Bad Using 'ondemand' cpufreq governor
but: I don't have a ondemand cpufreq governor -- that is what I just found out: since some kernel
versions ago the intel_pstate driver is the default for my cpu:
# zgrep PSTATE /proc/config.gz
CONFIG_X86_INTEL_PSTATE=y
# cat /sys/devices/system/cpu/cpu[0-9]*/cpufreq/scaling_driver
intel_pstate
intel_pstate
intel_pstate
intel_pstate
intel_pstate does not provide ondemand governor, just powersave and performance. It saves power by
putting the cpu in sleep mode instead of decreasing the frequency, see idle stats: C7-SNB 98.7% ...
Please include a check in PowerTop so ondemand governor does not get suggested for intel_pstate.
That was really confusing at first to have powertop suggest that but me not having ondemand
governor.
--
Mit freundlichen Grüßen /
With kind regards
-------------------------------------------
Christian Krause
Wissenschaftliche und Kaufmännische Datenverarbeitung /
Scientific and Commercial Data Processing (WKDV)
Wissenschaftliches Rechnen und Wissenschaftliches Datenmanagement /
Scientific Computing and Scientific Data Management (WRWD)
-------------------------------------------
Helmholtz-Zentrum für Umweltforschung GmbH - UFZ /
Helmholtz Centre for Environmental Research - UFZ
Permoserstr. 15 / 04318 Leipzig / Germany
phone +49 341 235 1001 / fax +49 341 235 1468
<christian.krause(a)ufz.de> / <http://www.ufz.de>
Sitz der Gesellschaft: Leipzig
Registergericht: Amtsgericht Leipzig, Handelsregister Nr. B 4703
Vorsitzender des Aufsichtsrats: MinDirig Wilfried Kraus
Wissenschaftlicher Geschäftsführer: Prof. Dr. Georg Teutsch
Administrative Geschäftsführerin: Dr. Heike Graßmann
-------------------------------------------
Bitte denken Sie an die Umwelt bevor Sie diese E-Mail ausdrucken. /
Please consider the environment before printing this e-mail.
-------------------------------------------
8 years, 7 months
[PATCH 0/8] use process_directory() to read dir
by Sergey Senozhatsky
Hello,
This patch series removes some code duplication in trivial cases and
replaces explicit opendir()/readdir() handling with existing common
lib process_directory() helper.
src/calibrate/calibrate.cpp | 151 ++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------------------------------------------------------------------------
src/devices/alsa.cpp | 46 +++++++++++++++++-----------------------------
src/devices/alsa.h | 4 ++--
src/devices/network.cpp | 8 ++++----
src/devices/rfkill.cpp | 46 +++++++++++++++++-----------------------------
src/devices/usb.cpp | 79 +++++++++++++++++++++++++++++++------------------------------------------------
src/lib.cpp | 4 ----
src/tuning/ethernet.cpp | 10 +++++-----
src/tuning/tuningusb.cpp | 46 ++++++++++++++--------------------------------
9 files changed, 138 insertions(+), 256 deletions(-)
8 years, 8 months
[PATCH] embed self-contained javascript
by Daniel Kahn Gillmor
using self-contained javascript offers several improvements:
* powertop html report can be viewed offline
* less overall javascript code is loaded when online
* no opportunity for report leakage or modification by third parties
These changes also make it simpler to update the html report when a
new section is added: just add a new entry to powertop.blocks
dictionary, with the section's human-readable string as its value.
---
src/powertop.css | 400 ++++++++++---------------------------------------------
1 file changed, 72 insertions(+), 328 deletions(-)
diff --git a/src/powertop.css b/src/powertop.css
index c73d3e2..35f6571 100644
--- a/src/powertop.css
+++ b/src/powertop.css
@@ -3,276 +3,70 @@
<head>
<title>PowerTOP report</title>
<meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\">
-<script type=\"text/javascript\" src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js\"></script>
-<script type=\"text/javascript\">
-$(document).ready(function(){
-
- $('#system h2').addClass('hide');
- $('#system table').addClass('hide');
- $('#cpuidle h2').addClass('hide');
- $('#cpuidle table').addClass('hide');
- $('#cpufreq h2').addClass('hide');
- $('#cpufreq table').addClass('hide');
- $('#software h2').addClass('hide');
- $('#software table').addClass('hide');
- $('#device h2').addClass('hide');
- $('#device table').addClass('hide');
- $('#device p').addClass('hide');
- $('#tuning h2').addClass('hide');
- $('#tuning table').addClass('hide');
-
- $('#top').append('<div class=\"SystemButton\" onclick=\"toggleSystem()\">System Info</div>');
- $('#top').append('<div class=\"SummaryButton\" onclick=\"toggleSummary()\">Summary</div>');
- $('#top').append('<div class=\"CpuidleButton\" onclick=\"toggleCpuidle()\">CPU Idle</div>');
- $('#top').append('<div class=\"CpufreqButton\" onclick=\"toggleCpufreq()\">CPU Frequency</div>');
- $('#top').append('<div class=\"SoftwareButton\" onclick=\"toggleSoftware()\">Software info</div>');
- $('#top').append('<div class=\"DeviceButton\" onclick=\"toggleDevice()\">Device Info</div>');
- $('#top').append('<div class=\"TuningButton\" onclick=\"toggleTuning()\">Tuning</div>');
- $('#top').append('<div class=\"AllButton\" onclick=\"toggleAll()\">All</div>');
- $('#top .SummaryButton').toggleClass('pressed');
-
- }
- );
-function toggleDummy() {
- $('#system table').toggleClass('hide', true);
- $('#system h2').toggleClass('hide', true);
- $('#summary table').toggleClass('hide', true);
- $('#summary h2').toggleClass('hide', true);
- $('#summary p').toggleClass('hide', true);
- $('#cpuidle table').toggleClass('hide', true);
- $('#cpuidle h2').toggleClass('hide', true);
- $('#cpufreq table').toggleClass('hide', true);
- $('#cpufreq h2').toggleClass('hide', true);
- $('#software table').toggleClass('hide', true);
- $('#software h2').toggleClass('hide', true);
- $('#device table').toggleClass('hide', true);
- $('#device h2').toggleClass('hide', true);
- $('#device p').toggleClass('hide', true);
- $('#tuning table').toggleClass('hide', true);
- $('#tuning h2').toggleClass('hide', true);
- $('#top .SystemButton').toggleClass('pressed', false);
- $('#top .SummaryButton').toggleClass('pressed', false);
- $('#top .CpuidleButton').toggleClass('pressed', false);
- $('#top .CpufreqButton').toggleClass('pressed', false);
- $('#top .SoftwareButton').toggleClass('pressed', false);
- $('#top .DeviceButton').toggleClass('pressed', false);
- $('#top .TuningButton').toggleClass('pressed', false);
- $('#top .AllButton').toggleClass('pressed', false);
-}
-function toggleSystem() {
- $('#system table').toggleClass('hide', false);
- $('#system h2').toggleClass('hide', false);
- $('#summary table').toggleClass('hide', true);
- $('#summary h2').toggleClass('hide', true);
- $('#summary p').toggleClass('hide', true);
- $('#cpuidle table').toggleClass('hide', true);
- $('#cpuidle h2').toggleClass('hide', true);
- $('#cpufreq table').toggleClass('hide', true);
- $('#cpufreq h2').toggleClass('hide', true);
- $('#software table').toggleClass('hide', true);
- $('#software h2').toggleClass('hide', true);
- $('#device table').toggleClass('hide', true);
- $('#device h2').toggleClass('hide', true);
- $('#device p').toggleClass('hide', true);
- $('#tuning table').toggleClass('hide', true);
- $('#tuning h2').toggleClass('hide', true);
- $('#top .SystemButton').toggleClass('pressed', true);
- $('#top .SummaryButton').toggleClass('pressed', false);
- $('#top .CpuidleButton').toggleClass('pressed', false);
- $('#top .CpufreqButton').toggleClass('pressed', false);
- $('#top .SoftwareButton').toggleClass('pressed', false);
- $('#top .DeviceButton').toggleClass('pressed', false);
- $('#top .TuningButton').toggleClass('pressed', false);
- $('#top .AllButton').toggleClass('pressed', false);
-}
-function toggleSummary() {
- $('#system table').toggleClass('hide', true);
- $('#system h2').toggleClass('hide', true);
- $('#summary table').toggleClass('hide', false);
- $('#summary h2').toggleClass('hide', false);
- $('#summary p').toggleClass('hide', false);
- $('#cpuidle table').toggleClass('hide', true);
- $('#cpuidle h2').toggleClass('hide', true);
- $('#cpufreq table').toggleClass('hide', true);
- $('#cpufreq h2').toggleClass('hide', true);
- $('#software table').toggleClass('hide', true);
- $('#software h2').toggleClass('hide', true);
- $('#device table').toggleClass('hide', true);
- $('#device h2').toggleClass('hide', true);
- $('#device p').toggleClass('hide', true);
- $('#tuning table').toggleClass('hide', true);
- $('#tuning h2').toggleClass('hide', true);
- $('#top .SystemButton').toggleClass('pressed', false);
- $('#top .SummaryButton').toggleClass('pressed', true);
- $('#top .CpuidleButton').toggleClass('pressed', false);
- $('#top .CpufreqButton').toggleClass('pressed', false);
- $('#top .SoftwareButton').toggleClass('pressed', false);
- $('#top .DeviceButton').toggleClass('pressed', false);
- $('#top .TuningButton').toggleClass('pressed', false);
- $('#top .AllButton').toggleClass('pressed', false);
-}
-function toggleCpuidle() {
- $('#system table').toggleClass('hide', true);
- $('#system h2').toggleClass('hide', true);
- $('#summary table').toggleClass('hide', true);
- $('#summary h2').toggleClass('hide', true);
- $('#summary p').toggleClass('hide', true);
- $('#cpuidle table').toggleClass('hide', false);
- $('#cpuidle h2').toggleClass('hide', false);
- $('#cpufreq table').toggleClass('hide', true);
- $('#cpufreq h2').toggleClass('hide', true);
- $('#software table').toggleClass('hide', true);
- $('#software h2').toggleClass('hide', true);
- $('#device table').toggleClass('hide', true);
- $('#device h2').toggleClass('hide', true);
- $('#device p').toggleClass('hide', true);
- $('#tuning table').toggleClass('hide', true);
- $('#tuning h2').toggleClass('hide', true);
- $('#top .SystemButton').toggleClass('pressed', false);
- $('#top .SummaryButton').toggleClass('pressed', false);
- $('#top .CpuidleButton').toggleClass('pressed', true);
- $('#top .CpufreqButton').toggleClass('pressed', false);
- $('#top .SoftwareButton').toggleClass('pressed', false);
- $('#top .DeviceButton').toggleClass('pressed', false);
- $('#top .TuningButton').toggleClass('pressed', false);
- $('#top .AllButton').toggleClass('pressed', false);
-
-}
-function toggleCpufreq() {
- $('#system table').toggleClass('hide', true);
- $('#system h2').toggleClass('hide', true);
- $('#summary table').toggleClass('hide', true);
- $('#summary h2').toggleClass('hide', true);
- $('#summary p').toggleClass('hide', true);
- $('#cpuidle table').toggleClass('hide', true);
- $('#cpuidle h2').toggleClass('hide', true);
- $('#cpufreq table').toggleClass('hide', false);
- $('#cpufreq h2').toggleClass('hide', false);
- $('#software table').toggleClass('hide', true);
- $('#software h2').toggleClass('hide', true);
- $('#device table').toggleClass('hide', true);
- $('#device h2').toggleClass('hide', true);
- $('#device p').toggleClass('hide', true);
- $('#tuning table').toggleClass('hide', true);
- $('#tuning h2').toggleClass('hide', true);
- $('#top .SystemButton').toggleClass('pressed', false);
- $('#top .SummaryButton').toggleClass('pressed', false);
- $('#top .CpuidleButton').toggleClass('pressed', false);
- $('#top .CpufreqButton').toggleClass('pressed', true);
- $('#top .SoftwareButton').toggleClass('pressed', false);
- $('#top .DeviceButton').toggleClass('pressed', false);
- $('#top .TuningButton').toggleClass('pressed', false);
- $('#top .AllButton').toggleClass('pressed', false);
-}
-
-function toggleSoftware() {
- $('#system table').toggleClass('hide', true);
- $('#system h2').toggleClass('hide', true);
- $('#summary table').toggleClass('hide', true);
- $('#summary h2').toggleClass('hide', true);
- $('#summary p').toggleClass('hide', true);
- $('#cpuidle table').toggleClass('hide', true);
- $('#cpuidle h2').toggleClass('hide', true);
- $('#cpufreq table').toggleClass('hide', true);
- $('#cpufreq h2').toggleClass('hide', true);
- $('#software table').toggleClass('hide', false);
- $('#software h2').toggleClass('hide', false);
- $('#device table').toggleClass('hide', true);
- $('#device h2').toggleClass('hide', true);
- $('#device p').toggleClass('hide', true);
- $('#tuning table').toggleClass('hide', true);
- $('#tuning h2').toggleClass('hide', true);
- $('#top .SystemButton').toggleClass('pressed', false);
- $('#top .SummaryButton').toggleClass('pressed', false);
- $('#top .CpuidleButton').toggleClass('pressed', false);
- $('#top .CpufreqButton').toggleClass('pressed', false);
- $('#top .SoftwareButton').toggleClass('pressed', true);
- $('#top .DeviceButton').toggleClass('pressed', false);
- $('#top .TuningButton').toggleClass('pressed', false);
- $('#top .AllButton').toggleClass('pressed', false);
-}
-
-function toggleDevice() {
- $('#system table').toggleClass('hide', true);
- $('#system h2').toggleClass('hide', true);
- $('#summary table').toggleClass('hide', true);
- $('#summary h2').toggleClass('hide', true);
- $('#summary p').toggleClass('hide', true);
- $('#cpuidle table').toggleClass('hide', true);
- $('#cpuidle h2').toggleClass('hide', true);
- $('#cpufreq table').toggleClass('hide', true);
- $('#cpufreq h2').toggleClass('hide', true);
- $('#software table').toggleClass('hide', true);
- $('#software h2').toggleClass('hide', true);
- $('#device table').toggleClass('hide', false);
- $('#device h2').toggleClass('hide', false);
- $('#device p').toggleClass('hide', false);
- $('#tuning table').toggleClass('hide', true);
- $('#tuning h2').toggleClass('hide', true);
- $('#top .SystemButton').toggleClass('pressed', false);
- $('#top .SummaryButton').toggleClass('pressed', false);
- $('#top .CpuidleButton').toggleClass('pressed', false);
- $('#top .CpufreqButton').toggleClass('pressed', false);
- $('#top .SoftwareButton').toggleClass('pressed', false);
- $('#top .DeviceButton').toggleClass('pressed', true);
- $('#top .TuningButton').toggleClass('pressed', false);
- $('#top .AllButton').toggleClass('pressed', false);
+<script type='text/javascript'>
+
+var powertop = {
+ blocks: {
+ system: 'System Info',
+ summary: 'Summary',
+ cpuidle: 'CPU Idle',
+ cpufreq: 'CPU Frequency',
+ software: 'Software Info',
+ device: 'Device Info',
+ tuning: 'Tuning'
+ },
+ cadd: function(idx, c){
+ var el = document.getElementById(idx);
+ if (el) el.classList.add(c);
+ },
+ crm: function(id, c){
+ var el = document.getElementById(id);
+ if (el) el.classList.remove(c);
+ },
+ newbutton: function(id, txt) {
+ var x = document.createElement('div');
+ x.id = id + '_button';
+ x.className = 'nav_button';
+ x.textContent = txt;
+ x.onclick = function() { powertop.toggle(id); };
+ return x;
+ },
+ setupbuttons: function() {
+ var t = document.getElementById('top');
+ if (t) {
+ for (var b in powertop.blocks) {
+ t.appendChild(powertop.newbutton(b, powertop.blocks[b]));
+ }
+ t.appendChild(powertop.newbutton('all', 'All'));
+ }
+ },
+ toggle: function(b) {
+ powertop.baseall();
+ if (b == 'all') {
+ for (var c in powertop.blocks) {
+ powertop.crm(c, 'hide');
+ }
+ } else {
+ powertop.crm(b, 'hide');
+ }
+ powertop.cadd(b + '_button', 'pressed');
+ },
+ baseall: function() {
+ for (var b in powertop.blocks) {
+ powertop.cadd(b, 'hide');
+ powertop.crm(b + '_button', 'pressed');
+ }
+ powertop.cadd('all', 'hide');
+ powertop.crm('all_button', 'pressed');
+ },
+ onload: function() {
+ powertop.setupbuttons();
+ powertop.toggle('summary');
+ }
}
-function toggleTuning() {
- $('#system table').toggleClass('hide', true);
- $('#system h2').toggleClass('hide', true);
- $('#summary table').toggleClass('hide', true);
- $('#summary h2').toggleClass('hide', true);
- $('#summary p').toggleClass('hide', true);
- $('#cpuidle table').toggleClass('hide', true);
- $('#cpuidle h2').toggleClass('hide', true);
- $('#cpufreq table').toggleClass('hide', true);
- $('#cpufreq h2').toggleClass('hide', true);
- $('#software table').toggleClass('hide', true);
- $('#software h2').toggleClass('hide', true);
- $('#device table').toggleClass('hide', true);
- $('#device h2').toggleClass('hide', true);
- $('#device p').toggleClass('hide', true);
- $('#tuning table').toggleClass('hide', false);
- $('#tuning h2').toggleClass('hide', false);
- $('#top .SystemButton').toggleClass('pressed', false);
- $('#top .SummaryButton').toggleClass('pressed', false);
- $('#top .CpuidleButton').toggleClass('pressed', false);
- $('#top .CpufreqButton').toggleClass('pressed', false);
- $('#top .SoftwareButton').toggleClass('pressed', false);
- $('#top .DeviceButton').toggleClass('pressed', false);
- $('#top .TuningButton').toggleClass('pressed', true);
- $('#top .AllButton').toggleClass('pressed', false);
-}
-function toggleAll() {
- $('#system table').toggleClass('hide', false);
- $('#system h2').toggleClass('hide', false);
- $('#summary table').toggleClass('hide', false);
- $('#summary h2').toggleClass('hide', false);
- $('#summary p').toggleClass('hide', false);
- $('#cpuidle table').toggleClass('hide', false);
- $('#cpuidle h2').toggleClass('hide', false);
- $('#cpufreq table').toggleClass('hide', false);
- $('#cpufreq h2').toggleClass('hide', false);
- $('#software table').toggleClass('hide', false);
- $('#software h2').toggleClass('hide', false);
- $('#device table').toggleClass('hide', false);
- $('#device h2').toggleClass('hide', false);
- $('#device p').toggleClass('hide', false);
- $('#tuning table').toggleClass('hide', false);
- $('#tuning h2').toggleClass('hide', false);
- $('#top .SystemButton').toggleClass('pressed', false);
- $('#top .SummaryButton').toggleClass('pressed', false);
- $('#top .CpuidleButton').toggleClass('pressed', false);
- $('#top .CpufreqButton').toggleClass('pressed', false);
- $('#top .SoftwareButton').toggleClass('pressed', false);
- $('#top .DeviceButton').toggleClass('pressed', false);
- $('#top .TuningButton').toggleClass('pressed', false);
- $('#top .AllButton').toggleClass('pressed', true);
-}
</script>
-<style type=\"text/css\">
+<style type='text/css'>
table
{
background-color: #F8F8F8;
@@ -454,11 +248,7 @@ body {
padding: 0; /* Amount of negative space around the
inside of the body */
}
-#top h1 {
- margin: 0;
- padding: 0;
-}
-#top h1 a {
+#top {
background-color: #ccc;
border-bottom: 1px solid #666;
color: #222;
@@ -483,72 +273,26 @@ body {
line-height: 28px;
border-width:0px 8px 0px 8px;
}
-#top div.SystemButton {
- position: absolute;
- top: 7px;
- left: 6px;
-}
-#top div.SummaryButton {
- position: absolute;
- top: 7px;
- left: 160px;
-}
-#top div.CpuidleButton {
- position: absolute;
- top: 7px;
- left: 320px;
-}
-#top div.CpufreqButton {
- position: absolute;
- top: 7px;
- left: 480px;
-}
-#top div.SoftwareButton {
- position: absolute;
- top: 7px;
- left: 640px;
-}
-#top div.DeviceButton {
- position: absolute;
- top: 7px;
- left: 800px;
-}
-#top div.TuningButton {
- position: absolute;
- top: 7px;
- left: 960px;
-}
-#top div.AllButton {
- position: absolute;
- top: 7px;
- left: 1120px;
+#top div.nav_button {
+ display: inline;
+ cursor: pointer;
+ padding: 0.3em 0.5em;
+ margin: 0 0.2em;
}
+
div.pressed {
background-color: #000000;
border: 1px solid #000000;
color: #000000;
- display: block;
- border-width:0px 8px 0px 8px;
- -webkit-border-top-left-radius: 8px;
- -webkit-border-top-right-radius: 8px;
- -webkit-border-bottom-left-radius: 8px;
- -webkit-border-bottom-right-radius: 8px;
-}
-table.hide {
- display: none;
+ border-radius: 8px;
}
-h2.hide {
- display: none;
-}
-p.hide {
- display: none
+div.hide {
+ display: none;
}
</style>
</head>
-<body>
-
+<body onload='powertop.onload();'>
<div id='top'>
-<h1><a href='#top'> </a></h1>
</div>
--
1.8.4.rc3
8 years, 8 months
ia64 builds fails (and maybe alpha too?)
by Jose Luis Rivas
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
[Please keep Julian CC'd since I don't know if he's subscribed to this
list, I am.]
Hi,
During the packaging of PowerTOP for Debian we have come across and
issue in the building for `ia64`[0][1]. Julian (co-maintainer at
Debian) made a patch for it [2][3].
Doing some research it looks like this was removed on `9ce9ec6`[4]
altogether with `alpha` support. What are those older kernels
mentioned in the commit message? Maybe our build-daemons for ia64 have
older kernels in that case please let us know which is the minimum
kernel version for this to work.
If is not the case and in fact we need the patch, can this be included
upstream before and we can make a new release of PowerTOP with this?
Kind regards,
Keep up the good work!
[0]
https://buildd.debian.org/status/fetch.php?pkg=powertop&arch=ia64&ver=2.4...
[1] Excerpt from the build log:
```
g++ -DHAVE_CONFIG_H -I. -I.. -D_FORTIFY_SOURCE=2
- -I/usr/include/libnl3 -DLOCALEDIR=\"/usr/share/locale\"
- -D_FORTIFY_SOURCE=2 -fno-omit-frame-pointer -fstack-protector -Wall
- -Wshadow -Wformat -I/usr/include/libnl3 -g -O2 -Wformat
- -Werror=format-security -c -o perf/powertop-perf.o `test -f
'perf/perf.cpp' || echo './'`perf/perf.cpp
perf/perf.cpp:1:0: warning: -fstack-protector not supported for this
target [enabled by default]
perf/perf.cpp: In function 'int sys_perf_event_open(perf_event_attr*,
pid_t, int, int, long unsigned int)':
perf/perf.cpp:67:17: error: '__NR_perf_event_open' was not declared in
this scope
perf/perf.cpp:69:1: warning: control reaches end of non-void function
[-Wreturn-type]
make[4]: *** [perf/powertop-perf.o] Error 1
make[3]: *** [all] Error 2
```
[2] https://github.com/ghostbar/powertop.deb/pull/2
[3]
https://github.com/juw/powertop.deb/blob/1a298734a297f83a72601fe0c2aab7f8...
[4]
https://github.com/fenrus75/powertop/commit/9ce9ec662ce7b642967fd75222114...
- --
Jose Luis Rivas
The Debian Project -- http://debian.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.19 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEAREDAAYFAlImav0ACgkQOKCtW8rKsRjqxwCgkk9dVz7MaYPZdJ8vZ2a/wodO
GLYAnRkoeXYPiW4n805L2pL+YCgO8spV
=2eeU
-----END PGP SIGNATURE-----
8 years, 8 months
(BUG) powertop-1.13 fails to kernel-3.10.7
by Dennis Jenkins
Hello,
I recently updated my Gentoo linux kernel from 3.8.18 to 3.10.7.
powertop now hangs while starting up. "strace" shows that powertop is
reading the contents of "/proc/timer_list" over and over (but with no
"seek" call, which is weird to me).
ostara ~ # powertop --version
powertop version 1.13
ostara ~ # uname -r
3.10.7-gentoo
ostara ~ # zgrep TIMER /proc/config.gz
CONFIG_HIGH_RES_TIMERS=y
CONFIG_TIMERFD=y
CONFIG_OPROFILE_NMI_TIMER=y
CONFIG_HPET_TIMER=y
# CONFIG_X86_PM_TIMER is not set
CONFIG_NETFILTER_XT_TARGET_IDLETIMER=m
# CONFIG_HW_RANDOM_TIMERIOMEM is not set
# CONFIG_HANGCHECK_TIMER is not set
# CONFIG_PPS_CLIENT_KTIMER is not set
CONFIG_SND_TIMER=m
# CONFIG_SND_HRTIMER is not set
CONFIG_TIMER_STATS=y
ostara ~ # wc /proc/timer_list
387 1569 16282 /proc/timer_list
ostara ~ # strace -e\!read powertop
(tailing...)
open("/proc/interrupts", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7fcfdd7c3000
open("/proc/timer_list", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7fcfdd7c2000
^CProcess 22238 detached
Now run "strace" again, but without the "-e\!read" and watch it read fd #4
over and over and over again.
If you need any additional info, please let me know.
8 years, 8 months