[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#271072: dpkg crashes. Too high memory footprint.



Package: dpkg
Version: 1.10.23
Severity: normal


Hello,

On my sid box, dpkg has been crashing for the last 15 days. Digging a
bit I found that dpkg needs above 100Mo of RAM nowdays to be able to proceed on
this box. Killing  a bunch of application does solve the pb.

It would be nice if you guys could do something to lower the memory usage of dpkg. 

@+,

	Fab

Some more info :

$ sudo apt-get upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages have been kept back:
<...cut...>
58 upgraded, 0 newly installed, 0 to remove and 24 not upgraded.
1 not fully installed or removed.
Need to get 0B/74.7MB of archives.
After unpacking 5248kB of additional disk space will be used.
Do you want to continue? [Y/n]
Reading changelogs... Done
Preconfiguring packages ...
(Reading database ... 462457 files and directories currently installed.)
Preparing to replace sysvinit 2.86-1 (using
..../sysvinit_2.86-4_i386.deb) ...
Unpacking replacement sysvinit ...
dpkg: error processing /var/cache/apt/archives/sysvinit_2.86-4_i386.deb
(--unpack):
 fork failed: Cannot allocate memory
dpkg: error while cleaning up:
 fork failed: Cannot allocate memory
Errors were encountered while processing:
 /var/cache/apt/archives/sysvinit_2.86-4_i386.deb
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

$ sudo dpkg -i /var/cache/apt/archives/verilog_0.7+20040828-1_i386.deb
Password:
(Reading database ... 462457 files and directories currently installed.)
Preparing to replace verilog 0.7+20040606-1 (using
..../verilog_0.7+20040828-1_i386.deb) ...
Unpacking replacement verilog ...
dpkg: error processing
/var/cache/apt/archives/verilog_0.7+20040828-1_i386.deb (--install):
 fork failed: Cannot allocate memory
dpkg: error while cleaning up:
 fork failed: Cannot allocate memory
Errors were encountered while processing:
 /var/cache/apt/archives/verilog_0.7+20040828-1_i386.deb
Processing was halted because there were too many errors.


$ free
             total       used       free     shared    buffers
cached
Mem:        517220     429968      87252          0       2072
51516
-/+ buffers/cache:     376380     140840
Swap:            0          0          0
                ^^^^ running without swap = wanted feature.

$ grep -v "^#" /etc/apt/sources.list | grep -v "^$"
deb ftp://debian.univ-mlv.fr/debian sid main non-free contrib
deb-src ftp://debian.univ-mlv.fr/debian sid main non-free contrib
deb ftp://debian.univ-mlv.fr/debian-non-US sid/non-US main contrib
non-free

$ dpkg -l | wc -l
3759


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.7arkham
Locale: LANG=fr, LC_CTYPE=ISO-8859-15 (ignored: LC_ALL set to fr_FR@euro)

Versions of packages dpkg depends on:
ii  dselect                     1.10.23      a user tool to manage Debian packa
ii  libc6                       2.3.2.ds1-16 GNU C Library: Shared libraries an

-- no debconf information



Reply to: