dpkg-deb slow when building large packages

Bug #1461652 reported by Dan Kegel
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
dpkg (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Building a 100 megabyte -dbg package (don't laugh, debugging symbols can get quite large)
takes an extra five to ten minutes in dpkg-deb. ps shows e.g.

USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
dank 6207 99.6 0.7 114984 95736 pts/31 R+ 11:11 5:00 dpkg-deb --build debian/foo-dbg ..

This is nothing new, but it is always irritating.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: dpkg 1.17.5ubuntu5.4
ProcVersionSignature: Ubuntu 3.13.0-53.89-generic 3.13.11-ckt19
Uname: Linux 3.13.0-53-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.14.1-0ubuntu3.11
Architecture: amd64
CurrentDesktop: Unity
Date: Wed Jun 3 11:19:12 2015
SourcePackage: dpkg
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Dan Kegel (dank) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in dpkg (Ubuntu):
status: New → Confirmed
Revision history for this message
Dan Kegel (dank) wrote :

When I backtrace it, it's spending a lot of time in

lzma_code () from /lib/x86_64-linux-gnu/liblzma.so.5

and children. strace shows lots of I/O going on. So it
appears to be compression overhead.

Revision history for this message
Dan Kegel (dank) wrote :

Oh, and then when lintian starts running, the whole machine stops because lintian
loads a lot of stuff into RAM (6GB in this case). Tracebacks show it's spending a
lot of time in Perl's RE code.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.