This is really a Linux question, not RTL but it seems it would be most important
to RTL.

I am testing a simulator with the typical military requirement that there be 50%
spare memory avaliable for future growth. Of couse the simulator runs with
set_sched_priority and mlockall (MCL_CURRENT || MCL_FUTURE). I wrote a Q&D
test program to malloc and mlock as much memory as possible. First, I found I
had to go into a spin loop to keep the
program in memory. I also had to change malloc to calloc to make sure the memory
was actually loaded.

My sim has a RTL routine looping at 900Hz and setting a FIFO to my simulator at
30Hz. The Q&D program would block
my sim program from running. 

I also found that the Q&D program would claim it locked 15744KB and according to
top
I have 3 copies running and using 15MB each AND 4MB free, all in 32MB physical. 


--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/

Reply via email to