På ty , 27/07/2004 klokka 21:29, skreiv Nick Piggin:I mlock(MLOCK_ALL) as soon as I wake up in the morning (and I never ask the kernel for more memory), but the kernel likes to allocate memory when performing some syscalls for me.
There is some need arising for a call to set the PF_MEMALLOC flag for
userspace tasks, so you could probably get a patch accepted. Don't
call it KSWAPD_HELPER though, maybe MEMFREE or RECLAIM or RECLAIM_HELPER.
But why is your NFS server needed to reclaim memory? Do you have the
filesystem mounted locally?
...and why can't this problem be fixed by judicious use of mlock()?