[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#576649: [apt]: Very slow apt-get update



Hi David,

On Tue, Apr 06, 2010 at 07:20:51PM +0200, David Kalnischkies wrote:
> 2010/4/6 Jens Seidel <jensseidel@users.sf.net>:
> > Calling apt-get update on my OpenMoko phone (armel, 128MB RAM, sd card)
> > takes forever:
 
> Into the blue: Do you have a swap file?

Yep, I have two swap files in Debian: 256M + 128M.

Mhm, now I think I remember I performed the slow updates in the chroot once
I booted SHR-U where I do not use a swap (as the large sd card is not always
inserted). But does it matter? If the free RAM is not sufficient the kernel
would start killing processes which I didn't observed.

> Which software powers your brick?

Current Debian unstable + experimental +  http://pkg-fso.alioth.debian.org.
Kernel 2.6.29-20100118.gita15608f2.

> Is your mircosd card okay?

I think so, the filesystem is OK (fsck.ext3 -f /dev/mmcblk0p2 succeeds).
 
> My neo hardly needs 20 minutes for an "update" and i have pdiffs
> enabled… e.g. in my recent run in which ~ 15 pdiffs were applied:
>  Es wurden 2.325kB in 6Min 59s geholt (5.545B/s)

As far as I remember using pdiffs is not recommended on the freerunner. I
read this in the openmoko wiki and experienced the same in the past (months
ago).

# cat /etc/apt/apt.conf
Acquire::PDiffs "false";

Now I updated from Debian again (with enabled swap) with much better results:

Es wurden 12,3MB in 2Min 25s geholt (84,6kB/s)

Will keep en eye on it and test later without swap ...

Jens



Reply to: