On Mon, Jun 14, 2010 at 07:05:35AM +0800, Michael wrote:
> Package: apt-cacher
> Version: 1.6.11
> Severity: normal

Thanks for this
 
> Hi, it appears apt-cacher-cleanup consumes large/possibly infinite CPU when
> the cache has come close to filling all available diskspace:
> 
>    r...@ying:~# ps aux|grep [c]leanup
>    www-data  5741 94.6  2.9  11664  7604 ?        Rs   Jun13 1575:53 
> /usr/bin/perl /usr/share/apt-cacher/apt-cacher-cleanup.pl -p
> 
> There have been occasions when it has run for a large fraction of a week
> before I noticed it. And of course, because it's running for more than 24
> hours, multiple cleanups end up running simultaneously. :)

It might be worth creating a lock so only a single instance can run, but
I am not sure that will address your root issue.

> While the machine is not exactly fast, under normal circumstances cleanup
> should take "only" 3 or 4 hours. :P

What spec is this? I have a k6 200 that takes only about 20 minutes!

How large is the cache? How much free space?

We need to find out if it is just taking more than 24 hours and then the
second instance compounds the issue.

Can you change /etc/cron.daily/apt-cacher and add '-v' to the script
invocation. You will get an email with basic information about what it
is doing.

Is there anything in the logs
(/var/log/apt-cacher/{db|access|error}.log?

Mark



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to