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

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



Adam Heath wrote:
On Sat, 11 Sep 2004, Fabrice Lorrain wrote:


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.


(Reading database ... 462457 files and directories currently installed.)



Thanks for answering.

Just how much do you have installed?

Only half of the interresting stuff in debian ;-)

Tell us the size of all *.list files in
/var/lib/dpkg/info?  That's about how much memory it needs.

Doesn't match :

$ du  -c /var/lib/dpkg/info/*.list
bash: /usr/bin/du: Argument list too long
Hmmm, wrong start & BTS #271588

$ cd /var/lib/dpkg/info; du -c *.list
<....cut....>
4       zlib1g-dev.list
4       zlib1g.list
35776   total

(Fab discovering : 4kb blocks meens a LOT of space lost in /var/lib/dpkg/info. )

$ du -sk /var/lib/dpkg/info/
115232  /var/lib/dpkg/info/

After having send the bug report, I played a bit longer with dpkg and "watch free" to get a better understanding of how much ram was used. Adding the free mem and the cached mem eated during the dpkg run I got the general feeling dpkg needed in betwen 120 and 130Mo to be able to do the installation. By the way any suggestion on a better way to watch in real time the memory used by a particular process ?

@+,
	Fab



Reply to: