Cannot get NO_HZ_FULL to work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linaro-networking |
Invalid
|
High
|
viresh kumar |
Bug Description
Hi,
I am trying to get NO_HZ_FULL to work with linux-lng-
Boot options:
setenv bootargs "isolcpus=1 nohz_full=1 rcu_nocbs=1 root=/dev/mmcblk1p2 rw rootwait console=
Config file attached.
From the boot up
Preemptible hierarchical RCU implementation.
NO_HZ: Full dynticks CPUs: 1.
The ticks are off on core 1 when I start the system. But run any program on core 1, by having the code below in the C file, and I see the tick starting in cat /proc/interrupts:
CPU_ZERO(&cpu_set);
CPU_SET(1, &cpu_set);
if (sched_
{
perror(
}
A ps -e -L -o pid,psr,
PID PSR %CPU COMMAND
17 1 0.0 [migration/1]
18 1 0.0 [ksoftirqd/1]
19 1 0.0 [kworker/1:0]
20 1 0.0 [kworker/1:0H]
2628 1 0.0 [kworker/1:1]
I can even make sure with "taskset" that all threads have an affinity mask of 1 (only core 0) when possible, but it does not help. As soon as I run anything on core 1, the tick starts. What am I doing wrong?
Thank you: Magnus
Changed in linaro-networking: | |
assignee: | nobody → viresh kumar (viresh.kumar) |
importance: | Undecided → High |
Changed in linaro-networking: | |
status: | New → In Progress |
I can't see anything wrong with your configuration or boot command line.
It looks like this should work as advertised, so we will need to see why
you are getting this behavior. I will begin setting up to test this right
away. This may take a bit of time as the Linaro Networking Group is
relatively new and we are still in the process of staffing and getting our
infrastructure established - but rest assured we will be working on this
issue. Thanks for reporting this behavior.
Gary Robertson
On Thu, Sep 12, 2013 at 2:45 AM, Magnus Karlsson <email address hidden>wrote:
> Public bug reported: ttySAC2, 115200n8 init --no-log" setaffinity( 0, sizeof(cpu_set_t), &cpu_set) == -1) "sched_ setaffinity" ); pcpu,command tells me that only kernel threads /bugs.launchpad .net/bugs/ 1224324/ +attachment/ 3817188/ +files/ config /bugs.launchpad .net/bugs/ 1224324 ttySAC2, 115200n8 init --no-
>
> Hi,
>
> I am trying to get NO_HZ_FULL to work with linux-lng-preempt-
> rt-v3.10.10-rt7 and am failing miserably. What am I doing wrong?
>
> Boot options:
>
> setenv bootargs "isolcpus=1 nohz_full=1 rcu_nocbs=1 root=/dev/mmcblk1p2
> rw rootwait console=
>
> Config file attached.
>
> >From the boot up
>
> Preemptible hierarchical RCU implementation.
> Experimental no-CBs for all CPUs
> Experimental no-CBs CPUs: 0-1.
> NO_HZ: Full dynticks CPUs: 1.
>
> The ticks are off on core 1 when I start the system. But run any program
> on core 1, by having the code below in the C file, and I see the tick
> starting in cat /proc/interrupts:
>
> CPU_ZERO(&cpu_set);
> CPU_SET(1, &cpu_set);
> if (sched_
> {
> perror(
> }
>
> A ps -e -L -o pid,psr,
> that are not movable are one core 1.
>
> PID PSR %CPU COMMAND
> 17 1 0.0 [migration/1]
> 18 1 0.0 [ksoftirqd/1]
> 19 1 0.0 [kworker/1:0]
> 20 1 0.0 [kworker/1:0H]
> 2628 1 0.0 [kworker/1:1]
>
> I can even make sure with "taskset" that all threads have an affinity
> mask of 1 (only core 0) when possible, but it does not help. As soon as
> I run anything on core 1, the tick starts. What am I doing wrong?
>
> Thank you: Magnus
>
> ** Affects: linaro-networking
> Importance: Undecided
> Status: New
>
> ** Attachment added: "Config file"
>
> https:/
>
> --
> You received this bug notification because you are subscribed to linaro-
> networking.
> Matching subscriptions: lng-bugs
> https:/
>
> Title:
> Cannot get NO_HZ_FULL to work
>
> Status in Linaro networking Group:
> New
>
> Bug description:
> Hi,
>
> I am trying to get NO_HZ_FULL to work with linux-lng-preempt-
> rt-v3.10.10-rt7 and am failing miserably. What am I doing wrong?
>
> Boot options:
>
> setenv bootargs "isolcpus=1 nohz_full=1 rcu_nocbs=1
> root=/dev/mmcblk1p2 rw rootwait console=
> log"
>
> Config file attached.
>
> From the boot up
>
> Preemptible hierarchical RCU implementation.
> Experimental no-CBs for all CPUs
> Experimental no-CBs CPUs: 0-1.
> NO_HZ: Full dynticks CPUs: 1.
>
> The ticks are off on core 1 when I start the system. But run any
> program on core 1, by having the code below in the C file, and I see
> the tick starting in cat /proc/interrupts:
>
...