All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fernando Lopez-Lezcano <nando@ccrma.Stanford.EDU>
To: Harry van Haaren <harryhaaren@gmail.com>,
	Viresh Kumar <viresh.kumar@linaro.org>
Cc: nando@ccrma.Stanford.EDU, linux-rt-users@vger.kernel.org,
	Thomas Gleixner <tglx@linutronix.de>,
	Steven Rostedt <rostedt@goodmis.org>,
	rjw@rjwysocki.net
Subject: Re: CpuFreq Laptop Scaling broken?
Date: Mon, 25 Aug 2014 10:18:30 -0700	[thread overview]
Message-ID: <53FB6FE6.30408@localhost> (raw)
In-Reply-To: <CAKudYbNNA3TLR0gyesiwy_38AtjNgf4bVjgd7+rguLxiVHCzUw@mail.gmail.com>

On 08/25/2014 07:02 AM, Harry van Haaren wrote:
> On Mon, Aug 25, 2014 at 2:55 PM, Viresh Kumar <viresh.kumar@linaro.org> wrote:
>> You tried both these as root? Even 'sudo' may not work..
> Yes, the original output was all as root (not sudo, genuine root).
>
>> I haven't seen the rt code since sometime, what tag should I look at ?
> I'm running 3.14.12-rt9-1-rt  (as packaged for Arch here:
> https://aur.archlinux.org/packages/linux-rt )

Hi Harry,

Check to see if you see something in /sys/devices/system/cpu/intel_pstate/

If so then the intel pstate driver is what is controlling cpu speed for 
you (that changed since 3.9 or so). You can set min_perf_pct to "100" to 
set your minimum cpu speed to the maximum possible. Even then you will 
see some variation but in my usage case jackd is again usable after this 
change[*].

See:
https://wiki.archlinux.org/index.php/CPU_frequency_scaling

-- Fernando

[*] I think the intel pstate drive is not yet aware of what the 
scheduler does with tasks (or visceversa). In the case of jackd I think 
that the scheduler can move a task to a processor that is throttled down 
and the change in speed after detecting high load does not happen fast 
enough. Jackd runs out of cpu cycles and you get an xrun. By the next 
jackd cycle the cpu is running up to speed and everything is fine but 
the task might be moved again to a different core. Just speculation on 
my part.


  reply	other threads:[~2014-08-25 17:28 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-25 12:28 CpuFreq Laptop Scaling broken? Harry van Haaren
2014-08-25 13:55 ` Viresh Kumar
2014-08-25 13:56   ` Viresh Kumar
2014-08-25 16:58     ` Joakim Hernberg
2014-08-25 14:02   ` Harry van Haaren
2014-08-25 17:18     ` Fernando Lopez-Lezcano [this message]
2014-08-25 17:36       ` Harry van Haaren
2014-08-26  4:34     ` Viresh Kumar
2014-08-26 22:44       ` Harry van Haaren
2014-08-27 14:53         ` Harry van Haaren
     [not found]           ` <CAKohpokeUufzx7so6FcEd8rAg-MPw+2c9Aug9L_vXdu_4MvNOA@mail.gmail.com>
2014-09-05 12:06             ` Harry van Haaren
2014-09-05 12:50               ` Viresh Kumar
2014-09-05 22:47                 ` Thomas Gleixner
2014-09-25 12:44                   ` Harry van Haaren
2014-08-25 14:10   ` Steven Rostedt
     [not found]     ` <53FB4EEF.3060809@pavlinux.ru>
2014-08-25 15:03       ` Harry van Haaren

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=53FB6FE6.30408@localhost \
    --to=nando@ccrma.stanford.edu \
    --cc=harryhaaren@gmail.com \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=rjw@rjwysocki.net \
    --cc=rostedt@goodmis.org \
    --cc=tglx@linutronix.de \
    --cc=viresh.kumar@linaro.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.