Difference between revisions of "Resolving slow build / high CPU usage issues"

From SEGGER Wiki
Jump to: navigation, search
(Created page with "When building large projects you may experience a slowdown in build time and high CPU load. This is normal as the default for Embedded Studio is to launch parallel builds wher...")
(No difference)

Revision as of 10:58, 14 June 2019

When building large projects you may experience a slowdown in build time and high CPU load. This is normal as the default for Embedded Studio is to launch parallel builds where possible.

However, Windows antimalware and antivirus checking runs in the background and checks each file that is written. During a build, many, many files are written by the compilation process (assembly language intermediate files and object files, for instance), and the Windows antimalware service checks each one of them. If you open the Task Manager what you see is that up to 50% of available CPU cycles are taken by the antimalware checks:

Task Manager High CPU Use.png

Excluding volatile work folders from antimalware checks

It is possible to exclude your work directories from antimalware checks and recover the CPU cycles that the antimalware check consumes.

On Windows 10

  • Run the Windows Security app using the Search box in the task bar.
  • Click Virus & threat protection.
  • Under Virus & threat protection settings click Manage settings.
  • Under Exclusions click Add or remove exclusions<b>.
  • Click <b>Add an exclusion.
  • Select Folder<b> and add the root folder of your working area.

On Windows 7

  • Click the <b>Start button and run Microsoft Security Essentials<b>.
  • Select the <b>Settings tab.
  • Click Excluded files and locations<.b>.
  • Click <b>Browse and select the root folder of your working area.
  • Click Add.
  • Click Save changes.
  • Allow changes to be saved, if prompted.