cpufreq.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: bugzilla-daemon@bugzilla.kernel.org
To: cpufreq@vger.kernel.org
Subject: [Bug 71841] cpufreq ondemand ignore_nice_load doesn't work
Date: Thu, 17 Dec 2015 05:26:59 +0000	[thread overview]
Message-ID: <bug-71841-12968-dUcMQvrYqN@https.bugzilla.kernel.org/> (raw)
In-Reply-To: <bug-71841-12968@https.bugzilla.kernel.org/>

https://bugzilla.kernel.org/show_bug.cgi?id=71841

--- Comment #2 from Chen Yu <yu.c.chen@intel.com> ---
The ignore_nice_load works on my side on 4.4-rc5, here's my testing step:

with ignore_nice_load enabled

1.root@Surface-Pro-3:/sys/devices/system/cpu/cpufreq/ondemand# echo 1 >
ignore_nice_load

2.spin a nice(1) task on CPU2:
root@Surface-Pro-3:/sys/devices/system/cpu/cpufreq/ondemand# taskset -c 2 nice
-n1 stress -c 1 -t 200


3.top result for CPU2 load:

top - 03:10:58 up 25 min,  4 users,  load average: 0.85, 0.44, 0.21
Tasks: 237 total,   2 running, 235 sleeping,   0 stopped,   0 zombie
%Cpu0  :  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa
%Cpu1  :  0.4 us,  0.4 sy,  0.0 ni, 99.2 id,  0.0 wa
%Cpu2  :  0.0 us,  0.0 sy,100.0 ni,  0.0 id,  0.0 wa
%Cpu3  :  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa


4. turbostat -i 10
 CPU Avg_MHz   %Busy Bzy_MHz TSC_MHz
       -     325   25.03    1300    2494
       0       1    0.05    1300    2494
       2    1297  100.00    1300    2494
       1       1    0.05    1300    2494
       3       0    0.03    1301    2494



5.  wait for step 4 to finish, then spin a nice(0) task on CPU 2:
root@Surface-Pro-3:/sys/devices/system/cpu/cpufreq/ondemand# taskset -c 2
stress -c 1 -t 200

6. top
top - 03:14:27 up 28 min,  4 users,  load average: 0.86, 0.61, 0.33
Tasks: 233 total,   2 running, 231 sleeping,   0 stopped,   0 zombie
%Cpu0  :  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa
%Cpu1  :  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa
%Cpu2  :100.0 us,  0.0 sy,  0.0 ni,  0.0 id,  0.0 wa
%Cpu3  :  0.0 us,  0.3 sy,  0.0 ni, 99.7 id,  0.0 wa

7. turbostat -i 10

CPU Avg_MHz   %Busy Bzy_MHz TSC_MHz
       -     724   25.01    2900    2494
       0       1    0.02    2842    2494
       2    2892   99.98    2900    2494
       1       0    0.02    2600    2494
       3       1    0.02    2601    2494

-- 
You are receiving this mail because:
You are the assignee for the bug.

  parent reply	other threads:[~2015-12-17  5:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-11  0:59 [Bug 71841] New: ignore_nice_load ignores real load bugzilla-daemon
2014-08-04  2:04 ` [Bug 71841] AMD64:ignore_nice_load " bugzilla-daemon
2014-09-09 14:59 ` bugzilla-daemon
2014-10-28  4:12 ` [Bug 71841] cpufreq ondemand ignore_nice_load doesn't work bugzilla-daemon
2015-12-17  5:26 ` bugzilla-daemon [this message]
2015-12-17  5:32 ` bugzilla-daemon
2015-12-28  4:58 ` bugzilla-daemon
2015-12-30 17:49 ` bugzilla-daemon
2015-12-31  0:50 ` bugzilla-daemon

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=bug-71841-12968-dUcMQvrYqN@https.bugzilla.kernel.org/ \
    --to=bugzilla-daemon@bugzilla.kernel.org \
    --cc=cpufreq@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).