3 ms·
The setup seems to differ in what security mitigation options are enabled in the kernel on wsl2 and Ubuntu. I wonder if that's where the difference comes from.
by viraptor 6y ago
The setup seems to differ in what security mitigation options are enabled in the kernel on wsl2 and Ubuntu. I wonder if that's where the difference comes from.
Having a system in a VM outperform similar kernel on bare metal is a bit weird.
- lsllc 6y agoI think this is usually because the host OS is caching the files that make up the VM disk image. So effectively, the VM is running from a ram disk. Intuition says that you could probably configure caching/readahead on the bare-metal system to do the same with similar performance results.
- viraptor 6y agoWsl2 is winning on some CPU-bound tests though. For example page 2 has lots of CPU-only benchmarks. The caching didn't matter there.
- lsllc 6y agoFor Dolfyn where the WSL2 improvement was fractional better I'd say that was within the error bars. For LZ4 unless the test somehow accounts for that by preloading the data I'd put that down to host-OS caching.
- samus 6y agoThe difference in performance and power management on both Linux and Windows influence and muddle the picture, especially when things have improved so far with WSL2.
- viraptor 6y agoI checked and it turns out their running Ubuntu with "ondemand" CPU scanning rather than "performance". It could explain at least a part of it and I'm surprised they haven't tried to match the VM/non-VM CPU baseline before comparing IO performance.