Guest Ubuntu runs much faster on MacBook than MacBook Pro
Posted: 22. May 2018, 07:16
Recently I tried 2 Mac Host with exactly the same guest ubuntu.
Host 1: MacBook 2017 (12 inch), 1.4GHz Dual-Core Intel Core i7 / 16GB 1866MHz LPDDR3 / 512GB PCIe-based SSD
Host 2: MacBook Pro 2017 (13 inch), 2.5GHz Dual-core Intel Core i7 / 16GB 2133MHz LPDDR3 SDRAM / 1TB PCIe-based SSD
Guest: Ubuntu 16.04, Base Memory 12288MB / Chipset: PIIX3; Enable I/O APIC; Enable HW Clock UTC Time; 2 CPUs; Execution Cap: 100%; Enable PAE/NX; Paravirtualization Interface: KVM; Enable Nested Paging: Video Memory: 128MB; Disable 3D/2D Acceleration; Storage Contoller: SATA; Enable Host I/O Cache.
My expectation: MacBook Pro is supposed to run the guest OS faster, smoother than MacBook. However, the result is opposite - the guest Ubuntu is running MUCH FASTER on MacBook than MacBook Pro.
The way I test the performance is running ROS application by playing a rosbag and launch rviz to visualize the data (if not familiar with ROS, just know the applications is very heavy to both CPU and memory load).
To be more specific, while running the applications, the guest OS on MacBook can still respond to desktop UI event (mouse, key...); regarding MacBook Pro, the guest OS just hangs there without any response; if lucky, sometimes it responds to a mouse click event after 30 seconds or even 1 min...
I also monitored the CPU and memory loading during the tests, and the results might explain why - CPU loading on MacBook is usually higher than 230%, while it remains lower than 200% and mostly < 150% on MacBook Pro; I don't remember the memory usage for now, but I'm sure the VirtualBox application always consuming more memory on MacBook than MacBook Pro.
My hypothesis is that the MacBook launch it's Turbo Boost and makes it always ON while I doing the tests; on the other hand, with some unknown reason, Turbo Boost is OFF when I run the same tests on MacBook Pro.
Is there any way to force my MacBook Pro to turn on Turbo Boost for VirtualBox? Or maybe my guess is wrong?
Please give me some hints. Thanks.
Host 1: MacBook 2017 (12 inch), 1.4GHz Dual-Core Intel Core i7 / 16GB 1866MHz LPDDR3 / 512GB PCIe-based SSD
Host 2: MacBook Pro 2017 (13 inch), 2.5GHz Dual-core Intel Core i7 / 16GB 2133MHz LPDDR3 SDRAM / 1TB PCIe-based SSD
Guest: Ubuntu 16.04, Base Memory 12288MB / Chipset: PIIX3; Enable I/O APIC; Enable HW Clock UTC Time; 2 CPUs; Execution Cap: 100%; Enable PAE/NX; Paravirtualization Interface: KVM; Enable Nested Paging: Video Memory: 128MB; Disable 3D/2D Acceleration; Storage Contoller: SATA; Enable Host I/O Cache.
My expectation: MacBook Pro is supposed to run the guest OS faster, smoother than MacBook. However, the result is opposite - the guest Ubuntu is running MUCH FASTER on MacBook than MacBook Pro.
The way I test the performance is running ROS application by playing a rosbag and launch rviz to visualize the data (if not familiar with ROS, just know the applications is very heavy to both CPU and memory load).
To be more specific, while running the applications, the guest OS on MacBook can still respond to desktop UI event (mouse, key...); regarding MacBook Pro, the guest OS just hangs there without any response; if lucky, sometimes it responds to a mouse click event after 30 seconds or even 1 min...
I also monitored the CPU and memory loading during the tests, and the results might explain why - CPU loading on MacBook is usually higher than 230%, while it remains lower than 200% and mostly < 150% on MacBook Pro; I don't remember the memory usage for now, but I'm sure the VirtualBox application always consuming more memory on MacBook than MacBook Pro.
My hypothesis is that the MacBook launch it's Turbo Boost and makes it always ON while I doing the tests; on the other hand, with some unknown reason, Turbo Boost is OFF when I run the same tests on MacBook Pro.
Is there any way to force my MacBook Pro to turn on Turbo Boost for VirtualBox? Or maybe my guess is wrong?
Please give me some hints. Thanks.