djamps / migrate-vm

29 stars 16 forks source link

Slow operation #9

Closed megabert closed 5 years ago

megabert commented 7 years ago

I have a scenario with an intermediate Server between source and target XenServer.(Both XenServer 6.5).

When I use migrate-vm to transfer a test vm it takes ~12.5 minutes to transfer.

When I use export via vm-export to an nfs share and vm-import after that, it takes about 2.5 minutes to transfer.

The disk of the test-vm is 4 GB.

megabert commented 7 years ago

Should be resolved by applying Pull Request https://github.com/djamps/migrate-vm/pull/10

Since the Pull Request had been accepted, the Issue is solved.

megabert commented 7 years ago

At the moment a data chunk is read, the program has to wait until that is read is finished and then can write and has to wait until that is finished.

Better would be to read and write separately without blocking the program and to have a queue of several data chunks, to be written when possible. But that's beyond my perl and programming skills.