maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   rootfs full? Here's a temporary solution until more packages are optified (https://talk.maemo.org/showthread.php?t=33429)

Nathan 2009-10-25 21:25

Re: rootfs full? Here's a temporary solution until more packages are optified
 
Quote:

Code:

dpkg-query -W -f='${Installed-Size}\t${Package}\n' '*' | sort -n | tail -50
can be used to show the top 50 space hogs.
Won't this just show the largest packages. But won't show if any of them are optified. For instance if you install libicu42 it is over 20 megs of libraries; but since the library is optified the amount of space in usr/lib is just the symlinks.

Nathan.

lma 2009-10-25 23:03

Re: rootfs full? Here's a temporary solution until more packages are optified
 
Quote:

Originally Posted by Nathan (Post 357859)
Won't this just show the largest packages. But won't show if any of them are optified.

Yes, it's just a quick way of looking for good candidates for further checking with something like this.

While on the subject, can we have exceptions for the openssh packages (and/or the dropbear equivalents)? They could come in handy for recovering from a broken /home partition so I would prefer to have them in the root filesystem (if that's also broken then it's probably time to reflash anyway).

qgil 2009-10-26 03:30

Re: rootfs full? Here's a temporary solution until more packages are optified
 
Thanks a lot! Please keep these names of fat apps coming. Knowing about specific apps makes it easy to rationalize potential sensible exceptions. For instance, it is clear the difference between a user after openssh or a user after Fennec.

j.s 2009-10-26 04:11

Re: rootfs full? Here's a temporary solution until more packages are optified
 
Quote:

Originally Posted by attila77 (Post 357655)
Don't forget the eMMC is slower and also the device you swap to. From what I understand that's why originally Nokians did not optify qt and libs in general.

Once a few qt based apps have started up, won't the
qt libs be cached in RAM and performance just as fast
as if the libs were stored in nand?

buurmas 2009-10-26 04:29

Re: rootfs full? Here's a temporary solution until more packages are optified
 
Quote:

Originally Posted by attila77 (Post 357435)
Maemo 4 does not have an ext3 partition on the built-in card so it's a no-go unless you repartition (at which point you are better off cloning the whole root).

Should this thread be moved from General to N900 then?

linuxeventually 2009-10-26 04:31

Re: rootfs full? Here's a temporary solution until more packages are optified
 
I must have missed the memo.

a) From a developer perspective how are packages "optified"?

For example do you mean - instead of
$ configure --prefix=/usr --host arm
use
$ configure --prefix=/opt --host arm
???

b) From a [power] user perspective is there a more permanent way (a dpkg flag or such) to get packages to install into an alternative location rather than using this script to copy the contents of /usr to /opt (which I assume to be the desired behaviour)

c) What is the current partition structure of the N900 (and highlighting of the problem area would be appreciated)

Nathan 2009-10-26 04:35

Re: rootfs full? Here's a temporary solution until more packages are optified
 
Quote:

Originally Posted by linuxeventually (Post 358001)
I must have missed the memo.

a) From a developer perspective how are packages "optified"?

The easist method is to use maemo-optify as the step before the dh_mdgenerate in the rules.


Quote:

c) What is the current partition structure of the N900 (and highlighting of the problem area would be appreciated)
Wiki Link: http://wiki.maemo.org/Opt_Problem

Nathan

Bundyo 2009-10-26 05:57

Re: rootfs full? Here's a temporary solution until more packages are optified
 
Quote:

Originally Posted by Johnx (Post 357852)
Package: libwebkit-1.0-1
Files: 3
Size in /usr: 23104 blocks

And what exactly does this mean? Since this is the content of the Fremantle libwebkit package:

http://www.bundyo.com/things/libwebkit_contents.txt

It is optified from the day 1 it was posted there.

lma 2009-10-26 08:42

Re: rootfs full? Here's a temporary solution until more packages are optified
 
I can confirm that:
Code:

Nokia-N900-41-10:~# ./checkroot.sh libwebkit-1.0-1
4        /usr/share/webkit-1.0/webinspector/Breakpoint.js
4        /usr/share/webkit-1.0/webinspector/Images/dockButtons.png
4        /usr/share/webkit-1.0/webinspector/Images/domStorage.png
4        /usr/share/webkit-1.0/webinspector/Images/largerResourcesButtons.png
4        /usr/share/webkit-1.0/webinspector/Images/profileSmallIcon.png
4        /usr/share/webkit-1.0/webinspector/Images/resourceCSSIcon.png
4        /usr/share/webkit-1.0/webinspector/Images/resourceDocumentIconSmall.png
4        /usr/share/webkit-1.0/webinspector/Images/resourceJSIcon.png
4        /usr/share/webkit-1.0/webinspector/Images/resourcePlainIconSmall.png
4        /usr/share/webkit-1.0/webinspector/Images/splitviewDimple.png
4        /usr/share/webkit-1.0/webinspector/Images/splitviewDividerBackground.png
4        /usr/share/webkit-1.0/webinspector/Images/tipIcon.png
4        /usr/share/webkit-1.0/webinspector/Images/tipIconPressed.png
4        /usr/share/webkit-1.0/webinspector/Images/userInputIcon.png
4        /usr/share/webkit-1.0/webinspector/Images/userInputPreviousIcon.png
4        /usr/share/webkit-1.0/webinspector/Script.js
64        total


ccooke 2009-10-26 11:13

Re: rootfs full? Here's a temporary solution until more packages are optified
 
Hmm. I'd guess from that that the script is following the symlinks into /opt. That's easily fixed - I'll post an update this evening, when I'm back from work.


All times are GMT. The time now is 08:03.

vBulletin® Version 3.8.8