Re: Installing/updating packages are very slow
Hi,
I already read the FAQ, that's why I am already using the "nodelalloc"
mount option.
I also tried "eatmydata":
> # eatmydata annotate-output apt-get install --reinstall tzdata
> 14:02:27 I: Started apt-get install --reinstall tzdata
> 14:02:27 O: Reading package lists...
> 14:02:27 O: Building dependency tree...
> 14:02:27 O: Reading state information...
> 14:02:27 O: Preconfiguring packages ...
> 14:02:27 O: 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
> 14:02:27 O: Need to get 0 B/191 kB of archives.
> 14:02:27 O: After this operation, 0 B of additional disk space will be used.
> 14:02:27 O: (Reading database ... 87677 files and directories currently installed.)
> 14:02:27 O: Preparing to unpack .../tzdata_2014h-2_all.deb ...
> 14:02:27 O: Unpacking tzdata (2014h-2) over (2014h-2) ...
> 14:04:22 O: Setting up tzdata (2014h-2) ...
> 14:04:22 E:
> 14:04:22 E: Current default time zone: 'Europe/Berlin'
> 14:04:22 E: Local time is now: Thu Oct 23 14:04:22 CEST 2014.
> 14:04:22 E: Universal Time is now: Thu Oct 23 12:04:22 UTC 2014.
> 14:04:22 E: Run 'dpkg-reconfigure tzdata' if you wish to change it.
> 14:04:22 E:
> Scanning processes...
> Scanning candidates...
> Scanning kernel images...
> 14:04:22 E: Running kernel seems to be up-to-date.
> 14:04:22 E: No services need to be restarted.
> 14:04:22 I: Finished with exitcode 0
With eatmydata the same process takes 115sec vs 125sec without. Faster,
but not that fast:
> /tmp/test # # time dpkg-deb --fsys-tarfile /var/cache/apt/archives/tzdata_2014h-2_all.deb | tar -xa
> dpkg-deb --fsys-tarfile /var/cache/apt/archives/tzdata_2014h-2_all.deb 0,01s user 0,00s system 55% cpu 0,018 total
> tar -xa 0,01s user 0,01s system 75% cpu 0,027 total
I am wondering because the dpkg-deb command is the same apt/aptitude
will run. When I run the same command, it only takes 0,027s but when
apt/aptitude it runs it will take ~120s?!
When I check with "ps fauxww" while "Unpacking tzdata" I am seeing
> root 65290 0.0 0.0 53704 6200 pts/1 Ss 13:43 0:00 \_ -zsh
> root 1875 0.0 0.0 17716 3448 pts/1 S+ 14:02 0:00 | \_ /bin/bash /usr/bin/annotate-output apt-get install --reinstall tzdata
> root 1881 0.0 0.0 17716 2460 pts/1 S+ 14:02 0:00 | \_ /bin/bash /usr/bin/annotate-output apt-get install --reinstall tzdata
> root 1882 0.0 0.0 17716 276 pts/1 S+ 14:02 0:00 | \_ /bin/bash /usr/bin/annotate-output apt-get install --reinstall tzdata
> root 1884 2.4 0.2 73988 33652 pts/1 S+ 14:02 0:02 | \_ apt-get install --reinstall tzdata
> root 1927 0.1 0.1 46628 21904 pts/1 D+ 14:02 0:00 | \_ /usr/bin/dpkg --status-fd 34 --unpack --auto-deconfigure /var/cache/apt/archives/tzdata_2014h-2_all.deb
> root 1929 0.0 0.0 30964 3768 pts/1 S+ 14:02 0:00 | \_ /bin/zsh -c (test -x /usr/lib/needrestart/dpkg-status && /usr/lib/needrestart/dpkg-status || cat > /dev/null)
> root 1931 0.0 0.0 8432 772 pts/1 S+ 14:02 0:00 | | \_ /bin/sh /usr/lib/needrestart/dpkg-status
> root 1941 0.0 0.0 18960 2564 pts/1 S+ 14:02 0:00 | \_ dpkg-deb --fsys-tarfile /var/cache/apt/archives/tzdata_2014h-2_all.deb
> root 1943 0.0 0.0 0 0 pts/1 Z+ 14:02 0:00 | \_ [dpkg-deb] <defunct>
> root 1944 0.0 0.0 27156 4340 pts/1 S+ 14:02 0:00 | \_ dpkg-deb --fsys-tarfile /var/cache/apt/archives/tzdata_2014h-2_all.deb
I am wondering about the "defunct" dpkg-deb process.
--
Regards,
Igor
Reply to: