Skip to content

compact: use size better#9863

Merged
ThomasWaldmann merged 2 commits into
borgbackup:masterfrom
ThomasWaldmann:compact-use-size-better-master
Jul 5, 2026
Merged

compact: use size better#9863
ThomasWaldmann merged 2 commits into
borgbackup:masterfrom
ThomasWaldmann:compact-use-size-better-master

Conversation

@ThomasWaldmann

Copy link
Copy Markdown
Member

Fixes #9856.

@codecov

codecov Bot commented Jul 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.09%. Comparing base (88e186e) to head (230f6ef).
⚠️ Report is 1 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9863      +/-   ##
==========================================
- Coverage   85.10%   85.09%   -0.02%     
==========================================
  Files          93       93              
  Lines       15444    15450       +6     
  Branches     2335     2335              
==========================================
+ Hits        13144    13147       +3     
- Misses       1603     1604       +1     
- Partials      697      699       +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@ThomasWaldmann ThomasWaldmann force-pushed the compact-use-size-better-master branch from d055233 to 230f6ef Compare July 5, 2026 19:11
@ThomasWaldmann

Copy link
Copy Markdown
Member Author

WITH --stats

Starting compaction / garbage collection...
Getting object IDs from the cached chunks index...
Computing object IDs used by archives...
Analyzing archive ::archive1 2026-07-05 20:29:59.761294+02:00 ab04f194bc06b80a730c0dad2cd1d9db45381ce435164bbc1288f0eadad6930a (1/1)
Cleaning archives directory from soft-deleted archives...
Deleting 0 unused objects...
Overall statistics, considering all 1 archives in this repository:
Source data size was 10 MB in 3 files.
Deduplicated size is 10 MB.
Deduplication factor is 1.00.
Repository size is 5 MB in 8 objects.
Compression factor is 0.50.
Compaction saved 0 B.
Cleaning up files cache...
Removed 0 unused files cache files.
Finished compaction / garbage collection...

WITHOUT --stats

Starting compaction / garbage collection...
Getting object IDs from the cached chunks index...
Computing object IDs used by archives...
Analyzing archive ::archive1 2026-07-05 20:30:01.743591+02:00 dcd8a5bc80e3a227a5601ecb8457740caacfb774b342fb98e32d153b3175e921 (1/1)
Cleaning archives directory from soft-deleted archives...
Deleting 0 unused objects...
Cleaning up files cache...
Removed 0 unused files cache files.
Finished compaction / garbage collection...

@ThomasWaldmann ThomasWaldmann merged commit 87bd65c into borgbackup:master Jul 5, 2026
19 checks passed
@ThomasWaldmann ThomasWaldmann deleted the compact-use-size-better-master branch July 5, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

borg2: compact: can make better use of chunk size

1 participant