Home › Knowledge base › High CPU use during the first backup
High CPU use during the first backup
- Article
- KB-1031
- Category
- Performance
- Applies to
- All platforms
Symptoms
During the first backup of a device, the agent process uses most of one or more processor cores. Users may notice fans running or the computer feeling slower.
Cause
This is expected. During the first backup every file has to be read, chunked, hashed, compressed and encrypted. Later backups process only changed files and use far less.
What you can do
The agent already runs at below-normal priority, so other programs get processor time first. If it is still disruptive:
cbk config set agent.max_cpu_percent 50
limits the agent to roughly half of total processor capacity. The first backup will take correspondingly longer. In a policy this is under Policies › select policy › Performance.
On laptops, consider letting the first backup run overnight on mains power with the lid open.
When it is not expected
If a device that completed its first backup long ago uses high CPU on every run:
- Something is rewriting a large amount of data daily. Look at "files changed" and "bytes scanned" in the job detail. Common causes are virtual disk images, mail client data files, and database files included as ordinary files.
- The local cache is being rebuilt each time. Check that the cache directory is not being cleared by a clean-up tool or excluded from a persistent profile on virtual desktops.
- Antivirus software is scanning every file the agent opens. Exclude the agent process from real-time scanning; see KB-1049.