Page 1 of 1

MacBook Pro - High CPU when webcam is connected

PostPosted: 8. Nov 2018, 12:13
by vikas027
Hey All,

I am trying to use a webcam in a Win 7 Virtualbox VM. The VM runs perfectly fine but as soon as I turn on the webcam, CPU usage bumped from 13% to 250% :| . I have tried both integrated and an external Logitech web cameras.

These are the software and hardware versions
- 13" MacBook Pro 2018 (2.7 GHz i7 16 GB RAM)
- OSX 10.14 (18A391)
- Virtual Box Version 5.2.20 r125813 (Qt5.6.3)
- Windows 7 SP1 (8 GB RAM, 2 vCPU)

Any ideas to how can I reduce CPU usage when connected to Webcam?

Thanks,
Vikas

Re: MacBook Pro - High CPU when webcam is connected

PostPosted: 8. Nov 2018, 12:29
by socratis
vikas027 wrote:Any ideas to how can I reduce CPU usage when connected to Webcam?
Not with that amount of information. For example, there's a key piece missing; the name/version of the software that you're testing the camera in your guest.

BTW, it's not ultra-surprising, video processing does take a lot of CPU...

I would like to see a complete VBox.log, from a complete VM run:
  • Start the VM from cold-boot (not from a paused or saved state) / Observe error / Shutdown the VM (force close it if you have to).
  • With the VM completely shut down (not paused or saved), right-click on the VM in the VirtualBox Manager and select "Show Log".
  • Save only the first "VBox.log", ZIP it and attach it to your response. See the "Upload attachment" tab below the reply form.
I would also like to see the "recipe" of the VM, the ".vbox" file:
  1. Right-click on the VM in the VirtualBox Manager. Select "Show in Finder/Explorer/Whatever".
  2. ZIP the selected ".vbox" file and attach it to your response.

Image

Re: MacBook Pro - High CPU when webcam is connected

PostPosted: 8. Nov 2018, 14:13
by vikas027
Hello Socratis,

Thanks for your response. Please find the attached Virtual Box config and log files.

Re: MacBook Pro - High CPU when webcam is connected

PostPosted: 8. Nov 2018, 15:57
by mpack
socratis wrote:BTW, it's not ultra-surprising, video processing does take a lot of CPU...

As does simulated I/O.