Displaying 2 results from an estimated 2 matches for "bakcend".
Did you mean:
backend
2020 Feb 19
2
Poor write performance with golang binding
...| guest-xfer -d /dev/sda write mydisk.img` will fill
mydisk.img with pseudorandom content.
I implemented this both with Ruby and Go. The 'write' op relies on
pwrite_device.
I have pasted the codes to the end of this mail.
I'm creating mydisk.img as a qcow2 file with a raw sparse file bakcend
$ truncate -s 100g myimg.raw
$ qemu-img create -f qcow2 -b myimg.{raw,img}
Then I do
# pv /dev/sda2 | guest-xfer -d /dev/sda write mydisk.img
I find that the ruby implementation produces a 24 MiB/s throughput, while
the go one only 2 MiB/s.
Note that the 'cat' operation (that writes de...
2020 Feb 19
0
Re: Poor write performance with golang binding
...isk.img` will fill
> mydisk.img with pseudorandom content.
>
> I implemented this both with Ruby and Go. The 'write' op relies on
> pwrite_device.
> I have pasted the codes to the end of this mail.
>
> I'm creating mydisk.img as a qcow2 file with a raw sparse file bakcend
>
> $ truncate -s 100g myimg.raw
> $ qemu-img create -f qcow2 -b myimg.{raw,img}
>
> Then I do
>
> # pv /dev/sda2 | guest-xfer -d /dev/sda write mydisk.img
>
> I find that the ruby implementation produces a 24 MiB/s throughput, while
> the go one only 2 MiB/s.
>...