disk free BEFORE upx:
root@OpenWrt:/# df -h
Filesystem Size Used Available Use% Mounted on
/dev/mtdblock3 5.7M 5.2M 468.0k 92% /jffs
disk free AFTER upx:
root@OpenWrt:/# df -h
Filesystem Size Used Available Use% Mounted on
/dev/mtdblock3 5.7M 5.0M 676.0k 88% /jffs
-> more than 200k are freed!
I compressed those files
81219 -> 28828 35.49% linux/mipsel bemusedlinuxserver
245730 -> 96996 39.47% linux/mipsel bluetoothd
378051 -> 131244 34.72% linux/mipsel dbus-daemon
268111 -> 95564 35.64% linux/mipsel hcid
250987 -> 104900 41.79% linux/mipsel pppd
371891 -> 105740 28.43% linux/mipsel strace
159319 -> 60876 38.21% linux/mipsel lcd4linux
61259 -> 23708 38.70% linux/mipsel mpc
217639 -> 82700 38.00% linux/mipsel mpd
67787 -> 22276 32.86% linux/mipsel sdptool
the funniest part is the execution time:
root@OpenWrt:/# time mpc.nonc
Morcheeba - Washed Away (Feat. Thomas Dybdahl)
[playing] #43/88 0:28/4:22 (11%)
volume:100% repeat: on random: on
real 0m 0.45s
user 0m 0.00s
sys 0m 0.01s
root@OpenWrt:/# time mpc
Morcheeba - Washed Away (Feat. Thomas Dybdahl)
[playing] #43/88 0:30/4:22 (11%)
volume:100% repeat: on random: on
real 0m 0.34s
user 0m 0.01s
sys 0m 0.01s
mpc.nonc is the uncompressed file! perhaps its faster due less reading on the slow flash?
so my opinion is that upx is not that stupid... what you think?