title: Docker hyperkit process CPU usage going crazy. How to keep it under control?
body: <p>Using docker (docker-compose) on macOS. When running the Docker containers and attaching Visual Studio Code (VSCode) to the active app container it can make the hyperkit process go crazy :( the macBook fans have to go at full speed to try to keep the temperature down.</p>
  
  <p>When using VSCode on python files I noticed that actions, such as done by pylint, that result in scanning/parsing your file will increase the hyperkit CPU usage to the max and the macBook fans go on full speed :(. Hyperkit CPU usage goes down again when the action of pylint is finished.</p>
  
  <p>When using VSCode to debug my Django Python app the hyperkit CPU usage goes to the max again. When actively debugging the hyperkit goes wild but it does settle down again afterwards.</p>
  
  <p>I'm currently switching "bind mounts" to "volume mounts" I think I see some improvements but haven't done enough testing to say anything conclusive. I've only switched my source code to using "volume mount" instead of "bind mount" and will do the same for my static files and database and see if that results in improvements.</p>
  
  <p>You can check out this <a href="https://stackoverflow.com/questions/34357252/docker-data-volume-vs-mounted-host-directory">stackoverflow post</a> on Docker volumes for some more info on the subject.
  Here is some post that I found regarding this issue:
  <a href="https://code.visualstudio.com/docs/remote/containers?origin_team=TJ8BCJSSG" rel="noreferrer">https://code.visualstudio.com/docs/remote/containers?origin_team=TJ8BCJSSG</a>
  <a href="https://github.com/docker/for-mac/issues/1759" rel="noreferrer">https://github.com/docker/for-mac/issues/1759</a></p>
  
  <p>Any other ideas on how to keep the hyperkit process under control❓</p>
  
  <p>[update 27 March] Docker debug mode was set to TRUE I've changed this to FALSE but I have not seen any significant improvements.</p>
  
  <p>[update 27 March] Using "delegated" option for my source code (app) folder and first impressions are positive. I'm seeing significant performance improvements we'll have to see if it lasts 
  FYI Docker docu on delegated: the container’s view is authoritative (permit delays before updates on the container appear in the host)</p>
  
  <p>[update 27 March] I've also reduced the number of CPU cores Docker desktop can use (settings->advanced). Hopefully this prevents the CPU from getting too hot.</p>