[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: [rtl] mlockall broken ?



On Fri, 24 Sep 1999 j_clifton@aerosimulation.com wrote:

> 
> I never got an answer to my previous query. I wrote a test program which 
> mallocs memory and does mlockall until mlockall fails at the arbitrary
> 50% of physical memory limit. I use memset to dirty up the memory and
> then go into a spin loop calling rand() to insure I stay in memory. The
> problem is mlockall claims that the memory is resident, locked, not
> pagable yet I can load more copies of the program than there is physical
> memory. Below is a snippet from top:

This has nothing to with RTLinux. From  sys_mlock in linux/mm/memory.c:

/* we may lock at most half of physical memory... */
/* (this check is pretty bogus, but doesn't hurt) */
     if (locked > num_physpages/2)
              goto out;




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