Rodrigo Campos said:
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).
The getting of the info from the various repositories scrolls off the
screen too fast to read. Then it gets stuck at the 'reading package
lists...' phase which, AIUI, is just reading local data. Until recently,
that's gone from 0% to Done faster than I can count to ten, never mind a
hundred.
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 ?
I don't have perf installed - this a sample top at the 'reading package
lists..' phase while getting it:
top - 23:31:42 up 3 days, 10:07, 15 users, load average: 1.13, 0.87, 1.13
Tasks: 254 total, 2 running, 252 sleeping, 0 stopped, 0 zombie
%Cpu(s): 7.7 us, 1.4 sy, 0.0 ni, 53.3 id, 37.6 wa, 0.0 hi, 0.0 si,
0.0 st
KiB Mem: 16022464 total, 6679952 used, 9342512 free, 466836 buffers
KiB Swap: 16600060 total, 11056 used, 16589004 free, 1305176 cached
PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
20 0 2470m 1.7g 53m S 24.5 11.2 168:01.45 firefox
20 0 238m 66m 18m R 2.7 0.4 12:54.50 plugin-containe
20 0 218m 52m 27m S 2.0 0.3 13:58.07 chromium-browse
20 0 517m 273m 213m S 1.7 1.8 164:34.82 Xorg
20 0 291m 51m 28m S 1.7 0.3 60:55.20 chromium-browse
20 0 32224 3636 2928 D 1.7 0.0 0:00.43 apt-get
20 0 947m 425m 18m S 1.3 2.7 84:25.01 java
20 0 266m 22m 13m S 1.0 0.1 15:40.20 mate-terminal
20 0 0 0 0 S 1.0 0.0 0:01.45 kworker/u8:1
20 0 0 0 0 S 1.0 0.0 0:00.46 kworker/u8:3
20 0 5388 1504 1064 S 0.7 0.0 7:14.54 top
etc...
(with PIDs and user edited out so it fits better!)
The wa figure (IO-wait : time waiting for I/O completion) is noticeably
high. But what's so special about reading these files?
Ian