Page 1 of 1

MacBook Pro 15" 2016 runs extremely laggy with Ubuntu Guest

Posted: 23. Oct 2018, 14:59
by lukbuz
I have to work with a Ubuntu Distribution.
I do C++ Programming with Netbeans.
My machine MacBook Pro 15" 2016 Model 16GB Ram i7 256 SSD
I Installed the machine and gave it enough resources ( 8gb Ram 2 Cores 100mb Video)
I do very basic C++ stuff no great projects, just simple highschool exercise.

The Cursor and Mouse is very laggy on the whole system. If I try to type something. Its very slow und it writes some letters multiple times. Or if you hold backspace to erase some letters it erases the whole text block.

Curious observation: If I connect my MacBook Pro to an external monitor (4k Usb-C Screen) its way better, but not that good as it should be with this potent piece of hardware

1. Log = internal Monitor
2. Log = external Monitor

Thank you in advance for your help!

Re: MacBook Pro 15" 2016 runs extremely laggy with Ubuntu Guest

Posted: 23. Oct 2018, 16:53
by socratis
lukbuz wrote:I have to work with a Ubuntu Distribution
00:00:01.196835 File system of '/Users/veithlukas/VirtualBox VMs/PAD-3.0/PAD-3.0-disk001.vmdk' is unknown
Where did you get it from? A custom VM is always a reason for a red flag because we can't tell how it was installed, and what it was installed.
00:00:01.162410 Host RAM: 16384MB (16.0GB) total, 8267MB (8.0GB) available
00:00:01.216049 RamSize  <integer> = 0x0000000200000000 (8 589 934 592, 8 192 MB, 8.0 GB)
00:00:01.216314 VRamSize <integer> = 0x0000000006400000 (104 857 600, 100 MB)
You're pushing your host's RAM to the limit. Lower the RAM for your guest.

BTW, you have 3D acceleration disabled in your guest. Shut down the VM completely and enable it in the Display settings...
00:00:14.028608 VMMDev: Guest Additions information report: Version 5.2.8 r121009 '5.2.8'
You need to update the Guest Additions (GAs) in your guest, they're quite old...

Finally, there's no intrinsic reason for seeing something different in terms of performance. There is one possibility, but I won't know until you enable the 3D acceleration. That possibility is that by attaching the 2nd monitor, you are forcing OSX to use the "discrete" AMD Radeon Pro 450, 455, or 460, instead of the "integrated" Intel HD Graphics 530.

Re: MacBook Pro 15" 2016 runs extremely laggy with Ubuntu Guest

Posted: 23. Oct 2018, 21:43
by lukbuz
I got the image from the it-admin of my university. It is the same image we got when we do our exams.

I lowered the ram of the guest to 4096mb -> I hope this is better ?

I enabled the 3D acceleration

Sadly I don't know what Guest Additions are and how to update them

I attached a new file... But it is the same lag on internal monitor as before the changes

thank you for your help in advance

Re: MacBook Pro 15" 2016 runs extremely laggy with Ubuntu Guest

Posted: 23. Oct 2018, 23:53
by socratis
lukbuz wrote:I got the image from the it-admin of my university. It is the same image we got when we do our exams.
OK, now download the Ubuntu ISO and start a new VM from scratch. Accept the default parameters, except: 2 CPUs, 4 GB of RAM, 128 MB VRAM, 3D display on, IOAPIC on. Install Ubuntu and tell me if it's slow as well...
lukbuz wrote:I lowered the ram of the guest to 4096mb -> I hope this is better ?
Yes. But... I included the analysis and specific references so that you'll learn how to do that. Based on my previous analysis, can you do that? ;)
lukbuz wrote:Sadly I don't know what Guest Additions are and how to update them
Um... You inserted the CD, didn't you get a prompt to install the GAs? If not, run "VBoxLinuxAdditions.run" from an elevated Terminal, from the CD. See also, ch. 4.2.2.1 of the User Manual, parts 2 and 3. If there's a failure, then back to part 1.
lukbuz wrote:But it is the same lag on internal monitor as before the changes
To tell you the truth, I saw zero evidence of a 2nd monitor being attached in the previous logs that you sent. Can you explain that? How you're using the 2nd monitor, and what it's got to do with your whole setup?

The following however:
lukbuz wrote:I enabled the 3D acceleration
enabled me to see the GPU used:
00:00:02.381368 OpenGL Info: Render SPU: GL_RENDERER: AMD Radeon Pro 450 OpenGL Engine
which means that the heavy duty GPU is in use. Good...