All of lore.kernel.org
 help / color / mirror / Atom feed
* Is there a way to offload everything from cpu0 to other cpus?
@ 2011-08-05  2:53 Yung, Winson W
  2011-08-05 12:48 ` Andy Lutomirski
  0 siblings, 1 reply; 4+ messages in thread
From: Yung, Winson W @ 2011-08-05  2:53 UTC (permalink / raw)
  To: linux-kernel

Hi, I would like to know whether it is possible to offload everything (kernel threads/user apps) to cpu1...x so that I can force cpu0 go into idle?

I can affinity all the interrupt to a different cpu by playing with the /proc/irq/irqx/smp_affinity, how about everything else? 

/Winson.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is there a way to offload everything from cpu0 to other cpus?
  2011-08-05  2:53 Is there a way to offload everything from cpu0 to other cpus? Yung, Winson W
@ 2011-08-05 12:48 ` Andy Lutomirski
  2011-08-08  9:41   ` Américo Wang
  0 siblings, 1 reply; 4+ messages in thread
From: Andy Lutomirski @ 2011-08-05 12:48 UTC (permalink / raw)
  To: Yung, Winson W; +Cc: linux-kernel

On 08/04/2011 10:53 PM, Yung, Winson W wrote:
> Hi, I would like to know whether it is possible to offload everything (kernel threads/user apps) to cpu1...x so that I can force cpu0 go into idle?
>
> I can affinity all the interrupt to a different cpu by playing with the /proc/irq/irqx/smp_affinity, how about everything else?
>

You probably want the isolcpus boot option.

--Andy

> /Winson.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is there a way to offload everything from cpu0 to other cpus?
  2011-08-05 12:48 ` Andy Lutomirski
@ 2011-08-08  9:41   ` Américo Wang
  2011-08-15  6:25     ` Gilad Ben-Yossef
  0 siblings, 1 reply; 4+ messages in thread
From: Américo Wang @ 2011-08-08  9:41 UTC (permalink / raw)
  To: Andy Lutomirski; +Cc: Yung, Winson W, linux-kernel

On Fri, Aug 5, 2011 at 8:48 PM, Andy Lutomirski <luto@mit.edu> wrote:
> On 08/04/2011 10:53 PM, Yung, Winson W wrote:
>>
>> Hi, I would like to know whether it is possible to offload everything
>> (kernel threads/user apps) to cpu1...x so that I can force cpu0 go into
>> idle?
>>
>> I can affinity all the interrupt to a different cpu by playing with the
>> /proc/irq/irqx/smp_affinity, how about everything else?
>>
>
> You probably want the isolcpus boot option.
>

I think Yung was looking for an interface to move tasks dynamically
after the system is boot.

Yung, why /sys/devices/system/cpu/cpuX/online doesn't work for you?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is there a way to offload everything from cpu0 to other cpus?
  2011-08-08  9:41   ` Américo Wang
@ 2011-08-15  6:25     ` Gilad Ben-Yossef
  0 siblings, 0 replies; 4+ messages in thread
From: Gilad Ben-Yossef @ 2011-08-15  6:25 UTC (permalink / raw)
  To: Américo Wang; +Cc: Andy Lutomirski, Yung, Winson W, linux-kernel

On Mon, Aug 8, 2011 at 12:41 PM, Américo Wang <xiyou.wangcong@gmail.com> wrote:
> On Fri, Aug 5, 2011 at 8:48 PM, Andy Lutomirski <luto@mit.edu> wrote:
>> On 08/04/2011 10:53 PM, Yung, Winson W wrote:
>>>
>>> Hi, I would like to know whether it is possible to offload everything
>>> (kernel threads/user apps) to cpu1...x so that I can force cpu0 go into
>>> idle?

...
>>
>> You probably want the isolcpus boot option.
>
> I think Yung was looking for an interface to move tasks dynamically
> after the system is boot.
>
> Yung, why /sys/devices/system/cpu/cpuX/online doesn't work for you?

I believe setting up a cpuset for cpus 1 to x (call it the system set)
and a seperate cpuset for cpu 0 (call it the shielded set) and
re-assigning all non CPU bound kernel tasks from the root cpuset to
the system cpu set is a better option.

There's a guide on how to do that on the RT wiki:
https://rt.wiki.kernel.org/index.php/CPU_shielding_using_/proc_and_/dev/cpuset

Gilad


-- 
Gilad Ben-Yossef
Chief Coffee Drinker
gilad@benyossef.com
Israel Cell: +972-52-8260388
US Cell: +1-973-8260388
http://benyossef.com
"Dance like no one is watching, love like you'll never be hurt, sing
like no one is listening... but for BEEP sake you better code like
you're going to maintain it for years!"

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-08-15  6:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-05  2:53 Is there a way to offload everything from cpu0 to other cpus? Yung, Winson W
2011-08-05 12:48 ` Andy Lutomirski
2011-08-08  9:41   ` Américo Wang
2011-08-15  6:25     ` Gilad Ben-Yossef

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.