[maemo-users] Not enough memory

From: Aldon Hynes Aldon.Hynes at Orient-Lodge.com
Date: Fri Feb 19 15:06:36 EET 2010
I did something similar below, and it worked a little bit, but I eventally
ran out of room again.

What I ended up doing was

mkdir /opt/cache
mkdir /opt/lib
cd /var/cache
mv apt /opt/cache
ln -s /opt/cache/apt apt
cd /var/lib
mv apt /opt/lib
ln -s /opt/lib/apt apt
mv dpkg /opt/dpkg
ln -s /opt/lib/dpkg dpkg

At present /opt/cache/apt is 10 Meg, /opt/lib/apt is 18, meg and
/opt/lib/dpkg is 28 Meg

With 56 Meg moved out of rootfs, I now have 30 Meg to spare in my rootfs


-----Original Message-----
From: maemo-users-bounces at maemo.org
[mailto:maemo-users-bounces at maemo.org]On Behalf Of Kimmo Hämäläinen
Sent: Friday, February 19, 2010 6:23 AM
To: Tamminen Eero (Nokia-D/Helsinki)
Cc: maemo-users at maemo.org
Subject: Re: Not enough memory

On Fri, 2010-02-19 at 11:02 +0100, Tamminen Eero (Nokia-D/Helsinki)
> Hi,
> ext Jason wrote:
> > On a more technical, get-it-done approach, my problem with OOM was
> > too much crap in /var/cache/apt/archive/ .  There are two ways to
> > handle this in a more user friendly manner.  Instead of the OOM
> > error message, offer to run 'apt-get clean', and/or symlink
> > /var/cache/apt out to /home/.var.cache.apt .  Which I just tried,
> > and seems to wfm.
> >
> > $ sudo gainroot
> > # cd /var/cache/
> > # mv apt /home/.var.cache.apt
> > # ln -sf ../../home/.var.cache.apt apt
> * Application manager doesn't have caches on rootfs, but on
>    the 2GB partition.

Apparently it still has them on rootfs, see the internal bug 144371. I
don't see it necessary to keep these caches on rootfs since the .deb
cache is not mandatory and the rest (.bin files) can be regenerated


maemo-users mailing list
maemo-users at maemo.org

More information about the maemo-users mailing list