On Wed, 2006-12-27 at 10:25 +0100, Gilles Chanteperdrix wrote:
> M. Koehrer wrote:
> > Hi Philippe,
> >
> > I agree. To fix the root cause is actually the very best to do!
> > This eases the life of users and developers.
> >
> > Regards
> >
> > Mathias
>
> Hi Mathias,
>
> here comes a workaround for the COW issue on Linux 2.6.19. The patch
> relies on a new VM_NOCOW flag which should be set for real-time
> application if you use Xenomai trunk.
>
> It would be nice if you could test it.
>
You will additionally need to apply this patch to the Xenomai tree in
order to activate the COW-disable feature:
--- ksrc/nucleus/shadow.c.orig 2006-12-27 11:42:50.000000000 +0100
+++ ksrc/nucleus/shadow.c 2006-12-27 11:42:55.000000000 +0100
@@ -839,6 +839,8 @@
#ifdef CONFIG_MMU
if (!(current->mm->def_flags & VM_LOCKED))
send_sig(SIGXCPU, current, 1);
+ else
+ current->mm->def_flags |= VM_NOCOW;
#endif /* CONFIG_MMU */
current->cap_effective |=
--
Philippe.
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help