Reply
Thread Tools
Posts: 2,802 | Thanked: 4,491 times | Joined on Nov 2007
#141
Originally Posted by hxka View Post
Code:
Nokia-N900:~# dd if=/dev/zero of=/10Mfile bs=1K count=10K
10485760 bytes (10.0MB) copied, 0.169525 seconds, 59.0MB/s
Nokia-N900:~# dd if=/dev/zero of=/uc/10Mfile bs=1K count=10K
10485760 bytes (10.0MB) copied, 0.195251 seconds, 51.2MB/s
Interesting that /uc is ~15% slower. Is that reproducibly so?
 

The Following 2 Users Say Thank You to lma For This Useful Post:
Posts: 204 | Thanked: 423 times | Joined on Jan 2011
#142
Originally Posted by lma View Post
Interesting that /uc is ~15% slower. Is that reproducibly so?
That's obviously because of zeroes are too easy to compress, and compressing isn't a bottleneck. Remember that dd calculates speed of writing data to file, not an actual speed of writing (un)compressed data to flash.
For 'real' usage that definitely won't reproduce.
But I'm lacking of fast source of pseudorandom data to test it, /dev/urandom is VERY slow on N900 (~1.6MBps on my N900 OC to 900MHz).

Last edited by hxka; 2012-06-16 at 14:00.
 

The Following 2 Users Say Thank You to hxka For This Useful Post:
Posts: 2,076 | Thanked: 3,268 times | Joined on Feb 2011
#143
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.
This is actually great news and an option. 30% of 345 is 103mb, so less than 256. The more optimistic view of 40% leaves around 50 mb of rootfs. Thumb2 could bring yet unknown performance (both using uncompressed rootfs and smaller code footprint) and significant battery saving (no CPU overhead on any/most system processes). This thread is pure gold, fingers crossed.
 

The Following 2 Users Say Thank You to szopin For This Useful Post:
Posts: 567 | Thanked: 2,965 times | Joined on Oct 2009
#144
The code in https://garage.maemo.org/plugins/scm.../?root=browser should be matching source code for tablet-browser-daemon (i.e. browserd), there is also source at https://garage.maemo.org/plugins/scm.../?root=browser for browser-neteal.

The browser UI itself is not open source unfortunately
 

The Following 9 Users Say Thank You to jonwil For This Useful Post:
Posts: 204 | Thanked: 423 times | Joined on Jan 2011
#145
@szopin, not all of files in rootfs are ELFs.
It's bit tricky to count size of all ELFs in rootfs, I've ended up with this:
Code:
Nokia-N900:~# cat iself.sh 
#!/bin/sh
file "$1" | grep ": ELF" 2>&1 >/dev/null && echo "$1"
Nokia-N900:~# du -ch $(find / -xdev -type f -exec sh iself.sh {} \;) | tail -1
191.2M	total
And 30-40% is a reduction of code size, not resulting code size.
So, 345.6−191.2⋅0.4=269.12. Too much, even if not to take into account that not all of them are open source and can be recompiled, that partition size is 251.25 MB, not 256 and that filesystem iteslf require some space to store inodes and other stuff.

Last edited by hxka; 2012-06-16 at 17:25.
 

The Following 3 Users Say Thank You to hxka For This Useful Post:
Posts: 372 | Thanked: 61 times | Joined on Jan 2012
#146
Originally Posted by szopin View Post
This is actually great news and an option. 30% of 345 is 103mb, so less than 256. The more optimistic view of 40% leaves around 50 mb of rootfs. Thumb2 could bring yet unknown performance (both using uncompressed rootfs and smaller code footprint) and significant battery saving (no CPU overhead on any/most system processes). This thread is pure gold, fingers crossed.


BusyBox v1.20.1 (Debian 1.20.1power1) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ root


BusyBox v1.20.1 (Debian 1.20.1power1) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Nokia-N900:~# du -xhs /
298.1M /
Nokia-N900:~#
i got this. i have no idea what is this. i just installed it. absolutely no clue. just understood that it will make N900 a little faster and apps will eat less RAM
 
Posts: 33 | Thanked: 17 times | Joined on Jun 2012
#147
just now i updated from tumb6 to tump9 but rootfs is still same why?
 
Posts: 3,074 | Thanked: 12,960 times | Joined on Mar 2010 @ Sofia,Bulgaria
#148
Guys, I would really love if you stop measuring WRITE speed, what matters is READ speed, as that is what is applicable for executables :P

Also we don't really need to move all of the executable code in an uncompressed directory (there is no enough space), just the one that is frequently used. Even if not thumb-compiled.
__________________
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 6 Users Say Thank You to freemangordon For This Useful Post:
Posts: 204 | Thanked: 423 times | Joined on Jan 2011
#149
If somebody interested, on a pure PR1.3.1 (only rootsh, file and busybox-power installed) there are 263.1MB of files on rootfs and 149.6 MB of them are binaries.
 

The Following 7 Users Say Thank You to hxka For This Useful Post:
Alfred's Avatar
Posts: 855 | Thanked: 612 times | Joined on Oct 2010 @ Germany
#150
I have updated to the latest version, and have been experiencing a little slowdown...
__________________
Reps are just one click away: Extras | Extras-Testing | Extras-Devel | My-Maemo | CSSU |
Transform your lock screen into a weather forecast Thanks button ================>
 
Reply

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


 
Forum Jump


All times are GMT. The time now is 11:30.