[pbs-devel] [PATCH v3 proxmox-backup 51/58] pxar: create: show chunk injection stats debug output

Christian Ebner c.ebner at proxmox.com
Thu Mar 28 13:37:00 CET 2024


Signed-off-by: Christian Ebner <c.ebner at proxmox.com>
---
changes since version 2:
- not present in previous version

 pbs-client/src/pxar/create.rs | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/pbs-client/src/pxar/create.rs b/pbs-client/src/pxar/create.rs
index f103127c4..461509c39 100644
--- a/pbs-client/src/pxar/create.rs
+++ b/pbs-client/src/pxar/create.rs
@@ -407,6 +407,14 @@ where
     encoder.finish().await?;
     encoder.close().await?;
 
+    log::info!(
+        "Total injected: {} ({} chunks), total reused payload: {}, padding: {} ({} partial chunks)",
+        HumanByte::from(archiver.total_injected_size),
+        archiver.total_injected_count,
+        HumanByte::from(archiver.total_reused_payload_size),
+        HumanByte::from(archiver.total_injected_size - archiver.total_reused_payload_size),
+        archiver.partial_chunks_count,
+    );
     Ok(())
 }
 
-- 
2.39.2





More information about the pbs-devel mailing list