From 5d0523e2f1416d7d677c48eed5c2dfb60d269275 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Fri, 19 Aug 2022 19:19:33 +0200 Subject: [PATCH] Add note that larger packs increase disk wear --- doc/047_tuning_backup_parameters.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/047_tuning_backup_parameters.rst b/doc/047_tuning_backup_parameters.rst index 38814d1af..a972e9ebd 100644 --- a/doc/047_tuning_backup_parameters.rst +++ b/doc/047_tuning_backup_parameters.rst @@ -72,3 +72,9 @@ of backend connections plus one. For example, if the backend uses 5 connections for most backends), with a target pack size of 64 MiB, you'll need a *minimum* of 384 MiB of space in the temp directory. A bit of tuning may be required to strike a balance between resource usage at the backup client and the number of pack files in the repository. + +Note that larger pack files increase the chance that the temporary pack files are written +to disk. An operating system usually caches file write operations in memory and writes +them to disk after a short delay. As larger pack files take longer to upload, this +increases the chance of these files being written to disk. This can increase disk wear +for SSDs.