Your message dated Wed, 21 May 2014 22:33:59 +0000 with message-id <[email protected]> and subject line Bug#712621: fixed in dhelp 0.6.21+nmu4 has caused the Debian Bug report #712621, regarding dhelp_parse is performance killer to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 712621: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=712621 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---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
--- End Message ---
--- Begin Message ---Source: dhelp Source-Version: 0.6.21+nmu4 We believe that the bug you reported is fixed in the latest version of dhelp, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. David Suárez <[email protected]> (supplier of updated dhelp package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Format: 1.8 Date: Sun, 18 May 2014 13:18:39 +0200 Source: dhelp Binary: dhelp Architecture: source all Version: 0.6.21+nmu4 Distribution: unstable Urgency: low Maintainer: Georgios M. Zarkadas <[email protected]> Changed-By: David Suárez <[email protected]> Description: dhelp - online help system Closes: 712621 732916 734523 Changes: dhelp (0.6.21+nmu4) unstable; urgency=low . * Non-maintainer upload. * Add support for newer ruby versions (Closes: #734523, #732916) * Cache 'Dpkg.status' calls to not affect performance on every system upgrade (Closes: #712621) * Handle correctly arguments passed to '-a' and '-d' options * Fix error when 'dhelp_parse' is called without arguments * Fix Ruby warnings * Change the encoding of Ruby files to UTF-8 Checksums-Sha1: b52e938c53cfac1cb97bfd65f653f6d140739d89 1186 dhelp_0.6.21+nmu4.dsc 97cd02e282716c373a86d0d116432fab04439dee 66508 dhelp_0.6.21+nmu4.tar.xz 42b213e8f02619c8a704cd30c349b7f9d30c1f4e 61772 dhelp_0.6.21+nmu4_all.deb Checksums-Sha256: 9b4962787d65c6834f7eb77c01005235e778b4eb98f3a3265ec60e98cafdc4e6 1186 dhelp_0.6.21+nmu4.dsc ca22fdf04702fbcd8d4d4258beffee14efab1d3a3cb0e4ecd82d6064da093cea 66508 dhelp_0.6.21+nmu4.tar.xz cb158c67517aafd1083ddd75f5a8aa4a3f4e47e94d9f720e03173f3243b7b5ab 61772 dhelp_0.6.21+nmu4_all.deb Files: e429b38f26ecabddc2646957cbc8cae8 61772 doc optional dhelp_0.6.21+nmu4_all.deb f9149b0774ee8342117e12730fc066e4 1186 doc optional dhelp_0.6.21+nmu4.dsc 2b429183128a7896005c094aeebad613 66508 doc optional dhelp_0.6.21+nmu4.tar.xz -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBCAAGBQJTeoFyAAoJEImvgrc5zSF6ePcH+wfPZ4xu27JEvkrrNf1OUQrQ R420nHy6OmBIXJmwBQyJYYJjE1/wX8ivaemDMECfEImc8m8zXt0tV7GncpIbtk2e kFAwTepmMEYNrSZnsr6CuRt381U1QTnWSTEOv6Ug7mvc75EKSZuEbF4YEwc8Hy1m pwdT1G9DTr3zxGj1P4eL0YH/OyCONum+uqb4/Zq1isU4m2Gq0Oiy+1KLYY8yQjEl zHQK1BpbewPp3CgU+jIKYRBOMZ6REV5XTgKqQ15yxcjkXdGuBHV6TkNhsr5efk7N tQ0rZPZcaRSog2OW4v55X4Z+XiM7QFfeXJXgHySH9aPLIkUGxMPDQIgHNSwtboQ= =rvr1 -----END PGP SIGNATURE-----
--- End Message ---

