aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/cache/cachedisklayer.h
Commit message (Collapse)AuthorAgeFilesLines
* cache reference tracking (#455)Dan Engelbrecht2023-10-101-11/+32
| | | | | - Feature: Add caching of referenced CId content for structured cache records, this avoid disk thrashing when gathering references for GC - disabled by default, enable with `--cache-reference-cache-enabled` - Improvement: Faster collection of referenced CId content in project store
* Fix curruption of disk cache bucket index on GC (#448)Dan Engelbrecht2023-10-051-1/+3
| | | | | | | | | * make sure we hold the index lock when reading payload data in reclaim space * don't use index snapshot when updating index in reclaim space * check that things have not moved under our feet * don't touch m_Payloads without a lock * start write block index on the highest block index * we don't need to bump writeblockindex when stopping write to a block, we will bump appropriately when we start a new block * changelog
* faster accesstime save restore (#439)Dan Engelbrecht2023-10-031-10/+12
| | | | | | | | | | - Improvement: Reduce time a cache bucket is locked for write when flushing/garbage collecting - Change format for faster read/write and reduced size on disk - Don't lock index while writing manifest to disk - Skip garbage collect if we are currently in a Flush operation - BlockStore::Flush no longer terminates currently writing block - Garbage collect references to currently writing block but keep the block as new data may be added - Fix BlockStore::Prune used disk space calculation - Don't materialize data in filecas when we just need the size
* adding more stats (#429)Dan Engelbrecht2023-09-281-2/+32
| | | | | - Feature: Add detailed stats on requests and data sizes on a per-bucket level, use parameter `cachestorestats=true` on the `/stats/z$` endpoint to enable - Feature: Add detailed stats on requests and data sizes on cidstore, use parameter `cidstorestats=true` on the `/stats/z$` endpoint to enable - Feature: Dashboard now accepts parameters in the URL which is passed on to the `/stats/z$` endpoint
* VFS implementation for local storage service (#396)Stefan Boberg2023-09-201-0/+3
| | | currently, only Windows (using Projected File System) is supported
* Restructured structured cache store (#314)Stefan Boberg2023-05-171-0/+222
This change separates out the disk and memory storage strategies into separate cpp/h files to improve maintainability.