crazygambit Posted May 28, 2018 Share Posted May 28, 2018 So I've been testing a Windows 10 VM and no matter what I do, the more cores I assign to it, the slower it performs and it's pretty linear. I have an i5-8400 with 16GB of RAM. It has 6 cores, no hyperthreading. I'm assigning 8GB to the VM and it's install on a 1TB SSD drive. I'm testing with an Excel Macro (which is actually what I need the VM for) and here are my results (all dockers are turned off and I have no other VMs): Without using cpu isolation for unRAID I was getting 3:30 with 1 core and over 4:30 with 5 (always leaving core 0 unassigned to the VM). 2 cores was around 4 minutes. After isolating cores 0 and 1, giving the VM 1 core gets me 3:19 and with 4 I'm at a 4:02 Using the <emulatorpin cpuset='0-1'/> command on the VM actually helped a little when using 4 cores, dropping the time to 3:59, but the time was exactly the same on 1 core. Just for clarity, there's no variability on the macro, it always performs exactly the same functions and takes exactly the same time every time unless something else is hogging resources. I wonder if anyone else is seeing the same kind of performance hit by assigning more cores. I'm aware Excel 2016 doesn't have amazing multi core performance, but it shouldn't be slower! Maybe a lot more people have this issue and haven't even noticed it as I'm not sure it would show up in gaming and it's not noticeable otherwise. However it's a pretty big performance hit. Unfortunately I've never had the chance to do a native Windows 10 install on that hardware, but for reference on my i7-7500U notebook with a 5196 passmark (the i5-8400 has 11791) I'm getting 4:30 on the same macro. So something is definitely wrong, any ideas? Quote Link to comment
bonienl Posted May 28, 2018 Share Posted May 28, 2018 Try unRAID 6.5.3-rc1 it should address this. Quote Link to comment
crazygambit Posted May 28, 2018 Author Share Posted May 28, 2018 Will do, thanks. That post talked about VM startup being affected, but made no mention of performance being affected once the VM had already started. Maybe they just hadn't noticed. Like I said without actually timing the macro I wouldn't have noticed either and since I only assign 4 cores I didn't notice any difference in startup time. Will do the update and post in that thread with my results. Quote Link to comment
crazygambit Posted May 28, 2018 Author Share Posted May 28, 2018 Updated to 6.5.3-rc1 and saw no change. The macro still takes 4:02 with 4 cores. Quote Link to comment
Warrentheo Posted May 28, 2018 Share Posted May 28, 2018 post XML and diagnostics? Quote Link to comment
eschultz Posted May 28, 2018 Share Posted May 28, 2018 It could be the particular excel macro is not utilizing multiple threads: https://answers.microsoft.com/en-us/msoffice/forum/msoffice_excel-mso_win10-mso_2016/how-to-utilize-multiple-cores-in-excel-2016/76fef7bb-750d-42f7-95ca-91d2694479c1 Quote Link to comment
crazygambit Posted May 28, 2018 Author Share Posted May 28, 2018 37 minutes ago, eschultz said: It could be the particular excel macro is not utilizing multiple threads: https://answers.microsoft.com/en-us/msoffice/forum/msoffice_excel-mso_win10-mso_2016/how-to-utilize-multiple-cores-in-excel-2016/76fef7bb-750d-42f7-95ca-91d2694479c1 You would think that having more cores wouldn't actually make Excel significantly slower, but after disabling multi core calculation on another computer, the macro is actually computing faster as well. And it's not a little bit faster, but significantly so. This is true for any of the macros we run at work. So thanks to unraid I noticed this and I've kinda revolutionized the office btw. So disregard this thread, I guess I'll turn my ire to Microsoft and their very crappy multi core algorithms. Thanks again. Quote Link to comment
Warrentheo Posted May 28, 2018 Share Posted May 28, 2018 also check that you have the 64-bit versions of office installed since Microsoft still installs the 32 bit versions by default... There are some minor compatibility issues to check on first, and you have to totally uninstall and reinstall to switch it, but otherwise it is significantly faster... It is the only thing I install now... But also make sure that your XML is pairing up HyperThreaded cores correctly... You could be having both issues... Quote Link to comment
crazygambit Posted May 28, 2018 Author Share Posted May 28, 2018 45 minutes ago, Warrentheo said: also check that you have the 64-bit versions of office installed since Microsoft still installs the 32 bit versions by default... There are some minor compatibility issues to check on first, and you have to totally uninstall and reinstall to switch it, but otherwise it is significantly faster... It is the only thing I install now... But also make sure that your XML is pairing up HyperThreaded cores correctly... You could be having both issues... Thanks, I will look into the Office version. My CPU doesn't support hyperthreading so that's not a concern, it just has 6 physical cores. I will post my XML when I get home, but I don't anticipate any problems there. Quote Link to comment
Warrentheo Posted May 28, 2018 Share Posted May 28, 2018 1 hour ago, crazygambit said: Thanks, I will look into the Office version. My CPU doesn't support hyperthreading so that's not a concern, it just has 6 physical cores. I will post my XML when I get home, but I don't anticipate any problems there. https://support.office.com/en-us/article/choose-between-the-64-bit-or-32-bit-version-of-office-2dee7807-8f95-4d0c-b5fe-6c6f49b8d261 Quote Link to comment
crazygambit Posted May 29, 2018 Author Share Posted May 29, 2018 (edited) 4 hours ago, Warrentheo said: https://support.office.com/en-us/article/choose-between-the-64-bit-or-32-bit-version-of-office-2dee7807-8f95-4d0c-b5fe-6c6f49b8d261 Indeed I had the 32 bits version installed, however assigning 4 cores to the VM and switching off multi core calculation in Excel resulted in a massive speed up and the macro is now running at 2:48, so I'm confident unraid is actually running right. It's bizarre to me how inefficient Excel is at managing multiple cores, like if you suck so much at it, don't leave it enabled as default. Edit: My bad, it was actually the 64 bit version. I had the 32 bit in the other computer I was using for testing. So even in the 64 bit version allowing Excel to use multiple cores just makes calculation slower. Really mindblowing IMO. Edited May 29, 2018 by crazygambit Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.