lkml.org 
[lkml]   [1997]   [Oct]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectMemory lock problem in Linux
Date
It looks like the mlockall call in Linux is broken, at least in the stock
2.0.30 production kernel. Try running this as root:

#define _XOPEN_SOURCE
#include <unistd.h>
#include <stdio.h>
#include <sys/mman.h>

int main(void)
{
mlockall(MCL_CURRENT);
printf("Do something...\n");
exit(0);
}

You should get a seg fault. I've only tested this on Alpha, but I'm
sure it's there for all architectures. Can someone fix this? It's
keeping me from developing real-time apps in Linux. Richard Henderson,
and others have a patch for this, (which works) but it's not in the
production source tree yet. :-( Can someone create (or get) the patch
and submit it to Linus?

--
.______________________________________________________________________.
| Michael Champigny - Software Engineer | | | | | | | |
| Alpha CAD Physical Analysis | d | i | g | i | t | a | l |
|__________________________________________|___|___|___|___|___|___|___|

\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.144 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site