* question about context switch on arm Linux
@ 2012-10-21 6:02 caiyuqing
2012-10-21 7:44 ` Richard Cochran
0 siblings, 1 reply; 4+ messages in thread
From: caiyuqing @ 2012-10-21 6:02 UTC (permalink / raw)
To: linux-kernel
hi, all.
I have some questions about context switch on arm Linux (my target is
ARMv7-a).
1. Does arm linux support FCSE to handle the context switch?
2. If using FCSE, that means the processes number limit is 128 and the
memory limit is 32MB per process, is that right?
Thanks
qing
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: question about context switch on arm Linux
2012-10-21 6:02 question about context switch on arm Linux caiyuqing
@ 2012-10-21 7:44 ` Richard Cochran
2012-10-21 8:19 ` caiyuqing
0 siblings, 1 reply; 4+ messages in thread
From: Richard Cochran @ 2012-10-21 7:44 UTC (permalink / raw)
To: caiyuqing; +Cc: linux-kernel
On Sun, Oct 21, 2012 at 02:02:42PM +0800, caiyuqing wrote:
> hi, all.
> I have some questions about context switch on arm Linux (my target is
> ARMv7-a).
> 1. Does arm linux support FCSE to handle the context switch?
No, mainline Linux does not support FCSE. However, you can use Gilles'
unoffical (but working) FCSE branches at
http://git.xenomai.org/?p=ipipe-gch.git;a=summary
> 2. If using FCSE, that means the processes number limit is 128 and the
> memory limit is 32MB per process, is that right?
Yes and no.
Gilles' patches offer a "strict mode" and a "best effort" mode. The
strict mode does have the limitation, but the best effort mode does
not.
HTH,
Richard
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: question about context switch on arm Linux
2012-10-21 7:44 ` Richard Cochran
@ 2012-10-21 8:19 ` caiyuqing
2012-10-21 12:00 ` Richard Cochran
0 siblings, 1 reply; 4+ messages in thread
From: caiyuqing @ 2012-10-21 8:19 UTC (permalink / raw)
To: Richard Cochran; +Cc: linux-kernel
于 2012年10月21日 15:44, Richard Cochran 写道:
> On Sun, Oct 21, 2012 at 02:02:42PM +0800, caiyuqing wrote:
>> hi, all.
>> I have some questions about context switch on arm Linux (my target is
>> ARMv7-a).
>> 1. Does arm linux support FCSE to handle the context switch?
> No, mainline Linux does not support FCSE. However, you can use Gilles'
> unoffical (but working) FCSE branches at
>
> http://git.xenomai.org/?p=ipipe-gch.git;a=summary
>
>> 2. If using FCSE, that means the processes number limit is 128 and the
>> memory limit is 32MB per process, is that right?
> Yes and no.
>
> Gilles' patches offer a "strict mode" and a "best effort" mode. The
> strict mode does have the limitation, but the best effort mode does
> not.
>
> HTH,
> Richard
Richard, thanks for your reply.
mainline Linux doesn't support FCSE, if so, when kernel switch a process
to another(these two process share the same virtual memory space), that
means the vitrual-to-physical address should be remaped, TLB shuold be
invalid, CACHE should be flushed, right?
qing
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: question about context switch on arm Linux
2012-10-21 8:19 ` caiyuqing
@ 2012-10-21 12:00 ` Richard Cochran
0 siblings, 0 replies; 4+ messages in thread
From: Richard Cochran @ 2012-10-21 12:00 UTC (permalink / raw)
To: caiyuqing; +Cc: linux-kernel
On Sun, Oct 21, 2012 at 04:19:50PM +0800, caiyuqing wrote:
> Richard, thanks for your reply.
> mainline Linux doesn't support FCSE, if so, when kernel switch a
> process to another(these two process share the same virtual memory
> space), that means the vitrual-to-physical address should be
> remaped, TLB shuold be invalid, CACHE should be flushed, right?
Yes, and that is why you can measure quite a long context switching
time when running Linux on ARMv4/5.
Thanks,
Richard
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-10-21 12:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-21 6:02 question about context switch on arm Linux caiyuqing
2012-10-21 7:44 ` Richard Cochran
2012-10-21 8:19 ` caiyuqing
2012-10-21 12:00 ` Richard Cochran
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox