QNX4 didn’t use swapping because it is unsuitable for realtime apps.
What’s now in RTP? I found a swap file. Is it only for compatibility
with linux apps?
Can (shall) I switch swapping of for realtime apps?
Hi there,
Swapping by default is disabled for all app. You have to take
special steps to enable it. It is there mostly for gcc, as it
needs a lot of memory to run.
QNX4 didn’t use swapping because it is unsuitable for realtime apps.
What’s now in RTP? I found a swap file. Is it only for compatibility
with linux apps?
Can (shall) I switch swapping of for realtime apps?
Hi there,
Swapping by default is disabled for all app. You have to take
special steps to enable it.
Which are the steps?
I had not found something in the docs.
You have to unlock you memory with a call to munlockall(). This
will enable swapping for you, but I don’t think this is really
recommented yet, as the swapping is still fairly new and only
guaranteed to work with gcc and friends.
You have to unlock you memory with a call to munlockall(). This
will enable swapping for you, but I don’t think this is really
recommented yet, as the swapping is still fairly new and only
guaranteed to work with gcc and friends.
Does this mean that all new processes will start with their memory locked in
physical
memory? I was trying to use the “mlock” function as recommended in the “how
to write
an interrupt handler” docs, but my app would error out with “unimplemented
function”.
What’s the “correct” way to deal with this situation?
pgraves@qnx.com > wrote in message <8smqgg$mqa$> 1@nntp.qnx.com> >…
You have to unlock you memory with a call to munlockall(). This
will enable swapping for you, but I don’t think this is really
recommented yet, as the swapping is still fairly new and only
guaranteed to work with gcc and friends.
Does this mean that all new processes will start with their memory locked
in
physical memory?
Yes
I was trying to use the “mlock” function as recommended in the “how
to write
an interrupt handler” docs, but my app would error out with “unimplemented
function”.
What’s the “correct” way to deal with this situation?
I did a quick test with your app and another that just does a bunch
of malloc’s and it does not look like the munlockall() will persist
across an exec. Posix says memory locks should not persist across
an exec, so the same should be true of unlocks I believe.
Hi there,
Swapping by default is disabled for all app. You have to take
special steps to enable it.
Which are the steps?
I had not found something in the docs.
You have to unlock you memory with a call to munlockall(). This
will enable swapping for you, but I don’t think this is really
recommented yet, as the swapping is still fairly new and only
guaranteed to work with gcc and friends.