Project

General

Profile

Bug #16020

acngtool shrink is insufficient to maintain acng cache size

Added by anonym 5 months ago. Updated 4 months ago.

Status:
Confirmed
Priority:
Normal
Assignee:
Category:
Build system
Target version:
-
Start date:
10/02/2018
Due date:
% Done:

0%

QA Check:
Feature Branch:
Type of work:
Code
Blueprint:
Starter:
Affected tool:

Description

In build-tails we call acngtool shrink 10G before each build to prevent the cache from running out of disk space. From what I can tell it doesn't clean APT indices correctly, e.g. in my /var/cache/apt-cacher-ng/time-based.snapshots.deb.tails.boum.org/debian I have snapshots dating back to January 2017. Each such snapshot takes 30-120 MB (especially the old ones with multiarch are large) so it adds up, for me to 8 GBs. :S

Either we need to improve acngtool (for everyone's benefit) or we manually find snapshots older than six months (or whatever) and purge them from acng's cache.

History

#1 Updated by bertagaz 5 months ago

I've noticed that too locally, acng is quite sloppy at shrinking to the maximum amount it is given. It always do to a somewhat higher value. I "solved" that by just lowering the number to get closer to my needs.

#2 Updated by anonym 5 months ago

That didn't work for me -- no matter the size argument I gave nothing was removed. It is as if a too high ratio of non-debs (APT indices, TBB tarballs) makes its calculations flip out and nothing is freed.

#3 Updated by anonym 4 months ago

intri suggested that acng's daily cronjob should be able to clean it up, but that it takes a long time: "(it fetches all dists again to identify obsolete packages) so I doubt we can do that at every build".

#4 Updated by segfault 4 months ago

I had the same issue (see #16032)

#5 Updated by anonym 4 months ago

anonym wrote:

intri suggested that acng's daily cronjob should be able to clean it up, but that it takes a long time: "(it fetches all dists again to identify obsolete packages) so I doubt we can do that at every build".

Or maybe not:

(17:25:53) intrigeri: ah ah on lizard, we do
"rm -rf /var/cache/apt-cacher-ng/*.tails.boum.org" 
weekly, so no, the cronjob is not what saves us there.

Also available in: Atom PDF