Sorry forgot to send to the list

---------- Forwarded message ----------
From: Eric Noulard <[EMAIL PROTECTED]>
Date: 25 juin 2007 18:04
Subject: Re: [Xenomai-help] Xenomai and mlockall
To: Johan Borkhuis <[EMAIL PROTECTED]>


2007/6/25, Johan Borkhuis <[EMAIL PROTECTED]>:
> I am trying to run my Xenomai application as non-root. I disabled
> XENO_OPT_SECURITY_ACCESS to allow non-root users to run Xenomai
> applications. However, this causes my application to exit with the error:
>
> Xenomai: process memory not locked (missing mlockall?)
>
> Is there a way to avoid this error? I am running on an embedded system
> without swap and without disk, so there is no real need for mlock or
> mlockall.

I may be wrong but even on embedded system without
mlockall(MCL_FUTURE) how can you be sure the memory you get from from
a dynamically allocated memory (malloc/calloc etc...) is
currently allocated in PHYSICAL memory?

Usually linux is lazy and it gives you "real" memory when
you hit the memory page.

> Is there a way to "tweak" the CAP_IPC_LOCK capability of the system or
> the task so that I can run mlockall call,

May be you can use 'sudo' to run the task?

> or is there a way to disable this check on Xenomai?

I am not able to answer this one :))

--
Erk


-- 
Erk

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to