Skip to contentSkip to conversation

Question about performance comparison between virtio-fs and virtio-blk

DISCUSSION Hao Xu 3 participants 5 messages Jul 26, 2022

lore
Share & tools
lore
#1 lore raw
In reply to Hao Xu
Quoted 4 lines · Hao Xu

I watched your presentation about virtiofs in 2020,

https://www.youtube.com/watch?v=EIVOzTsGMMI&t=232s

Quoted 8 lines

which is really helpful to me, but I have a question about the graph at 3:53, could you give

me more info about the test, like what tool you use for the test, if it's fio, what is the parameters.

I used fio to do randread test in a qemu box, but turns out the iops of virtio-blk and virtio-fs are similar.

I have CCed Vivek Goyal, who has done more virtiofs benchmarking and might have ideas to share.

The benchmarking tool was fio with the stated blocksize and I/O pattern. The benchmark was probably run with direct=1. Based on the virtio-blk numbers I think iodepth was greater than 1 but I don't have the exact fio job parameters.

Stefan

#2 lore raw
Quoted 5 lines · Stefan Hajnoczi
Quoted 4 lines · Hao Xu

I watched your presentation about virtiofs in 2020,

https://www.youtube.com/watch?v=EIVOzTsGMMI&t=232s

Quoted 9 lines
Quoted 8 lines

which is really helpful to me, but I have a question about the graph at 3:53, could you give

me more info about the test, like what tool you use for the test, if it's fio, what is the parameters.

I used fio to do randread test in a qemu box, but turns out the iops of virtio-blk and virtio-fs are similar.

Hi Hao,

My impression in general is that virtio-blk is much faster than virtiofs. A simple macro test is do a kernel compilation and compare time taken between the two.

Quoted 7 lines

I have CCed Vivek Goyal, who has done more virtiofs benchmarking and might have ideas to share.

The benchmarking tool was fio with the stated blocksize and I/O pattern. The benchmark was probably run with direct=1. Based on the virtio-blk numbers I think iodepth was greater than 1 but I don't have the exact fio job parameters.

I had basically used fio jobs. I wrote some simple wrapper scripts to run fio and parse and report numbers.

https://github.com/rhvgoyal/virtiofs-tests

I don't have data for virtio-blk but I do seem to have some comparison numbers of virtiofs and virtio-9p.

https://github.com/rhvgoyal/virtiofs-tests/tree/master/performance-results/feb-23-2021

Thanks
Vivek

Hao Xu

author
#0 lore raw

Hi Stefan,

I watched your presentation about virtiofs in 2020,

https://www.youtube.com/watch?v=EIVOzTsGMMI&t=232s

which is really helpful to me, but I have a question about the graph at 3:53, could you give

me more info about the test, like what tool you use for the test, if it's fio, what is the parameters.

I used fio to do randread test in a qemu box, but turns out the iops of virtio-blk and virtio-fs are similar.

Thanks,

Hao

author
#3 lore raw
In reply to Vivek Goyal
Quoted 12 lines · Vivek Goyal
Quoted 11 lines · Stefan Hajnoczi
Quoted 10 lines · Hao Xu

I watched your presentation about virtiofs in 2020,

https://www.youtube.com/watch?v=EIVOzTsGMMI&t=232s

which is really helpful to me, but I have a question about the graph at 3:53, could you give

me more info about the test, like what tool you use for the test, if it's fio, what is the parameters.

Quoted 7 lines
Quoted 3 lines
Quoted 2 lines

I used fio to do randread test in a qemu box, but turns out the iops of virtio-blk and virtio-fs are similar.

Hi Hao,

My impression in general is that virtio-blk is much faster than virtiofs.

When testing virtio-blk, did you use the device directly or mount it and test against a file.

Quoted 2 lines

A simple macro test is do a kernel compilation and compare time taken between the two.

Good idea, I just tested with single file.

Thanks,
Hao

Quoted 23 lines
Quoted 8 lines

I have CCed Vivek Goyal, who has done more virtiofs benchmarking and might have ideas to share.

The benchmarking tool was fio with the stated blocksize and I/O pattern. The benchmark was probably run with direct=1. Based on the virtio-blk numbers I think iodepth was greater than 1 but I don't have the exact fio job parameters.

I had basically used fio jobs. I wrote some simple wrapper scripts to run fio and parse and report numbers.

https://github.com/rhvgoyal/virtiofs-tests

I don't have data for virtio-blk but I do seem to have some comparison numbers of virtiofs and virtio-9p.

https://github.com/rhvgoyal/virtiofs-tests/tree/master/performance-results/feb-23-2021

Thanks
Vivek

#4 lore raw
Quoted 17 lines · Hao Xu
Quoted 16 lines · Vivek Goyal
Quoted 14 lines · Stefan Hajnoczi
Quoted 12 lines · Hao Xu

I watched your presentation about virtiofs in 2020,

https://www.youtube.com/watch?v=EIVOzTsGMMI&t=232s

which is really helpful to me, but I have a question about the graph at 3:53, could you give

me more info about the test, like what tool you use for the test, if it's fio, what is the parameters.

I used fio to do randread test in a qemu box, but turns out the iops of virtio-blk and virtio-fs are similar.

Quoted 6 lines
Quoted 3 lines

Hi Hao,

My impression in general is that virtio-blk is much faster than virtiofs.

When testing virtio-blk, did you use the device directly or mount it and test against a file.

Frankly speaking, I don't recall any of the details right now. If do remember that I ran some kernel compilation tests on virtio-blk and that ofcourse needed mounting filesystem on virtio-blk.

Quoted 5 lines
Quoted 3 lines

A simple macro test is do a kernel compilation and compare time taken between the two.

Good idea, I just tested with single file.

single file using fio is good as micro benchmark which primarily excercises the data operations. But kernel compilation is a good macro benchmark sort of workload which stresses filesystem both for data and metadata operations.

Thanks
Vivek

Quoted 28 lines

Thanks,
Hao

Quoted 23 lines
Quoted 8 lines

I have CCed Vivek Goyal, who has done more virtiofs benchmarking and might have ideas to share.

The benchmarking tool was fio with the stated blocksize and I/O pattern. The benchmark was probably run with direct=1. Based on the virtio-blk numbers I think iodepth was greater than 1 but I don't have the exact fio job parameters.

I had basically used fio jobs. I wrote some simple wrapper scripts to run fio and parse and report numbers.

https://github.com/rhvgoyal/virtiofs-tests

I don't have data for virtio-blk but I do seem to have some comparison numbers of virtiofs and virtio-9p.

https://github.com/rhvgoyal/virtiofs-tests/tree/master/performance-results/feb-23-2021

Thanks
Vivek