maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Closed (https://talk.maemo.org/showthread.php?t=73190)

IcyMoustache 2011-05-18 12:30

Re: [How To] Speed UP N900 to 300%
 
just a double confirmation: can smartreflex be used on the stock kernel????

Flandry 2011-05-18 12:36

Re: [How To] Speed UP N900 to 300%
 
Quote:

Originally Posted by karam (Post 1009018)
well how much percents then ? 2x ?

Well by the numbers you just gave, it takes about 38% less time to do that calculation. Not quite 300% faster, is it?

jakiman 2011-05-18 12:50

Re: [How To] Speed UP N900 to 300%
 
Okay. Here's my time for that test.

real 0m 16.34s
user 0m 14.72s
sys 0m 0.03s

Guess mine is 600% faster. =p

Update:

real 0m 16.13s
user 0m 14.71s
sys 0m 0.00s

Dang. Not bad eh. =)

jedi 2011-05-18 12:54

Re: [How To] Speed UP N900 to 300%
 
It must be pointed out that my 'benchmark' is only doing a (fairly big) calculation - it doesn't benchmark disk i/o, take into account other processes running, etc, etc, etc and is only a slight improvement over an educated guess...

Also, the blocks of numbers being shown is the answer of 2^2^20.

Flandry 2011-05-18 13:07

Re: [How To] Speed UP N900 to 300%
 
Quote:

Originally Posted by jedi (Post 1009109)
It must be pointed out that my 'benchmark' is only doing a (fairly big) calculation - it doesn't benchmark disk i/o, take into account other processes running, etc, etc, etc and is only a slight improvement over an educated guess...

Also, the blocks of numbers being shown is the answer of 2^2^20.

Hey man hype isn't well served by pesky details and precision. Stop raining on the used car sales pitch.

soeiro 2011-05-18 13:40

Re: [How To] Speed UP N900 to 300%
 
What about those IO changes posted in this thread () it would improve things a lot, right?

If they are not included in power47 and swappalube (can anyone confirm this) they could be included in the first post.

mscion 2011-05-18 14:09

Re: [How To] Speed UP N900 to 300%
 
I'd be interested in knowing if OCing improves the performance of Easy Debian. For example it takes about 60 seconds (wall clock) for easy debian to open on my N900. If OCing gets it down to 20 seconds (a 300% improvemnt) that would be quite an achievement!. Further, once in the LXDE it then takes about 40 seconds to open Open Office. WIll it now open in 13 seconds?

karam 2011-05-18 14:27

Re: [How To] Speed UP N900 to 300%
 
first 300% not works on everything
i have open office launches in extactly 25 seconds
lxde takes exactly 27 to launch
after all the tweaks

mscion 2011-05-18 14:37

Re: [How To] Speed UP N900 to 300%
 
Quote:

Originally Posted by karam (Post 1009201)
first 300% not works on everything
i have open office launches in extactly 25 seconds
lxde takes exactly 27 to launch
after all the tweaks

Ok. Thanks. That is still pretty good. Swapping is probably the biggest bottleneck. 256mb ram doesn't quite cut it for this type of application.

karam 2011-05-18 14:43

Re: [How To] Speed UP N900 to 300%
 
IMO i think swapping and hardware accel and kernel-power-v47 are the most effective tweaks + transitions

windows7 2011-05-18 15:04

Re: [How To] Speed UP N900 to 300%
 
what is the impact this will have on battery life?

augustthe 2011-05-18 15:49

Re: [How To] Speed UP N900 to 300%
 
when enabling WSEGL_UseHWSync the hildon get laggy when scrolling,anybody facing this probem

m4r0v3r 2011-05-18 15:54

Re: [How To] Speed UP N900 to 300%
 
if your like me and don't care about fancy transitions. search transition in the HAM and get the transition control and set all values to 0. its not a real speed up, just a visual one

tushyd 2011-05-18 16:06

Re: [How To] Speed UP N900 to 300%
 
Man, hw acceleration works great! Hopefully it stays stable. But the extra smoothness is nice on the eyes for sure.

epitaph 2011-05-18 16:08

Re: [How To] Speed UP N900 to 300%
 
Quote:

Originally Posted by augustthe (Post 1009279)
when enabling WSEGL_UseHWSync the hildon get laggy when scrolling,anybody facing this probem

HWSync hasn't anything to do with hw acceleration, because it's just enabling the vertical-blanc-interrupt-sync. First off this cause the animation to look nice and 2nd it makes the device lags because the software gets sync to the vertical-blanc interrupt of the graphic-processor. This can only work if the software making the transition can draw a full transition in one (1) vertical-blanc (vbl). Obviously this isn't your observeration (lag) and although on many device its cause a reboot loop.

Duff 2011-05-18 17:18

Re: [How To] Speed UP N900 to 300%
 
Quote:

Originally Posted by jedi (Post 1009021)
A very simple bench mark could be something like:
Code:

echo "2^2^20" | time bc
(you'll need to install 'bc' from the repos). It makes the CPU calculate a big sum. It will give you a few timing values at the end - these can be used to compare before and after results.

FYI, my N900 gives:
Code:

real    0m 20.64s
user    0m 19.05s
sys    0m 0.05s


Sorry for the noob question, what is this bc? couldn't find it on app manager :S

jedi 2011-05-18 17:32

Re: [How To] Speed UP N900 to 300%
 
Quote:

Originally Posted by Duff (Post 1009331)
Sorry for the noob question, what is this bc? couldn't find it on app manager :S

bc is command line calc program - one of those handy old linux utils. http://en.wikipedia.org/wiki/Bc_programming_language

to install try
Code:

root
apt-get install bc

Not too sure which repos it's in...

epitaph 2011-05-18 17:35

Re: [How To] Speed UP N900 to 300%
 
Quote:

Originally Posted by Duff (Post 1009331)
Sorry for the noob question, what is this bc? couldn't find it on app manager :S

bc = big calculation or big num(ber). It's a number larger than double integer or any other number bigger than a 32 bit processor and thus doesn't fit into a cpu register.

karam 2011-05-18 17:40

Re: [How To] Speed UP N900 to 300%
 
Quote:

Originally Posted by windows7 (Post 1009238)
what is the impact this will have on battery life?

well for me i have smart reflex enabled
heavy usage (browsing - mediaplayer - webos games) about 8 continuos hours
and if standby only gsm - a bit mediaplayer well last about 3 -4 days

shaddam 2011-05-18 17:43

Re: [How To] Speed UP N900 to 300%
 
Code:

real    0m 15.44s
user    0m 14.09s
sys      0m 0.04s

tbh with all the settings enabled from this guide, all of which i already had anyway d=, if you just lower the cpu to say 250 with smartflex, lower your screen brightness you really are going to see an improvement in battery power

and if you are going to go power mad with 1050mhz ect then you will see an improvement compared to stock 600mhz

gav

karam 2011-05-18 17:43

Re: [How To] Speed UP N900 to 300%
 
Quote:

Originally Posted by augustthe (Post 1009279)
when enabling WSEGL_UseHWSync the hildon get laggy when scrolling,anybody facing this probem

maybe you need a good transitions.ini
try using theme-customizer or cssu-tuner
hopefully your problem will be fixed :p

Duff 2011-05-18 17:43

Re: [How To] Speed UP N900 to 300%
 
Much appreciated <3

augustthe 2011-05-18 17:57

Re: [How To] Speed UP N900 to 300%
 
Quote:

Originally Posted by karam (Post 1009356)
maybe you need a good transitions.ini
try using theme-customizer or cssu-tuner
hopefully your problem will be fixed :p

dude thanks alot:D:D its much better now and smoother

karam 2011-05-18 18:10

Re: [How To] Speed UP N900 to 300%
 
Glad i helped :)

ndi 2011-05-18 19:40

Re: [How To] Speed UP N900 to 300%
 
Oh dear, that warning in the first post is nowhere big enough for this. You forgot spontaneous reboots, system hangs and the delightful HWSync stuff that makes the UI freeze, but the screen still clicks and from which powering down upsets /opt.

While true that most of us have the mods, remember that we did it one by one and went around most of them. Some have HWSync issues, others don't clock well, others have "all telephony" issues, and each has gone around the problem. Batching them all together is the best way to drop the thing, save for rm -rf.

Oh well, I guess a big red warning will have to do.

He who laughs last probably has a backup.

mscion 2011-05-18 20:45

Re: [How To] Speed UP N900 to 300%
 
Quote:

Originally Posted by karam (Post 1009201)
first 300% not works on everything
i have open office launches in extactly 25 seconds
lxde takes exactly 27 to launch
after all the tweaks

Hi. Sorry, I made a mistake. Without OCing, LXDE takes about 35 seconds to fire up. Not 60 seconds. So the improvement is not quite as dramatic (30% improvement). Opening up writer took about 45 seconds so there is a 80% improvement here. Not enough for me to risk it on my N900. However, if I had a second one...

EDIT: Corrected calculation. The improvement for launching OO is better than I thought. OCing is becoming more tempting! Percentage
improvements corrected.

jakiman 2011-05-18 22:46

Re: [How To] Speed UP N900 to 300%
 
Quote:

Originally Posted by mscion (Post 1009491)
Not enough for me to risk it on my N900. However, if I had a second one...

Not sure what you are risking. (well, I know but I don't think it's a risk)
There certainly is no danger in overclocking. (or at least trying it out)
I uninstalled LXDE a while back so can't test on mine unfortunately.

gsever 2011-05-18 23:08

Re: [How To] Speed UP N900 to 300%
 
I simply hit the CPU to 850 MHz in a regular use (following jakiman's instructions), on a few occasions boost it upto 1Ghz. Both works without almost an issue for about a year.

Any noticeable advice from the first page posting for the 850 and up overclockers?

jakiman 2011-05-18 23:26

Re: [How To] Speed UP N900 to 300%
 
What I do normally:
1. Overclock. It noticeably makes multitasking more responsive.
2. HWSync to 1 (if you are lucky enough to get it to work) Makes transitions look much smoother.
3. Use faster transition. (such as from Theme Customizer)
4. Use a stock theme. Dunno. It just feels smoother. Weird but it does.
5. Use shortcutd/camkeyd to multitask via camera key. (best feature imo)

I don't do too much else although I've tried many other tweaks. =P

ndi 2011-05-19 10:09

Re: [How To] Speed UP N900 to 300%
 
Quote:

Originally Posted by mscion (Post 1009491)
Hi. Sorry, I made a mistake. Without OCing, LXDE takes about 35 seconds to fire up. Not 60 seconds. So the improvement is not quite as dramatic (140% improvement). Opening up writer took about 45 seconds so there is a 166% improvement here. Not enough for me to risk it on my N900. However, if I had a second one...

If something used to take 60 seconds and now takes 30, that's an 100 percent improvement in speed?

mscion 2011-05-19 12:12

Re: [How To] Speed UP N900 to 300%
 
Quote:

Originally Posted by ndi (Post 1009843)
If something used to take 60 seconds and now takes 30, that's an 100 percent improvement in speed?

Hi, Your logic is correct but the timing of 60 seconds was incorrect. It was the bench mark of something else I was checking. I had mistakenly thought it was how long it took to open LXDE without OCing, My bad.

So to be clear:

without OCing it took 35 seconds to open LXDE on my N900
with OCing it took 27 seconds on karman's N900
a 30% improvement. (35/27-1)*100

OCing did better when launching open office (from icon on maemo screen I assume):
without OCing it took 45 seconds (my N900)
with OCing 25 seconds (karman's N900)
(45/25-1)*100 =80% improvement
Not bad!


Of course one major flaw with this study is that one should use the same n900 for this comparison!

EDIT: The percentage improvements were incorrectly calculated. They are now correct. Used formulas in post #82.

misiak 2011-05-19 12:24

Re: [How To] Speed UP N900 to 300%
 
Quote:

Originally Posted by mscion (Post 1009925)
Hi, Your logic is correct but the timing of 60 seconds was incorrect. It was the bench mark of something else I was checking. I had mistakenly thought it was how long it took to open LXDE without OCing, My bad.

So to be clear:

without OCing it took 35 seconds to open LXDE on my N900
with OCing it took 27 seconds on karman's N900
a 130% improvement. (35/27)*100

OCing did better when launching open office (from icon on maemo screen I assume):
without OCing it took 45 seconds (my N900)
with OCing 25 seconds (karman's N900)
(45/25)*100 =180% improvement
Not bad!


Of course one major flaw with this study is that one should use the same n900 for this comparison!

Is this way of doing maths correct? :P I would say:
Quote:

without OCing it took 35 seconds to open LXDE on my N900
with OCing it took 27 seconds on karman's N900
35/27 = more or less 1,3 times faster
or
27/35 = it works in 0.77 of time without overclocking
or
((35-27)/35)*100% = more or less 23% of speed improvement

Quote:

OCing did better when launching open office (from icon on maemo screen I assume):
without OCing it took 45 seconds (my N900)
with OCing 25 seconds (karman's N900)
45/25 = more or less 1.8 times faster
or
25/45 = it works in 0.56 of time without overclocking
or
((45-25)/45)*100% = more or less 44% of speed improvement

jedi 2011-05-19 12:50

Re: [How To] Speed UP N900 to 300%
 
Quote:

Originally Posted by mscion (Post 1009925)
Of course one major flaw with this study is that one should use the same n900 for this comparison!

Indeed - these comparisons are only marginally better than an educated guess - there's loads of things which could influence the results - background processes, widgets, email checking, daemons running, other tweaks, etc, etc, etc, etc, etc.

You really can't take the timings from two different devices and make a conclusion that this tweak is better than another one. The only way of doing it would be to do it on the same device - ideally one that's been freshly flashed and has been fiddled with as least as possible!

mscion 2011-05-19 13:05

Re: [How To] Speed UP N900 to 300%
 
Quote:

Originally Posted by misiak (Post 1009943)
Is this way of doing maths correct? :P I would say:

35/27 = more or less 1,3 times faster
or
27/35 = it works in 0.77 of time without overclocking
or
((35-27)/35)*100% = more or less 23% of speed improvement


45/25 = more or less 1.8 times faster
or
25/45 = it works in 0.56 of time without overclocking
or
((45-25)/45)*100% = more or less 44% of speed improvement

Well, I think it depends on the convention you want to use and what is more meaningful . For case of 45/25 being 1.8 faster. It is equilalent to 80% improvement in speed. Also 25/45 =.56 works because you are then saying it takes about half as much time to run.


EDIT: 180% was corrected with 80%. There was an inconsistency between speed improvement and time improvement. Text corrected/modified. Sorry about that!

geneven 2011-05-19 17:37

Re: [How To] Speed UP N900 to 300%
 
All these calculations are on specific operations and not on the overall operation of the N900. Even if you can run LXDE or whatever 130% faster, this does not prove that your N900 runs 130% faster in general, unless all you do all day is start LXDE.

I stand by my estimate that after doing all the changes mentioned, my N900 is 30% or so faster.

I don't get ANY of the bad results mentioned. I don't think I've spontaneously rebooted for a year or so, for example.

daperl 2011-05-19 17:45

Re: [How To] Speed UP N900 to 300%
 
Quote:

Originally Posted by geneven (Post 1010263)
I stand by my estimate that after doing all the changes mentioned, my N900 is 30% or so faster.

Cool. Settled. Now take a 0 out of the title, OP.

misiak 2011-05-19 18:23

Re: [How To] Speed UP N900 to 300%
 
Quote:

Originally Posted by geneven (Post 1010263)
All these calculations are on specific operations and not on the overall operation of the N900. Even if you can run LXDE or whatever 130% faster, this does not prove that your N900 runs 130% faster in general, unless all you do all day is start LXDE.

I stand by my estimate that after doing all the changes mentioned, my N900 is 30% or so faster.

I don't get ANY of the bad results mentioned. I don't think I've spontaneously rebooted for a year or so, for example.

I also think that even the LXDE and OpenOffice timings show only 30(+/-10)% of speed improvement (see my previous post for calculations), they (mscion and karam) and us just use different measures... for me 100% speed improvement would be doing everything in (almost) 0 time... and doing something 2 times faster is 50%, not 100%... it's not even linear, god damn it... I think that proper formula is ((time_without_tweak-time_with_tweak)/time_without_tweak)*100%, not the strange one used by mscion. Let's imagine something took 10 seconds without overclocking.
1. Then after one tweak it takes 5 seconds.
Time gain = 5 seconds.
My way of counting = ((10-5)/10)*100% = 50% speed gain, so 1 second is 10 percentage points.
His way of counting = (10/5)*100%= 200% speed gain, so 1 second is 40 percentage points.
2. After removing this tweak and applying some different tweak it takes 3 seconds.
Time gain = 7 seconds.
My way of counting = 70% speed gain, so 1 second is 10 percentage points.
His way of counting = (10/3)*100% = 333% speed gain, so 1 second is 47 percentage points.
So it's not consistent...
and more important:
3. After removing the second tweak and applying some different, let's imagine device is less responsive and operation now takes 20 seconds.
Time gain = -10 seconds (10 seconds loss)
My way of counting = ((10-20)/10)*100% = -100% speed gain (100% speed loss), so 1 second is 10 percentage points.
His way of counting = (10/20)*100% = 50% speed gain, so 1 second is (50pp)/(-10)= -5 percentage points.

Summarizing:
- This strange way of counting speed gain used by mscion is inconsistent. Between situations 1 and 2 using your way of counting the speed gain jumps from 200 to 333 points suddenly, while using my way it's consistent (every second faster gives equal number of percentage points in speed gain %).
- This strange way of counting gives positive speed gain even if the speed gain is NEGATIVE, so it's definitely wrong.
- I think that speed gain is "seconds saved while doing some task", so it's (time_without_tweak - time_with_tweak). And to make it into percentage, one should take it, divide it by base time (time_without_tweak), so the formula is (time_without_tweak - time_with_tweak) / time_without_tweak. And multiplied by 100% ofc.

Thank you for reading ;) Maybe that's why in the thread title there is number "300%", it's actually around 60-70% speed gain (well, 2 times more than measured by these tests, but who knows, maybe on their devices something worked two times faster ;) it's more probable than 10 times faster ;) ) Anyone with me? :P

jedi 2011-05-19 19:02

Re: [How To] Speed UP N900 to 300%
 
And don't forget that timing how long it takes to load an app is a really bad benchmark as 2nd time will always be faster due to caching, etc.

ndi 2011-05-19 19:16

Re: [How To] Speed UP N900 to 300%
 
ETA
Quote:

Originally Posted by jedi (Post 1010363)
And don't forget that timing how long it takes to load an app is a really bad benchmark as 2nd time will always be faster due to caching, etc.

Really? My phone is consistently consistent, so to speak. I always assumed that due to limited memory that was disabled. Did you try this out?

End ETA

Quote:

Originally Posted by geneven (Post 1010263)
I stand by my estimate that after doing all the changes mentioned, my N900 is 30% or so faster.

That's a bit conservative, IMO. It is about 30% faster doing stuff but the times spent waiting on UI and the like was reduced visibly. My "feel" was closer to a 50%, on the round up side. We do, however have (most likely) different usage patterns. E.g., I spend at least 20 minutes a day on VNC.

Even so, seeing the wild numbers here, we're on the same page.

Oh, and, to some of the math here: 110 is 10% faster than 100, not 110%. So, what I was saying, is that 60 seconds over 30 is 100% improvement, 60 over 60 is 0%.

"(35/27)*100" is a ratio, 1.29. The improvement is 29%, not 129%. Because "this is 100% faster" means twice as fast, not exactly the same.

Work is being done in 35 seconds, so it's W/35. the other is W/27. We do a ratio, so division is the key. Division of fractions is multiplying with the inverse, so it's (35/W)*(W/27), and work is reduced (since it's a ratio, no measurements, makes sense), it falls to 35/27, or 29.6% improvement.

If you want, it takes 1000 ticks in 35 seconds to do work, so it's 28.5 TPS (ticks per second), versus 1000/27, which is 37.0 TPS. Now it becomes clear that 37 is a 29% improvement over 28.5.

Can't call it Hertz or MIPS because it's not aligned with a second, but it's the general idea.

In my case, the rough 50% corresponds to upping the 600 MHz to 900 MHz, a rough increase of ... what do you know, 50% ;)

jedi 2011-05-19 19:34

Re: [How To] Speed UP N900 to 300%
 
Quote:

Originally Posted by ndi (Post 1010374)
ETA

Really? My phone is consistently consistent, so to speak. I always assumed that due to limited memory that was disabled. Did you try this out?

End ETA

ETA?

Yes - It's more apparent for smaller apps that take less memory. And don't forget swap space will also come into the equation.


All times are GMT. The time now is 05:22.

vBulletin® Version 3.8.8