[pbs-devel] [PATCH proxmox-backup 2/2] garbage collection: track chunk cache stats and show in task log

Christian Ebner c.ebner at proxmox.com
Fri May 16 12:29:27 CEST 2025


On 5/16/25 11:54, Lukas Wagner wrote:
> 
> 
> On  2025-05-16 10:58, Christian Ebner wrote:
>> Count the chunk cache hits and misses and display the resulting
>> values in the garbage collection task log summary.
>>
>> This allows to investigate possible issues and tune cache capacity,
>> also by being able to compare to other values in the summary such
>> as the on disk chunk count.
>>
>> Exemplary output
>> ```
>> 2025-05-16T10:41:29+02:00: Chunk cache: hits 38118, misses 10017
> 
> I think it would be nice to also print the hit ratio :) For the
> example here it should be 79%, if my math is correct.

Sure, can add that as well as it is indeed more straight forward and 
intuitive!




More information about the pbs-devel mailing list