Reply
Thread Tools
Posts: 2,076 | Thanked: 3,268 times | Joined on Feb 2011
#131
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???
 

The Following 2 Users Say Thank You to szopin For This Useful Post:
Posts: 1,225 | Thanked: 1,905 times | Joined on Feb 2011 @ Quezon City, Philippines
#132
Originally Posted by szopin View Post
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)
__________________
N9 PR 1.3 Open Mode + kernel-plus for Harmattan
@kenweknot, working on Glacier for Nemo.
 
Posts: 3,074 | Thanked: 12,960 times | Joined on Mar 2010 @ Sofia,Bulgaria
#133
Originally Posted by szopin View Post
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
__________________
Never fear. I is here.

720p video support on N900,SmartReflex on N900,Keyboard and mouse support on N900
Nothing is impossible - Stable thumb2 on n900

Community SSU developer
kernel-power developer and maintainer

 

The Following 13 Users Say Thank You to freemangordon For This Useful Post:
Posts: 2,802 | Thanked: 4,491 times | Joined on Nov 2007
#134
Originally Posted by szopin View Post
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.
 

The Following 3 Users Say Thank You to lma For This Useful Post:
Posts: 204 | Thanked: 423 times | Joined on Jan 2011
#135
For now, I have
Code:
Nokia-N900:~# du -xhs /
345.6M  /
So, without optifying uncompressing whole rootfs is not an option.
 

The Following 2 Users Say Thank You to hxka For This Useful Post:
Posts: 204 | Thanked: 423 times | Joined on Jan 2011
#136
Originally Posted by freemangordon View Post
chattr -c /rootfs_uc
Hmm, it's from e2fsprogs package, are you sure it will work with ubifs?
 

The Following 2 Users Say Thank You to hxka For This Useful Post:
Posts: 3,074 | Thanked: 12,960 times | Joined on Mar 2010 @ Sofia,Bulgaria
#137
Originally Posted by hxka View Post
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
__________________
Never fear. I is here.

720p video support on N900,SmartReflex on N900,Keyboard and mouse support on N900
Nothing is impossible - Stable thumb2 on n900

Community SSU developer
kernel-power developer and maintainer

 

The Following 5 Users Say Thank You to freemangordon For This Useful Post:
Posts: 204 | Thanked: 423 times | Joined on Jan 2011
#138
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.
 

The Following 2 Users Say Thank You to hxka For This Useful Post:
Posts: 3,074 | Thanked: 12,960 times | Joined on Mar 2010 @ Sofia,Bulgaria
#139
Have in mind used/free space on rootfs is an estimate AIUI
__________________
Never fear. I is here.

720p video support on N900,SmartReflex on N900,Keyboard and mouse support on N900
Nothing is impossible - Stable thumb2 on n900

Community SSU developer
kernel-power developer and maintainer

 

The Following User Says Thank You to freemangordon For This Useful Post:
Posts: 1,225 | Thanked: 1,905 times | Joined on Feb 2011 @ Quezon City, Philippines
#140
Originally Posted by hxka View Post
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)
__________________
N9 PR 1.3 Open Mode + kernel-plus for Harmattan
@kenweknot, working on Glacier for Nemo.
 
Reply

Tags
code size, dinosaurs, fmg ftw!, fmg.da.king, performance, thumb, thumb life


 
Forum Jump


All times are GMT. The time now is 13:42.