Package: dhelp
Version: 0.6.21+nmu2
Severity: serious
Justification: affects performance of almost every daily upgrade
I've recently installed dhelp (I used to have it installed, but
then it got uninstalled somehow) and noticed that performance of
doc-base post-installation trigger have dropped drastically.
Just compare the output of the following commands:
sudo chmod 644 /usr/sbin/dhelp_parse # disable dhelp
touch /usr/share/doc-base/doc-base
time sudo /usr/sbin/install-docs -dvC
with output of this:
sudo chmod 755 /usr/sbin/dhelp_parse # enable dhelp
touch /usr/share/doc-base/doc-base
time sudo /usr/sbin/install-docs -dvC
On my system with over 500 doc-base documents registered the second set
of commands is roughly 600 times slower!
`install-docs' usually calls `dhelp_parse' twice: once with `-d', and
once with `-a'. Both invocations of `dhelp_parse' rebuild the entire
index.html files. They read all the /var/lib/doc-base/documents to do this, but
what is more important for each such file THEY RE-READ THE WHOLE DPKG
STATUS & AVAILABLE DATABASES (to check if `man2html' and `info2www'
packages are installed)! See this output of strace command:
[1]/home/robert> sudo strace -r -e open,close /usr/sbin/dhelp_parse -d
/var/lib/doc-base/documents/doc-base
// snipped
0.000304 open("/var/lib/dpkg/available", O_RDONLY|O_LARGEFILE) = 3
2.933585 close(3) = 0
0.005428 open("/usr/share/doc/HTML/File management/index.html",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 3
0.001297 close(3) = 0
0.000634 open("/usr/share/dhelp/templates/section.rhtml",
O_RDONLY|O_LARGEFILE) = 3
0.000345 close(3) = 0
0.004470 open("/var/lib/dpkg/status", O_RDONLY|O_LARGEFILE) = 3
0.392373 close(3) = 0
0.000334 open("/var/lib/dpkg/available", O_RDONLY|O_LARGEFILE) = 3
2.975223 close(3) = 0
0.000762 open("/var/lib/dpkg/status", O_RDONLY|O_LARGEFILE) = 3
0.360588 close(3) = 0
0.000353 open("/var/lib/dpkg/available", O_RDONLY|O_LARGEFILE) = 3
3.090041 close(3) = 0
0.009219 open("/usr/share/doc/HTML/Help/index.html",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 3
0.000481 close(3) = 0
0.000501 open("/usr/share/dhelp/templates/section.rhtml",
O_RDONLY|O_LARGEFILE) = 3
0.001836 close(3) = 0
0.005520 open("/var/lib/dpkg/status", O_RDONLY|O_LARGEFILE) = 3
0.344722 close(3) = 0
0.006844 open("/var/lib/dpkg/available", O_RDONLY|O_LARGEFILE) = 3
3.144844 close(3) = 0
0.006779 open("/var/lib/dpkg/status", O_RDONLY|O_LARGEFILE) = 3
0.441762 close(3) = 0
0.000369 open("/var/lib/dpkg/available", O_RDONLY|O_LARGEFILE) = 3
// snipped
Regards,
robert
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (990, 'unstable'), (200, 'testing')
Architecture: i386 (i686)
Kernel: Linux 3.8-1-686-pae (SMP w/1 CPU core)
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2)
Shell: /bin/sh linked to /bin/dash
Versions of packages dhelp depends on:
ii doc-base 0.10.5
ii libdata-page-perl 2.02-1
ii libhtml-parser-perl 3.71-1
ii liblocale-gettext-perl 1.05-7+b1
ii libtemplate-perl 2.24-1
ii liburi-perl 1.60-1
ii perl-modules 5.14.2-21
ii poppler-utils 0.18.4-6
ii pstotext 1.9-6
ii ruby-bdb [libdb-ruby1.8] 0.6.5-7
ii ruby-debian 0.3.8+b1
ii ruby-gettext 2.3.9-1
ii ruby1.8 1.8.7.358-7
ii swish++ 6.1.5-2.2
ii ucf 3.0027
Versions of packages dhelp recommends:
ii chromium [www-browser] 27.0.1453.110-1
ii elinks [www-browser] 0.12~pre6-1
ii html2text 1.3.2a-16
ii konqueror [www-browser] 4:4.8.4-2
ii links [www-browser] 2.7-2
ii links2 [www-browser] 2.7-2
ii lynx-cur [www-browser] 2.8.8dev.15-2
ii netrik [www-browser] 1.16.1-1.1
ii w3m [www-browser] 0.5.3-8
Versions of packages dhelp suggests:
ii apache2-bin [httpd-cgi] 2.4.4-6
pn catdvi <none>
ii info2www 1.2.2.9-24
ii man2html 1.6g-6
-- debconf information excluded
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]