Messages in this thread | | | From | Michael Champigny <> | Subject | Memory lock problem in Linux | Date | Wed, 15 Oct 1997 17:53:21 -0400 (EDT) |
| |
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 | |__________________________________________|___|___|___|___|___|___|___|
| |