All of lore.kernel.org
 help / color / mirror / Atom feed
From: Henry Bausley <hbausley@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] shared memory mlockall error w/ mono	interpreter?
Date: Thu, 04 Dec 2008 08:43:40 -0800	[thread overview]
Message-ID: <1228409020.8435.25.camel@domain.hid> (raw)
In-Reply-To: <1228242306.29066.5.camel@domain.hid>


This problem seemed to be caused by the boehm garbage collector used in
mono.  The Boehm garbage collector uses SIGXCPU and SIGPWR to
synchronize cross-thread garbage collection.  Recompiling the mono
garbage collector to use a different signal values (SIGRTMIN + 5)
instead of SIGXCPU seems to have solved the problem. Does this make
sense.



On Tue, 2008-12-02 at 10:25 -0800, Henry Bausley wrote:
> The mono application doesn't need realtime services.  But it does need
> access to DPRAM.
> 
> It crashes with the message:
> Xenomai: process memory not locked (missing mlockall?)
> 
> On Fri, 2008-11-21 at 10:55 +0100, Gilles Chanteperdrix wrote:
> > Henry Bausley wrote:
> > > We have an application that uses shared memory to communicate from our
> > > kernel driver to user space.  In our own standard C applications we can
> > > issue an mlockall and we can use multiple threads without a problem.
> > > 
> > > However, we are also using the mono .NET interpreter which links to a
> > > shared library that links to the xenomai shared memory and issues a
> > > mlockall.  Whenever we run programs using the mono interpreter we get
> > > the error message Xenomai: process memory not locked (mlockall).  mono
> > > is a .NET virtual machine w/ garbage collection like java.
> > 
> > Does the mono application need real-time services ?
> > 
> > > 
> > > We tried --enable-posix-auto-mlockall but the third party apps running
> > > under mono still crashes with the mlockall
> > 
> > How does it crash ? Not enough memory ?
> > 




  parent reply	other threads:[~2008-12-04 16:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-21  0:16 [Xenomai-help] shared memory mlockall error w/ mono interpreter? Henry Bausley
2008-11-21  9:55 ` Gilles Chanteperdrix
2008-12-02 18:25   ` Henry Bausley
2008-12-02 19:15     ` Gilles Chanteperdrix
2008-12-04 16:43     ` Henry Bausley [this message]
2008-12-04 17:41       ` Gilles Chanteperdrix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1228409020.8435.25.camel@domain.hid \
    --to=hbausley@domain.hid \
    --cc=gilles.chanteperdrix@xenomai.org \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.