* Question about performance comparison between virtio-fs and virtio-blk @ 2022-07-26 12:23 Hao Xu 2022-07-26 12:55 ` Stefan Hajnoczi 0 siblings, 1 reply; 5+ messages in thread From: Hao Xu @ 2022-07-26 12:23 UTC (permalink / raw) To: Stefan Hajnoczi, qemu-devel 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Question about performance comparison between virtio-fs and virtio-blk 2022-07-26 12:23 Question about performance comparison between virtio-fs and virtio-blk Hao Xu @ 2022-07-26 12:55 ` Stefan Hajnoczi 2022-07-26 13:17 ` Vivek Goyal 0 siblings, 1 reply; 5+ messages in thread From: Stefan Hajnoczi @ 2022-07-26 12:55 UTC (permalink / raw) To: Hao Xu; +Cc: qemu-devel, virtio-fs, Vivek Goyal On Tue, 26 Jul 2022 at 08:24, Hao Xu <hao.xu@linux.dev> wrote: > 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. 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Question about performance comparison between virtio-fs and virtio-blk 2022-07-26 12:55 ` Stefan Hajnoczi @ 2022-07-26 13:17 ` Vivek Goyal 2022-07-26 14:41 ` Hao Xu 0 siblings, 1 reply; 5+ messages in thread From: Vivek Goyal @ 2022-07-26 13:17 UTC (permalink / raw) To: Stefan Hajnoczi; +Cc: Hao Xu, qemu-devel, virtio-fs On Tue, Jul 26, 2022 at 08:55:38AM -0400, Stefan Hajnoczi wrote: > On Tue, 26 Jul 2022 at 08:24, Hao Xu <hao.xu@linux.dev> wrote: > > 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. > 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. > 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Question about performance comparison between virtio-fs and virtio-blk 2022-07-26 13:17 ` Vivek Goyal @ 2022-07-26 14:41 ` Hao Xu 2022-07-26 15:37 ` Vivek Goyal 0 siblings, 1 reply; 5+ messages in thread From: Hao Xu @ 2022-07-26 14:41 UTC (permalink / raw) To: Vivek Goyal, Stefan Hajnoczi; +Cc: qemu-devel, virtio-fs On 7/26/22 21:17, Vivek Goyal wrote: > On Tue, Jul 26, 2022 at 08:55:38AM -0400, Stefan Hajnoczi wrote: >> On Tue, 26 Jul 2022 at 08:24, Hao Xu <hao.xu@linux.dev> wrote: >>> 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. >> > > 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. > 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 > >> 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 > > ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Question about performance comparison between virtio-fs and virtio-blk 2022-07-26 14:41 ` Hao Xu @ 2022-07-26 15:37 ` Vivek Goyal 0 siblings, 0 replies; 5+ messages in thread From: Vivek Goyal @ 2022-07-26 15:37 UTC (permalink / raw) To: Hao Xu; +Cc: Stefan Hajnoczi, qemu-devel, virtio-fs On Tue, Jul 26, 2022 at 10:41:23PM +0800, Hao Xu wrote: > On 7/26/22 21:17, Vivek Goyal wrote: > > On Tue, Jul 26, 2022 at 08:55:38AM -0400, Stefan Hajnoczi wrote: > > > On Tue, 26 Jul 2022 at 08:24, Hao Xu <hao.xu@linux.dev> wrote: > > > > 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. > > > > > > > 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. > > > 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 > > Thanks, > Hao > > > > > > 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 > > > > > ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-07-26 15:42 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2022-07-26 12:23 Question about performance comparison between virtio-fs and virtio-blk Hao Xu 2022-07-26 12:55 ` Stefan Hajnoczi 2022-07-26 13:17 ` Vivek Goyal 2022-07-26 14:41 ` Hao Xu 2022-07-26 15:37 ` Vivek Goyal
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).