From: Igor Zhbanov <i.zhbanov at samsung.com>
To: powertop@lists.01.org
Subject: Re: [Powertop] [FYI][RFC][PATCH 0/2] MALI GPU profiling support
Date: Fri, 02 Nov 2012 19:05:36 +0400 [thread overview]
Message-ID: <5093E140.20604@samsung.com> (raw)
In-Reply-To: CAMFVxViK-WCd7e4rA2S449S4p+YsPjp9Tp2iZe5Srd=b2SijuQ@mail.gmail.com
[-- Attachment #1: Type: text/plain, Size: 2850 bytes --]
Ferron, Chris E wrote:
> On Thu, Nov 1, 2012 at 5:00 AM, Igor Zhbanov <i.zhbanov(a)samsung.com> wrote:
>> * Initial voltage and frequency values *
>>
>> When PowerTOP starts on system with display turned on and some graphical
>> applications already running, there is a possibility for situation where some
>> rendering job will be started before PowerTOP grabs the first voltage or
>> frequency setting event. So PowerTOP will be unaware of current frequency
>> and/or voltage value. Because of this it is impossible to correctly calculate
>> power consumption for that task because it is impossible to ask the driver
>> about current frequency and voltage. And in the current version PowerTOP drops
>> jobs before first voltage or frequency change event (such events are frequent
>> enough, so it's not a problem). It is possible to use some default value but
> Gaining defaults and baselines is a pretty generic issues. To increase
> samples and such, have you
> considered using the calibration to help here?
>> it will be GPU-dependent and we don't know what value to use.
The Powertop doesn't have the ability to calibrate GPU now. It is possible to refine
the C constant by the means of calibration. But we still would not know at what voltage
and frequency the rendering job (that was started before the Powertop) running.
Fortunately, these rendering jobs takes less than a second usually. So probably
we could ignore them.
The better solution could be if we had some support from GPU driver to ask for current
frequency and voltage.
Some off-topic.
By the way, I now study the possibility to adopt another approach. Consider what would be
if we had CPU and GPU power consumption statistics right inside the kernel. I don't like
the current way when the Powertop must handle several thousands events per second (because
of catching every sched_switch and sched_wakeup events that could happen CONFIG_HZ * cpu_nr
times every second) just to calculate single number (usage) for each process.
The kernel knows what is the current voltage and frequency for each process.
Also it knows the duration of each time slice. So the kernel could easily compute on each
task switch how much power was consumed by particular task and update its counter.
Then the Powertop could just grab these counters periodically.
This feature could have on/off switch via sysctl to be turned only for some time.
I think that this way is better. Also it significantly reduces the amount of work performed
by the Powertop. What you think?
--
Best regards,
Igor Zhbanov,
Technical Leader,
phone: +7 (495) 797 25 00 ext 3806
e-mail: i.zhbanov(a)samsung.com
Mobile group, Moscow R&D center, Samsung Electronics
12 Dvintsev street, building 1
127018, Moscow, Russian Federation
next reply other threads:[~2012-11-02 15:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-02 15:05 Igor Zhbanov [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-12-21 10:49 [Powertop] [FYI][RFC][PATCH 0/2] MALI GPU profiling support Sergey Senozhatsky
2012-12-21 10:38 Igor Zhbanov
2012-12-21 9:58 Sergey Senozhatsky
2012-12-21 9:06 Igor Zhbanov
2012-11-02 14:42 Ferron, Chris E
2012-11-01 22:11 Ferron, Chris E
2012-11-01 14:56 Igor Zhbanov
2012-11-01 12:00 Igor Zhbanov
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=5093E140.20604@samsung.com \
--to=powertop@lists.01.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.