2020-03-16 14:17:16 -04:00
|
|
|
Resource Usage
|
|
|
|
|
~~~~~~~~~~~~~~
|
|
|
|
|
|
2025-08-23 18:21:57 -04:00
|
|
|
Borg might use significant resources depending on the size of the data set it is dealing with.
|
2020-03-16 14:17:16 -04:00
|
|
|
|
2025-08-23 18:21:57 -04:00
|
|
|
If you use Borg in a client/server way (with an SSH repository),
|
|
|
|
|
the resource usage occurs partly on the client and partly on the
|
2020-03-16 14:17:16 -04:00
|
|
|
server.
|
|
|
|
|
|
2025-08-23 18:21:57 -04:00
|
|
|
If you use Borg as a single process (with a filesystem repository),
|
|
|
|
|
all resource usage occurs in that one process, so add up client and
|
2020-03-16 14:17:16 -04:00
|
|
|
server to get the approximate resource usage.
|
|
|
|
|
|
|
|
|
|
CPU client:
|
2025-08-23 18:21:57 -04:00
|
|
|
- **borg create:** chunking, hashing, compression, encryption (high CPU usage)
|
2026-06-16 08:46:57 -04:00
|
|
|
- **chunks index rebuild:** quite heavy on CPU, doing lots of hash table operations
|
2025-08-23 18:21:57 -04:00
|
|
|
- **borg extract:** decryption, decompression (medium to high CPU usage)
|
2026-06-16 08:46:57 -04:00
|
|
|
- **borg prune/borg delete archive:** quick, low CPU usage
|
2020-03-16 14:17:16 -04:00
|
|
|
- **borg delete repo:** done on the server
|
2026-06-16 08:46:57 -04:00
|
|
|
- **borg compact:** medium CPU usage
|
|
|
|
|
- **borg check:** medium CPU usage, but depends on options given
|
2020-03-16 14:17:16 -04:00
|
|
|
|
2025-08-23 18:21:57 -04:00
|
|
|
It will not use more than 100% of one CPU core as the code is currently single-threaded.
|
2020-03-16 14:17:16 -04:00
|
|
|
Especially higher zlib and lzma compression levels use significant amounts
|
2025-08-23 18:21:57 -04:00
|
|
|
of CPU cycles. Crypto might be cheap on the CPU (if hardware-accelerated) or
|
2020-03-16 14:17:16 -04:00
|
|
|
expensive (if not).
|
|
|
|
|
|
|
|
|
|
CPU server:
|
2025-08-23 18:21:57 -04:00
|
|
|
It usually does not need much CPU; it just deals with the key/value store
|
2026-06-16 08:46:57 -04:00
|
|
|
(repository).
|
2020-03-16 14:17:16 -04:00
|
|
|
|
|
|
|
|
borg check: the repository check computes the checksums of all chunks
|
|
|
|
|
(medium CPU usage)
|
2026-06-16 08:46:57 -04:00
|
|
|
borg compact: low to medium CPU usage
|
2020-03-16 14:17:16 -04:00
|
|
|
|
|
|
|
|
CPU (only for client/server operation):
|
2025-08-23 18:21:57 -04:00
|
|
|
When using Borg in a client/server way with an ssh-type repository, the SSH
|
2020-03-16 14:17:16 -04:00
|
|
|
processes used for the transport layer will need some CPU on the client and
|
2025-09-04 14:29:43 -04:00
|
|
|
on the server due to the crypto they are doing — especially if you are pumping
|
2025-08-23 18:21:57 -04:00
|
|
|
large amounts of data.
|
2020-03-16 14:17:16 -04:00
|
|
|
|
|
|
|
|
Memory (RAM) client:
|
|
|
|
|
The chunks index and the files index are read into memory for performance
|
2025-08-23 18:21:57 -04:00
|
|
|
reasons. Might need large amounts of memory (see below).
|
2026-06-16 08:46:57 -04:00
|
|
|
Compression, especially with high compression levels, might need substantial
|
2020-03-16 14:17:16 -04:00
|
|
|
amounts of memory.
|
|
|
|
|
|
|
|
|
|
Memory (RAM) server:
|
2026-06-16 08:46:57 -04:00
|
|
|
Usually rather low memory needs, much less than the client.
|
2020-03-16 14:17:16 -04:00
|
|
|
|
|
|
|
|
Chunks index (client only):
|
2025-08-23 18:21:57 -04:00
|
|
|
Proportional to the number of data chunks in your repo. Lots of chunks
|
2020-03-16 14:17:16 -04:00
|
|
|
in your repo imply a big chunks index.
|
2025-08-23 18:21:57 -04:00
|
|
|
It is possible to tweak the chunker parameters (see create options).
|
2020-03-16 14:17:16 -04:00
|
|
|
|
|
|
|
|
Files index (client only):
|
2025-08-23 18:21:57 -04:00
|
|
|
Proportional to the number of files in your last backups. Can be switched
|
|
|
|
|
off (see create options), but the next backup might be much slower if you do.
|
2020-03-16 14:17:16 -04:00
|
|
|
The speed benefit of using the files cache is proportional to file size.
|
|
|
|
|
|
|
|
|
|
Temporary files (client):
|
2026-06-16 08:46:57 -04:00
|
|
|
TODO
|
2020-03-16 14:17:16 -04:00
|
|
|
|
|
|
|
|
Temporary files (server):
|
2026-06-16 08:46:57 -04:00
|
|
|
TODO
|
2020-03-16 14:17:16 -04:00
|
|
|
|
|
|
|
|
Cache files (client only):
|
2026-06-16 08:46:57 -04:00
|
|
|
Contains the files cache, which might become quite large depending on the
|
|
|
|
|
amount and size of files.
|
2020-03-16 14:17:16 -04:00
|
|
|
|
|
|
|
|
Network (only for client/server operation):
|
|
|
|
|
If your repository is remote, all deduplicated (and optionally compressed/
|
2026-06-16 08:46:57 -04:00
|
|
|
encrypted) data has to go over the network connection.
|