dpkg fails on low-memory-hardware

February 18th, 2011 - 08:50 am ET by Martin Klaiber | Report spam
Hello everybody, this is my first post to this list.

Some time ago I wanted to upgrade an old laptop (Toshiba T4900CT,
from 1994) from Debian Etch to Debian Lenny. Unfortunately dpkg
(resp. apt-get or aptitude) was running out of memory. The maximum
amount of RAM for this laptop is limited to 40 MB.

I use this laptop for daily work for many years now. The limited
memory is no problem for this purpose. All programs I need, run fine
with this amount of RAM (jed, latex, tin, mutt, fbi, fbgs, links).

The only problem seems to be dpkg or associated programs, like
aptitude oder apt-get. Strangely enough, the laptop has 256 MB of
swap-space which dpkg (aptitude, apt-get) seem to ignore. Other
programs use swap, so it should be no general problem.

I know this laptop is old hardware and modern hardware is cheap. But
I got used to this machine so much and I would really love to keep it
alive. Plus I would like to continue using Debian. I tried NetBSD on
it. It works fine but I prefer Debian.

So could someone tell me please, how I could use dpkg with max. 40 MB
of RAM or how I could tell dpkg to use swap-space?

TIA, Martin


To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/20110218132419.GA3736@martinkl.dialup.fu-berlin.de
email Follow the discussionReplies 4 repliesReplies Make a reply

Replies

#1 Raphael Hertzog
February 18th, 2011 - 12:30 pm ET | Report spam
Hi,

On Fri, 18 Feb 2011, Martin Klaiber wrote:
Hello everybody, this is my first post to this list.

Some time ago I wanted to upgrade an old laptop (Toshiba T4900CT,
from 1994) from Debian Etch to Debian Lenny. Unfortunately dpkg
(resp. apt-get or aptitude) was running out of memory. The maximum
amount of RAM for this laptop is limited to 40 MB.



dpkg uses an amount of RAM proportional to the number of packages
installed, but apt-get/aptitude use an amount of RAM proportional to the
number of available packages.

And the number of available packages has grown as usual. So it's not
unexpected if apt-get uses all the memory.

Are you sure dpkg alone does not work?

The only problem seems to be dpkg or associated programs, like
aptitude oder apt-get. Strangely enough, the laptop has 256 MB of
swap-space which dpkg (aptitude, apt-get) seem to ignore. Other
programs use swap, so it should be no general problem.



How do you know that they are not using swap ?

I don't know of any reason why dpkg/apt-get would not use swap.

Cheers,
Raphaël Hertzog ◈ Debian Developer

Follow my Debian News ▶ http://RaphaelHertzog.com (English)
http://RaphaelHertzog.fr (Français)


To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Archive: http://lists.debian.org/

Similar topics