On Mon, Mar 17, 2014 at 10:16:35PM +0000, Ian wrote:
> It's on this PC rather than on a server, but apt-get has become
> incredibly slow recently. Reading the package lists is taking many
> minutes - using time to see how long 'sudo apt-get update' takes reckons
> it's
>
> Fetched 115 kB in 6s (17.7 kB/s)
> Reading package lists... Done
>
> real 28m27.642s
> user 0m19.944s
> sys 0m7.828s
>
> The root partition with /var/lib/dpkg is on an SSD drive, which has
> 80+GiB free space and is regularly 'trimmed'. There's nothing using an
> enormous amount of CPU or disk access. Even large applications are quick
> to start.
>
> Any ideas as to why this is happening?
Your network seems slow, but says it took 6s... so there is still a gap to fill
for 30s. I don't know if maybe those 6s don't take into account some network
delay, like reverse DNS queries or something like that. I would make sure the
mirror is a "decent" one (i.e. maybe change it just to test to some really
used mirror) and the DNS servers you are using are working fine (can try with
opendns or google DNS servers to be sure).
If that is not it, maybe run it with perf and also see what "vmstat 1" and
top/perf top look while it's running ?
Hope it helps,
Rodrigo