Re: [PATCH] Deadlock during heavy write activity to userspace NFSserver on local NFS mount

From: Avi Kivity
Date: Wed Jul 28 2004 - 00:17:12 EST


Trond Myklebust wrote:

På ty , 27/07/2004 klokka 21:29, skreiv Nick Piggin:



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()?



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.


Avi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/