Active Topics

 


Reply
Thread Tools
Posts: 452 | Thanked: 522 times | Joined on Nov 2007
#11
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.
 
Posts: 2,802 | Thanked: 4,491 times | Joined on Nov 2007
#12
Originally Posted by Nathan View Post
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's Avatar
Posts: 3,105 | Thanked: 11,088 times | Joined on Jul 2007 @ Mountain View (CA, USA)
#13
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.
 
Posts: 486 | Thanked: 251 times | Joined on Oct 2009
#14
Originally Posted by attila77 View Post
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?
 
Posts: 670 | Thanked: 367 times | Joined on Mar 2009
#15
Originally Posted by attila77 View Post
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?
__________________
* n810 since Feb 2009
* Most-used apps: Opera, gPodder, Panucci, Tomiku, Canola, Quasar, MaemoMapper, ATI85, Maemopad+, AisleRiot Solitaire, Anagramarama, Rapier, Gnumeric, pyRDesktop
* Mobile-friendly URLs of popular sites
 
Posts: 540 | Thanked: 387 times | Joined on May 2009
#16
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)
 
Posts: 452 | Thanked: 522 times | Joined on Nov 2007
#17
Originally Posted by linuxeventually View Post
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.


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's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#18
Originally Posted by Johnx View Post
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.
__________________
Technically, there are three determinate states the cat could be in: Alive, Dead, and Bloody Furious.
 

The Following User Says Thank You to Bundyo For This Useful Post:
Posts: 2,802 | Thanked: 4,491 times | Joined on Nov 2007
#19
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
 

The Following User Says Thank You to lma For This Useful Post:
Posts: 7 | Thanked: 34 times | Joined on Oct 2009 @ London, UK
#20
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.
__________________
--
for((P=10**8,Q=P/100,X=320*Q/(`tput cols`-1),Y=210*Q/`tput lines`,y=-105*Q,v=-2\
20*Q,x=v;y<105*Q;x=v,y+=Y));do for((;x<P;a=b=i=k=c=0,x+=X));do for((;a*a+b*b<4*\
P*P&&i++<99;a=((c=a)*a-b*b)/P+x,b=2*c*b/P+y));do :;done;(((j=(i<99?i%16:0)+30)>\
37?k=1,j-=8:0));echo -ne "\E[$k;$j"mE;done;echo -e \\E[0m;done # Charles Cooke
 

The Following User Says Thank You to ccooke For This Useful Post:
Reply

Tags
n800, n810, n900, optification, optifying, rootfs


 
Forum Jump


All times are GMT. The time now is 15:31.