maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [ANNOUNCE] CSSU-thumb thread - stable Thumb2 on N900 (https://talk.maemo.org/showthread.php?t=84829)

szopin 2012-06-16 06:14

Re: [ANNOUNCE] CSSU-thumb thread - stable Thumb2 on N900
 
Ok, just thinking out loud, pls correct me if I'm wrong, but if thumb2 saves 3-4mb out of 14 on average... we should be able to free extra 45 out of 150mb in rootfs that are there by default(add some optifying for good measure). Is killing compression an option? Should give speed/battery(no CPU overkill) gain for most (I'll stick to having libs there, but standard user...). Then again the 150mb that are there are already compressed, so would expect them uncompressed to take over 200, thumb2 could help this???

Hurrian 2012-06-16 07:23

Re: [ANNOUNCE] CSSU-thumb thread - stable Thumb2 on N900
 
Quote:

Originally Posted by szopin (Post 1222594)
Ok, just thinking out loud, pls correct me if I'm wrong, but if thumb2 saves 3-4mb out of 14 on average... we should be able to free extra 45 out of 150mb in rootfs that are there by default(add some optifying for good measure). Is killing compression an option? Should give speed/battery(no CPU overkill) gain for most (I'll stick to having libs there, but standard user...). Then again the 150mb that are there are already compressed, so would expect them uncompressed to take over 200, thumb2 could help this???

Yup, UBIFS with no compression is an option.

Anyone want to try to debootstrap a Thumb2 rootfs to flash with flasher (or alternatively, backup then generate an uncompressed fs and untar it back)

freemangordon 2012-06-16 07:30

Re: [ANNOUNCE] CSSU-thumb thread - stable Thumb2 on N900
 
Quote:

Originally Posted by szopin (Post 1222594)
Ok, just thinking out loud, pls correct me if I'm wrong, but if thumb2 saves 3-4mb out of 14 on average... we should be able to free extra 45 out of 150mb in rootfs that are there by default(add some optifying for good measure). Is killing compression an option? Should give speed/battery(no CPU overkill) gain for most (I'll stick to having libs there, but standard user...). Then again the 150mb that are there are already compressed, so would expect them uncompressed to take over 200, thumb2 could help this???

You may experiment a bit by creating a directory in / , lets name it rootfs_uc. After that do chattr -c /rootfs_uc, that command disables compression for a specific node. Once compression for rootfs_uc is disabled, you can start moving and symlinking binaries from /usr to /rootfs_uc.


EDIT:
@Hurrian - there is no need to uncompress the whole rootfs, we can do it on-the-fly only for what is really needed, see the above

lma 2012-06-16 09:07

Re: [ANNOUNCE] CSSU-thumb thread - stable Thumb2 on N900
 
Quote:

Originally Posted by szopin (Post 1222594)
Is killing compression an option? Should give speed/battery(no CPU overkill) gain for most

That would avoid the CPU overhead for compression, but incur more physical I/O (which in itself uses some CPU anyway) for the same amount of data. It should be benchmarked carefully to determine whether the tradeoff is really worth it, both in terms of performance and energy consumption.

hxka 2012-06-16 10:05

Re: [ANNOUNCE] CSSU-thumb thread - stable Thumb2 on N900
 
For now, I have
Code:

Nokia-N900:~# du -xhs /
345.6M  /

So, without optifying uncompressing whole rootfs is not an option.

hxka 2012-06-16 10:21

Re: [ANNOUNCE] CSSU-thumb thread - stable Thumb2 on N900
 
Quote:

Originally Posted by freemangordon (Post 1222618)
chattr -c /rootfs_uc

Hmm, it's from e2fsprogs package, are you sure it will work with ubifs?

freemangordon 2012-06-16 10:36

Re: [ANNOUNCE] CSSU-thumb thread - stable Thumb2 on N900
 
Quote:

Originally Posted by hxka (Post 1222684)
Hmm, it's from e2fsprogs package, are you sure it will work with ubifs?

yeah, I tried it, by creating a directory under /root, setting -c flag on it and copying a big file into it. doing the same filecopy in a different directory and checking the remaining space with df -h

hxka 2012-06-16 10:39

Re: [ANNOUNCE] CSSU-thumb thread - stable Thumb2 on N900
 
Code:

Nokia-N900:~# mkdir /uc
Nokia-N900:~# chattr -c /uc
Nokia-N900:~# df -h /
Filesystem                Size      Used Available Use% Mounted on
rootfs                  227.9M    179.1M    48.7M  79% /
Nokia-N900:~# dd if=/dev/zero of=/10Mfile bs=1K count=10K
10240+0 records in
10240+0 records out
10485760 bytes (10.0MB) copied, 0.169525 seconds, 59.0MB/s
Nokia-N900:~# df -h /
Filesystem                Size      Used Available Use% Mounted on
rootfs                  227.9M    180.7M    47.2M  79% /
Nokia-N900:~# dd if=/dev/zero of=/uc/10Mfile bs=1K count=10K
10240+0 records in
10240+0 records out
10485760 bytes (10.0MB) copied, 0.195251 seconds, 51.2MB/s
Nokia-N900:~# df -h /
Filesystem                Size      Used Available Use% Mounted on
rootfs                  227.9M    187.4M    40.5M  82% /
Nokia-N900:~#

Hmm, strange. Looks like it works, but used space increased by ~7M, not 10M.

freemangordon 2012-06-16 11:42

Re: [ANNOUNCE] CSSU-thumb thread - stable Thumb2 on N900
 
Have in mind used/free space on rootfs is an estimate AIUI

Hurrian 2012-06-16 12:01

Re: [ANNOUNCE] CSSU-thumb thread - stable Thumb2 on N900
 
Quote:

Originally Posted by hxka (Post 1222674)
For now, I have
Code:

Nokia-N900:~# du -xhs /
345.6M  /

So, without optifying uncompressing whole rootfs is not an option.

Hmm, it seems that this is true.

Has anybody decided whether the slightly slower program load times on eMMC justifies lower CPU load?

(it's not exactly reading/writing enormous amounts of data, so IO CPU use wouldnt really choke the CPU)


All times are GMT. The time now is 23:58.

vBulletin® Version 3.8.8