Skip to contentSkip to conversation

lowlat & preeempt

DISCUSSION Robin Gilks 3 participants 5 messages Jun 17, 2003

lore
Share & tools
lore
#0 lore raw

Greetings

With the recent release of 2.4.21 I see many patches have been swept up and incorporated. No sign of the low latency & preemption patches though (not really suprising in a stable series) but does anyone have a set of patches for this new tree for ppc only?

Many thanks.

--
Robin Gilks
Senior Design Engineer Phone: (+64)(3) 357 1569
Tait Electronics Fax : (+64)(3) 359 4632
PO Box 1645 Christchurch Email : [email protected]
New Zealand

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 4 lines · Robin Gilks

With the recent release of 2.4.21 I see many patches have been swept up and incorporated. No sign of the low latency & preemption patches though (not really suprising in a stable series) but does anyone have a set of patches for this new tree for ppc only?

The low latency patch is now part of the kpreempt patch. A kpreempt patch for 2.4.21-pre1 can be found here:

http://www.kernel.org/pub/linux/kernel/people/rml/preempt-kernel/v2.4/

Some tweaks may be required to apply it on the current development kernel.

Regards,
Marius

--
Marius Groeger <[email protected]>
Software Engineering

SYSGO Real-Time Solutions AG | Embedded and Real-Time Software Am Pfaffenstein 14
55270 Klein-Winternheim, Germany

Voice: +49-6136-9948-0 | FAX: +49-6136-9948-10
www.sysgo.de | www.elinos.com | www.osek.de

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#2 lore raw
Quoted 11 lines · Marius Groeger
Quoted 4 lines · Robin Gilks

With the recent release of 2.4.21 I see many patches have been swept up and incorporated. No sign of the low latency & preemption patches though (not really suprising in a stable series) but does anyone have a set of patches for this new tree for ppc only?

The low latency patch is now part of the kpreempt patch. A kpreempt patch for 2.4.21-pre1 can be found here:

http://www.kernel.org/pub/linux/kernel/people/rml/preempt-kernel/v2.4/

Are you sure?

preempt-kernel-rml-2.4.21-pre1-1.patch doesn't have
- low latency stuff (http://www.zip.com.au/~akpm/linux/schedlat.html)
or
- lock-breaking stuff
(http://www.kernel.org/pub/linux/kernel/people/rml/lock-break/)

Eugene

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#3 lore raw
Quoted 5 lines · Eugene Surovegin
Quoted 4 lines

The low latency patch is now part of the kpreempt patch. A kpreempt patch for 2.4.21-pre1 can be found here:

http://www.kernel.org/pub/linux/kernel/people/rml/preempt-kernel/v2.4/

Quoted 7 lines

Are you sure?

preempt-kernel-rml-2.4.21-pre1-1.patch doesn't have
- low latency stuff (http://www.zip.com.au/~akpm/linux/schedlat.html)
or
- lock-breaking stuff
(http://www.kernel.org/pub/linux/kernel/people/rml/lock-break/)

Yes, of course, lock breaking is also needed. I always use both kpreempt and lock-break. Wrong assumption on my part.

Anyway, with this combination you don't need the low-latency patches anymore (according to www.tech9.net/rml/linux):

"With the preemptible kernel, the need for explicit scheduling points, like in the low-latency patches, are no more. However, since we can not preempt while locks are held, we can take a similar model as low-latency and "break" (drop and immediately reacquire) locks to improve system response. The trick is finding when and where we can safely break the locks (periods of quiescence) and how to safely recover. The majority of the lock breaking is in the VM and VFS code. This patch is for users with strong system response requirements affected by the worst-case latencies caused by long-held locks."

Regards,
Marius

--
Marius Groeger <[email protected]>
Software Engineering

SYSGO Real-Time Solutions AG | Embedded and Real-Time Software Am Pfaffenstein 14
55270 Klein-Winternheim, Germany

Voice: +49-6136-9948-0 | FAX: +49-6136-9948-10
www.sysgo.de | www.elinos.com | www.osek.de

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#4 lore raw
Quoted 9 lines · Marius Groeger
Quoted 7 lines · Eugene Surovegin
Quoted 4 lines

The low latency patch is now part of the kpreempt patch. A kpreempt patch for 2.4.21-pre1 can be found here:

http://www.kernel.org/pub/linux/kernel/people/rml/preempt-kernel/v2.4/

Are you sure?

Quoted 8 lines
Quoted 5 lines

preempt-kernel-rml-2.4.21-pre1-1.patch doesn't have
- low latency stuff (http://www.zip.com.au/~akpm/linux/schedlat.html)
or
- lock-breaking stuff
(http://www.kernel.org/pub/linux/kernel/people/rml/lock-break/)

Yes, of course, lock breaking is also needed. I always use both kpreempt and lock-break. Wrong assumption on my part.

OK :)

I also use preempt + lock-break.
Preempt patch alone is not good enough for our applications.

Quoted 2 lines

Anyway, with this combination you don't need the low-latency patches anymore (according to www.tech9.net/rml/linux):

<snip>

He is probably right.

Although lock-break patch wasn't updated for some time. Andrew Morton's low latency patch seems to be more up to date ...

I'm thinking about trying it instead of lock-break or maybe just full patch set from (http://members.optusnet.com.au/ckolivas/kernel/). It probably will require some PPC mods though...

Eugene.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/