Re: [PATCH] Allow NBD to be used locally

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <Laurent.Vivier@...>
Cc: <pavel@...>, <Paul.Clements@...>, <nbd-general@...>, <linux-kernel@...>
Date: Saturday, February 2, 2008 - 12:13 pm

> > > It creates a kthread to avoid the deadlock described in NBD

Not necessarily.  Problems start when the system wants to free memory
by writing out pages through NBD, and the userspace process servicing
it tries to allocate some memory in order to accomplish this.

Recent kernels have gotten much better at coping with this, so it
might not be easy to make local NBD deadlock under normal
circumstances.  But if you try hard enough, it's not impossible:
throttle_vm_writeout() can stall an allocation until pending writes
have completed, all with plenty of memory available in the system.

BTW, you can basically substitute local NBD with fuse-over-loop, and
get a similar kind of service, with similar problems.

Miklos
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Allow NBD to be used locally, Laurent Vivier, (Fri Feb 1, 9:25 am)
Re: [PATCH] Allow NBD to be used locally, Pavel Machek, (Sat Feb 2, 7:23 am)
Re: [PATCH] Allow NBD to be used locally, Laurent Vivier, (Sat Feb 2, 11:26 am)
Re: [PATCH] Allow NBD to be used locally, Pavel Machek, (Sat Feb 2, 4:54 pm)
Re: [PATCH] Allow NBD to be used locally, Miklos Szeredi, (Sat Feb 2, 12:13 pm)
Re: [PATCH] Allow NBD to be used locally, Jan Engelhardt, (Sat Feb 2, 7:52 am)