Re: [Qemu-devel] Re: NBD server for QEMU images

2006-12-14 Thread Avi Kivity
Salvador Fandino wrote: I have run some tests and found that it's easy to cause a deadlock just untaring a file over an nbd device being served from localhost (using the standard nbd-server or my own, it doesn't matter). Another interesting finding is that when the deadlock happens, qemu-nbds is

[Qemu-devel] Re: NBD server for QEMU images

2006-12-13 Thread Salvador Fandino
Avi Kivity wrote: > Martin Guy wrote: >>> - write tons of data to nbd device, data ends up in pagecache >>> - memory gets low, kswapd wakes up, calls nbd device to actually write >>> the data >>> - nbd issues a request, which ends up on the nbd server on the same >>> machine >>> - the nbd server al

Re: [Qemu-devel] Re: NBD server for QEMU images

2006-12-13 Thread Avi Kivity
Martin Guy wrote: - write tons of data to nbd device, data ends up in pagecache - memory gets low, kswapd wakes up, calls nbd device to actually write the data - nbd issues a request, which ends up on the nbd server on the same machine - the nbd server allocates memory - memory allocation hangs

Re: [Qemu-devel] Re: NBD server for QEMU images

2006-12-13 Thread Martin Guy
- write tons of data to nbd device, data ends up in pagecache - memory gets low, kswapd wakes up, calls nbd device to actually write the data - nbd issues a request, which ends up on the nbd server on the same machine - the nbd server allocates memory - memory allocation hangs waiting for kswapd

Re: [Qemu-devel] Re: NBD server for QEMU images

2006-12-13 Thread Avi Kivity
Anthony Liguori wrote: Mounting a partition being served on the same host as read-write can cause deadlocks. From nbd-2.9.0 README file: This text is pretty old. Is this still valid? This would imply that things like loop can result in dead locks. I don't see why flushing one device would

Re: [Qemu-devel] Re: NBD server for QEMU images

2006-12-12 Thread Mark Williamson
> >> And write access works for me. What's this limitation you speak of? > > > > Mounting a partition being served on the same host as read-write can > > cause deadlocks. From nbd-2.9.0 README file: > > This text is pretty old. Is this still valid? This would imply that > things like loop can re

[Qemu-devel] Re: NBD server for QEMU images

2006-12-12 Thread Anthony Liguori
Salvador Fandino wrote: Anthony Liguori wrote: Salvador Fandiño wrote: Hi, The patch available from http://qemu-forum.ipi.fi/viewtopic.php?t=2718 adds a new utility, qemu-nbds, that implements a NBD server (see http://nbd.sf.net) for QEMU images. Using this utility it is posible to mount imag

Re: [Qemu-devel] Re: NBD server for QEMU images

2006-12-12 Thread Christian MICHON
On 12/12/06, Daniel Jacobowitz <[EMAIL PROTECTED]> wrote: How is everybody missing the point? :-) mount -o loop doesn't mount qcow images. you could also mount it through a samba tunnel -- Christian ___ Qemu-devel mailing list Qemu-devel@nongnu.o

[Qemu-devel] Re: NBD server for QEMU images

2006-12-12 Thread Anthony Liguori
Paul Brook wrote: mount -o loop does this. How is everybody missing the point? :-) mount -o loop doesn't mount qcow images. Would be that difficult to write a qcow fs module ? qcow is an image format, not a filesystem. I'd guess it should be possible to use the device-mapper framework to do

RE: RE : Re: [Qemu-devel] Re: NBD server for QEMU images

2006-12-12 Thread Paul Robinson
> > > > > It's mostly intended to be used for accessing the files inside > > > > > QEMU disk images locally, without having to launch a virtual > > > > > machine and accessing then from there. > > > > > > > > mount -o loop does this. > > > > > > How is everybody missing the point? :-) mount -o

Re: [Qemu-devel] Re: NBD server for QEMU images

2006-12-12 Thread Mark Williamson
> > > It's mostly intended to be used for accessing the files inside QEMU > > > disk images locally, without having to launch a virtual machine and > > > accessing then from there. > > > > mount -o loop does this. > > How is everybody missing the point? :-) mount -o loop doesn't mount > qcow image

Re: RE : Re: [Qemu-devel] Re: NBD server for QEMU images

2006-12-12 Thread Daniel Jacobowitz
On Tue, Dec 12, 2006 at 06:33:22PM +0100, Sylvain Petreolle wrote: > > > > It's mostly intended to be used for accessing the files inside QEMU disk > > > > images locally, without having to launch a virtual machine and accessing > > > > then from there. > > > > > > mount -o loop does this. > > >

Re: RE : Re: [Qemu-devel] Re: NBD server for QEMU images

2006-12-12 Thread Johannes Schindelin
Hi, On Tue, 12 Dec 2006, Sylvain Petreolle wrote: > > > > It's mostly intended to be used for accessing the files inside QEMU disk > > > > images locally, without having to launch a virtual machine and accessing > > > > then from there. > > > > > > mount -o loop does this. > > > > How is everyb

Re: [Qemu-devel] Re: NBD server for QEMU images

2006-12-12 Thread Paul Brook
> > > mount -o loop does this. > > > > How is everybody missing the point? :-) mount -o loop doesn't mount > > qcow images. > > Would be that difficult to write a qcow fs module ? qcow is an image format, not a filesystem. I'd guess it should be possible to use the device-mapper framework to do t

RE : Re: [Qemu-devel] Re: NBD server for QEMU images

2006-12-12 Thread Sylvain Petreolle
> > > It's mostly intended to be used for accessing the files inside QEMU disk > > > images locally, without having to launch a virtual machine and accessing > > > then from there. > > > > mount -o loop does this. > > How is everybody missing the point? :-) mount -o loop doesn't mount > qcow ima

[Qemu-devel] Re: NBD server for QEMU images

2006-12-12 Thread Salvador Fandino
Anthony Liguori wrote: > Salvador Fandiño wrote: >> Hi, >> >> The patch available from http://qemu-forum.ipi.fi/viewtopic.php?t=2718 >> adds a new utility, qemu-nbds, that implements a NBD server (see >> http://nbd.sf.net) for QEMU images. >> >> Using this utility it is posible to mount images in a

Re: [Qemu-devel] Re: NBD server for QEMU images

2006-12-12 Thread Daniel Jacobowitz
On Tue, Dec 12, 2006 at 04:58:32PM +, Paul Brook wrote: > On Tuesday 12 December 2006 17:00, Salvador Fandino wrote: > > It serves disk images in any format QEMU can handle, for instance, qcow > > images. > > > > It's mostly intended to be used for accessing the files inside QEMU disk > > image

Re: [Qemu-devel] Re: NBD server for QEMU images

2006-12-12 Thread Paul Brook
On Tuesday 12 December 2006 17:00, Salvador Fandino wrote: > Martin Guy wrote: > >> The patch available from http://qemu-forum.ipi.fi/viewtopic.php?t=2718 > >> adds a new utility, qemu-nbds, that implements a NBD server > > > > I have been using nbd volumes mounted from inside qemu for filestore >

[Qemu-devel] Re: NBD server for QEMU images

2006-12-12 Thread Salvador Fandino
Martin Guy wrote: >> The patch available from http://qemu-forum.ipi.fi/viewtopic.php?t=2718 >> adds a new utility, qemu-nbds, that implements a NBD server > > I have been using nbd volumes mounted from inside qemu for filestore > and for swap, both read-write, served from files and from partitions

[Qemu-devel] Re: NBD server for QEMU images

2006-12-12 Thread Anthony Liguori
Salvador Fandiño wrote: Hi, The patch available from http://qemu-forum.ipi.fi/viewtopic.php?t=2718 adds a new utility, qemu-nbds, that implements a NBD server (see http://nbd.sf.net) for QEMU images. Using this utility it is posible to mount images in any format supported by QEMU. Unfortuna