Messages in this thread |  | | Subject | Re: guarantee_memory() syscall? | Date | Sun, 29 Oct 2000 14:56:19 +0000 (GMT) | From | Alan Cox <> |
| |
> Can anyone tell me about the viability of a guarantee_memory() syscall? > [I'm thinking: it would either kill the process, or allocate all virtual > memory needed for its shared libraries, buffers, allocated memory, etc. > Furthermore, it would render this process immune to the OOM killer, > unless it allocated further memory.]
Hack mode on:
Allocate an array of pages the required size and attach them to a process via a device and mmap(). Basically you are just wanting to do private unswappable pages so grab free pages in kernel memory and mmap them
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
|  |