[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [win-pv-devel] Windows on Xen bad IO performance
De-htmling... Responses below... ----- From: win-pv-devel [mailto:win-pv-devel-bounces@xxxxxxxxxxxxxxxxxxxx] On Behalf Of Jakub Kulesza Sent: 30 July 2018 16:08 To: win-pv-devel@xxxxxxxxxxxxxxxxxxxx Subject: [win-pv-devel] Windows on Xen bad IO performance I have a number of different hosts with different xen and windows versions, but they all share the same thing. Each time I install xen windows pv drivers 8.2.0 from here: https://www.xenproject.org/developer...v-drivers.html I'm getting worse IO performance than before, on standard Windows drivers. This one setup for example: • Host X5450, 8GB ram, samsung evo SSD • ubuntu 18.04 lts, xen 4.9 • VM win 2016, 4GB ram, all CPU cores, LVM volume used as the VMs drive (in all cases below). • Xen without PV drivers: o I'm getting about seq read 34 MB/s, seq write 34 MB/s, random seek + rw 34 MB/s in Passmark o Atto benchmark runs and provides so so results o system is always usable • Xen with PV drivers: o I'm getting about seq read seq read 239 MB/s, seq write 242 MB/s, random seek + rw 241 MB/s in Passmark o Atto benchmark runs and after a few minutes halts the system, the results are given below o When the IO is saturated (or something else) the VM halts and takes hours to complete tasks, like the atto benchmark • KVM with signed drivers from Fedora: o I'm getting about seq read 147 MB/s, seq write 187 MB/s, random seek + rw 189 MB/s in Passmark o Atto benchmark runs and provides so so results (so so but better than xen with PV) o system is always usable I found out that I need to modify the gnttab_max_frames parameter to the xen hypervisor at boottime. A lot of links and reading starts here: https://wiki.gentoo.org/wiki/Xen#Xen..._kernel_4.3.2B I did some testing and I am very confused right now. The gnttab_max_frames is by default 32 (increased to 64 in some xen version), and to solve the issues i would need to set it higher to 256. The results I get seem to show something totally different. New test rig: • ubuntu 18.04 LTS with everything from normal repositories, updated, xen 4.9 • i5-8500, 16GB ram, Samsung 850 evo SSD, • windows 2016 installed on a LVM volume, • xen pv drivers 8.2.0 installed on Windows, • logged to the VM using VNC from a laptop in the same local network. I've tested this at a number of values of gnttab_max_frames from 4 to 4096. Passmark provides consistent results at around 510 MB/s READ, 305 MB/s WRITE, 330 MB/s Random ReadWrite, regardless of the setting of gnttab_max_frames. I guess that it does not saturate the grant tables mechanism of XEN that much. But with ATTO, the situation is sooo different. • gnttab_max_frames = 4 o Windows is very snappy, responsive, even under heavy load from ATTO. o Atto shows good results, with some signs of saturation with packets bigger than 512KB. • gnttab_max_frames = 10 o Windows is very snappy but stops being responsive, even under heavy load from ATTO. o Atto shows mediocre results, saturation is very high with packets bigger than 512KB. • gnttab_max_frames = 64 o You can feel that the windows windows open a little bit slower, system feels dead with high load from ATTO. o Atto shows bad results, saturation kills the system with packets bigger than 512KB. System is getting back OK after ATTO finishes. • gnttab_max_frames = 256 o Even worse than 64, the results show similarity to 64, but the system just did not react. I fed up with waiting. • gnttab_max_frames = 4096 o Windows did not boot. I just got fed up with waiting. Atto screenshots are here, each has a caption saying at which gnttab_max_frames setting is was taken. A comment, if you do ATTO benchmark on a normal drive (or old Xen with GPLPV drivers on windows 2008) you get stable results from 64KB up, bars don't get shorter. Shorter bars at larger packets mean that the IO queue gets saturated or there is some IO usage going on elsewhere - I made sure it does not happen in these tests. Screenshots: https://imgur.com/gallery/aUPSsCo To sum up: • Windows behaves better when I reduce gnttab_max_frames. Quite the opposite to what the internet is saying. • What did I do wrong? ----- As discussed on IRC, it would be useful if you tried the 8.2.2 drivers and also highly useful if you could capture logging from QEMU. One other thing that occurs to me is that XENVBD implements indirect granting but this is relatively under tested because the only backend that implements it is blkback, and we don't use that in XenServer. Whilst is may be slower overall, you might get more stability using QEMU qdisk. (We have a couple of performance fixes for this in the pipeline in Citrix as we are now starting to use it as our default backend, but it should be reasonable as-is). Paul -- Pozdrawiam Jakub Kulesza _______________________________________________ win-pv-devel mailing list win-pv-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/win-pv-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |