Earlier quoted context omitted.
You're assuming the writes are actually going to a physical disk. As I mentioned in the post, the hypervisors are very likely just writing to RAM and not ever committing it to disk. Even when you `fsync()` from a VM, there is no guarantee the hypervisor puts that to disk. If you look at the graphs, they corroborate this. The "native" disk never really exceeds 500 to 600 MB/s, which is about as fast as my SSD goes. Th…
I meant to say you've not benchmarked disk access, and we have no idea what each filesystem is actually doing. Caching performance is "nice", but it says nothing about the actual performance we'd get in real use. Maybe the "slow" fs just exhibits less aggressive caching, which might prove just as efficient depending on the workload. It's definitely interesting to note the huge differences, but I'd really like to see…
Comparing Filesystem Performance in Virtual Machines
31–40 of 46 posts
Re: Comparing Filesystem Performance in Virtual Machines
#32We ended up using the synchronization feature in PyCharm to continually rsync files from native FS into the VirtualBox instance. Huge perf improvement but a little more cumbersome for the developers. But so far it has been working good, PyCharm's sync feature does what it is supposed to.
Re: Comparing Filesystem Performance in Virtual Machines
#33Due to page cache usage it's hard to say what this benchmark is comparing. The I/O pattern seen by the actual disk, shared folder, or NFS may be different between benchmark runs. It all depends on amount of RAM available, state of cache, readahead, write-behind, etc.
Please rerun the benchmark with -I to get an apples-to-apples comparison.
Re: Comparing Filesystem Performance in Virtual Machines
#343GB/s writes on a single SSD should raise more eyebrows. I dunno what was actually benchmarked, but there's a problem somewhere...
Writing to /dev/null is even faster I bet.
>dd if=/dev/zero of=/dev/null
^C32646111+0 records in
32646110+0 records out
16714808320 bytes (17 GB) copied, 17.881 s, 935 MB/s
Running on the host OS of my laptop.Re: Comparing Filesystem Performance in Virtual Machines
#353GB/s writes on a single SSD should raise more eyebrows. I dunno what was actually benchmarked, but there's a problem somewhere...
You're assuming the writes are actually going to a physical disk. As I mentioned in the post, the hypervisors are very likely just writing to RAM and not ever committing it to disk. Even when you `fsync()` from a VM, there is no guarantee the hypervisor puts that to disk. If you look at the graphs, they corroborate this. The "native" disk never really exceeds 500 to 600 MB/s, which is about as fast as my SSD goes. Th…
A typical thing that performance benchmarks do to negate guest OS caching is to process significantly more data as what the available RAM is set to. For example, if your guest OS RAM is set 512MB, process 10GB of random data. Of course then the question is how-to get random data as you don't want to end up testing the random generator ;) or your host OS caching.
Another way to make sure you test data committed to disk could be to include a "shutdown guest OS" part and measure total time until the guest has been fully shut down.
I know that at least VMware has the ability to turn off disk caching (in Fusion, select Settings, advanced "Hard Disk Buffering" Even while you tested the same guest OS, we don't even know if the hard disk adapters where both using the same hard disk drivers. Performance differs between IDE/Sata/SCSI drivers. SCSI drivers have queue depths, IDE drivers have not.
Re: Comparing Filesystem Performance in Virtual Machines
#36Earlier quoted context omitted.
I meant to say you've not benchmarked disk access, and we have no idea what each filesystem is actually doing. Caching performance is "nice", but it says nothing about the actual performance we'd get in real use. Maybe the "slow" fs just exhibits less aggressive caching, which might prove just as efficient depending on the workload. It's definitely interesting to note the huge differences, but I'd really like to see…
how are these not real conditions?
Re: Comparing Filesystem Performance in Virtual Machines
#37Re: Comparing Filesystem Performance in Virtual Machines
#38Earlier quoted context omitted.
You're assuming the writes are actually going to a physical disk. As I mentioned in the post, the hypervisors are very likely just writing to RAM and not ever committing it to disk. Even when you `fsync()` from a VM, there is no guarantee the hypervisor puts that to disk. If you look at the graphs, they corroborate this. The "native" disk never really exceeds 500 to 600 MB/s, which is about as fast as my SSD goes. Th…
The problem is that the tests are flawed and the native speed being slower as virtual is a pretty big red herring for that. That's OK because benchmarking that tests what you are after is actually very difficult. Small assumptions can create big differences. If you can't guarantee that the data has actually been written to the disk then you're testing caching mechanisms, something you already point out in your articl…
I never tested going over the native's RAM.
Re: Comparing Filesystem Performance in Virtual Machines
#39Earlier quoted context omitted.
Writing to /dev/null is even faster I bet.
>dd if=/dev/zero of=/dev/null ^C32646111+0 records in 32646110+0 records out 16714808320 bytes (17 GB) copied, 17.881 s, 935 MB/s Running on the host OS of my laptop.
$ dd if=/dev/zero of=/dev/null bs=1M
^C55034+1 records in
55034+0 records out
57707331584 bytes (58 GB) copied, 6.04479 s, 9.5 GB/s
And this is a 7 year old laptop. I could get blistering fast speeds writing to /dev/null on my latest 6 core i7 ;-)Re: Comparing Filesystem Performance in Virtual Machines
#40Would love to see in there KVM and Xenserver; you know, stuff that actual clouds run on.
I think you mean KVM and Xen . Xen hypervisor is open source project just like KVM while XenServer is a product that uses Xen hypervisor. Just think of Linux kernel and Linux distributions.