Spotted this interesting thread over at Android Software and Hacking, which has gone viral today: http://forum.xda-developers.com/showthread.php?t=1987032
Partial quote:
Hey everyone,
So, I was experiencing significant lag as we all do from time to time, and decided I was going to get to the bottom of it.
After tracing and debugging for hours, I discovered the source of 90% of Android's lag. In a word, entropy (or lack thereof).
Google's JVM, like Sun's, reads from /dev/random. For all random data. Yes, the /dev/random that uses a very limited entropy pool.
Random data is used for all kinds of stuff.. UUID generation, session keys, SSL.. when we run out of entropy, the process blocks. That manifests itself as lag. The process cannot continue until the kernel generates more high quality random data.
So, I cross-compiled rngd, and used it to feed /dev/urandom into /dev/random at 1 second intervals.
Result? I have never used an Android device this fast. :good:
It is literally five times faster in many cases. Chrome, maps, and other heavy applications load in about 1/2 a second, and map tiles populate as fast as I can scroll. Task switching is instantaneous. You know how sometimes when you hit the home button, it takes 5-10 seconds for the home screen to repopulate? Yeah. Blocking on read of /dev/random. Problem solved. But don't take my word for it .. give it a shot!
Click to expand...
Click to collapse
You can just install the apk on a rooted device and simply enable/disable via the app.
Has anyone else with an HTC Desire found it to be of any added benefit? I'm not seeing much of performance boost myself but will keep observing either way.
It kills my battery on my sensation and my desire! And performance is just marginally better on big apps like maps and browser
Sent from my HTC Sensation using xda app-developers app
topgeardave said:
It kills my battery on my sensation and my desire! And performance is just marginally better on big apps like maps and browser
Sent from my HTC Sensation using xda app-developers app
Click to expand...
Click to collapse
Yes I agree. Though I didn't have any battery issues but the performance was only slightly better.
Sent from my HTC Desire using xda app-developers app
Related
Hi i found an app called auto killer memory which ive been running for a while. this app has worked wonders for my wilderbeast, its on fire. so ive been tampering alot with things but this seems to have stabalised my phone loads. presets i set to lost, enabled advance mode,apply at boot,ticked all system tweaks and of course when promted enabled super user. my phone is now running sweet and battery has improved too. i dont know if this makes any sense but i have noticed a difference. whoop whoop. am i over optimistic that this works the same as the v6 super charger/juwes ram optimiser ???
Ok I've ammended my settings within this app after doing some research And in memory values I'm now running at 6/10/16/100/120/160 to keep my phone running snappppppy. To explain the values in brief...... if free memory goes below 160mb my phone starts to kill empty apps etc etc as free memory goes below next value the phone starts to kill corresponding apps. Kind of makes sense to me now. Ok I know my settings makes the phone kill more frequently but its damn snappy now,and it can lower the oom settings by long pressing the app in processes section you wish to lower and choosing lower oom. Lowering the oom basically gives the app less chance of being killed.
Personally I haven't had a low memory situation since I rooted and installed cm7, the app your talking about I have installed after reading one of your other posts about it, I presume that it would work the same way as juwes after setting the low memory values, I don't use those settings with it though as I have juwes script installed, the other tweaks seem fine but again I think I had some of them covered from editing my build.prop (still have work to do on that though) and a few other little things, I can't knock this app though as it does seem to have made my battery last a bit longer since installing yesterday, I'd personally rather change the settings myself than have yet another app doing it for me but until I figure which setting seems to be helping my battery out I'll keep it installed.
A couple of other apps which might help you keep it smooth,
Autostarts- I swear by this app its one of my best buys from the market, why use a task killer when you can just stop the app starting in the first place??
Fast reboot pro- after time apps hold memory which they don't really need, hit this and it'll quickly reboot everything (unless you tell it to leave something alone) freeing up spare ram.
Sent from my HTC Wildfire using xda premium
Cheers for info,really happy with this app at the moment.by the sounds of things its doing similar job to other script mods,which I can't get working cos of s - off issue. Posted this for s on users benefit. Hope it helps others.
Edit my settings. Read 1st post.
sent from my wilderbeast/buzz
The only problems I see with having higher settings are if it closes something you use regular it'll be slower to open that app, I'd rather keep them set low and have apps open quickly.
Sent from my HTC Wildfire using xda premium
Scratch0805 said:
The only problems I see with having higher settings are if it closes something you use regular it'll be slower to open that app, I'd rather keep them set low and have apps open quickly.
Sent from my HTC Wildfire using xda premium
Click to expand...
Click to collapse
I agree but this app lets you temporary lower the oom level for apps,so I just lower oom on most important. Long click on process or service and to lower.
sent from my wilderbeast/buzz
Does it?..........I didn't spot that nice find!!
Sent from my HTC Wildfire using xda premium
Yep,long click app in service or process then choose to lower oom.it resets if you reboot so get your settings desired then leave by pressing home button.
sent from my wilderbeast:buzz
whats up with these settings for the pages? what do these settings change?
atm i have these settings:
2560
4096
25600
30720
40960
gozzaa said:
whats up with these settings for the pages? what do these settings change?
atm i have these settings:
2560
4096
25600
30720
40960
Click to expand...
Click to collapse
Change the view from pages to mb and these are the values when it will start killing processes etc. Ie. When your memory gets to the amount your phone starts freeing up starting with the highest setting (empty apps)
Its all explained above,just that you have the pages view instead of mbs.
Quote " its healthy to have enemies, it means you've stood up for something you believe in "
ahh the pagesettings are the same as the MB ones?
i thought its two different things
thanks for the explanation!
btw. do you still use the same settings?
Yes to this day I still use this app even though I'm now s-off with the settings I posted,I will just double check and ammend if needed on 1st post.
" once its gone,its GONE."
slymobi said:
am i over optimistic that this works the same as the v6 super charger/juwes ram optimiser ???
Click to expand...
Click to collapse
I used to use that too and I felt some differance too but I think you have to open the program every boot. But some told me that it isn't just powerful as Supercharger so I deleted the optimiser and tried Supercharged and got a bootloop instead. I didn't get it to work but I believe that Supercharger is a better solution.
zephyri-xr said:
I used to use that too and I felt some differance too but I think you have to open the program every boot. But some told me that it isn't just powerful as Supercharger so I deleted the optimiser and tried Supercharged and got a bootloop instead. I didn't get it to work but I believe that Supercharger is a better solution.
Click to expand...
Click to collapse
i tried supercharger and juuwes but had issues which i think were specific to me but one of the issues was bootlooping from supercharger as well as other things. im not saying one is better than the other but as you and myself had issues with one of the mods then its an alternative for others to use. i prefer this as you get to control the settings and mods yourself from the app. also this is available for s-on whilst the others i believe need s-off.
zephyri-xr said:
I used to use that too and I felt some differance too but I think you have to open the program every boot. But some told me that it isn't just powerful as Supercharger so I deleted the optimiser and tried Supercharged and got a bootloop instead. I didn't get it to work but I believe that Supercharger is a better solution.
Click to expand...
Click to collapse
I got a boot loop from supercharger. I had to wipe my phone and start again from an RUU as all my previous backups became corrupted. Nightmare. TBH in the few days that it did work, i saw/felt no difference.
Using CM_7.1.0.1 probably wouldnt advise to use the supercharge, CM_7 minfree values are set to a pretty good level to keep things in order i think
slymobi said:
Hi i found an app called auto killer memory which ive been running for a while. this app has worked wonders for my wilderbeast, its on fire. so ive been tampering alot with things but this seems to have stabalised my phone loads. presets i set to lost, enabled advance mode,apply at boot,ticked all system tweaks and of course when promted enabled super user. my phone is now running sweet and battery has improved too. i dont know if this makes any sense but i have noticed a difference. whoop whoop. am i over optimistic that this works the same as the v6 super charger/juwes ram optimiser ???
Ok I've ammended my settings within this app after doing some research And in memory values I'm now running at 6/10/16/100/120/160 to keep my phone running snappppppy. To explain the values in brief...... if free memory goes below 160mb my phone starts to kill empty apps etc etc as free memory goes below next value the phone starts to kill corresponding apps. Kind of makes sense to me now. Ok I know my settings makes the phone kill more frequently but its damn snappy now,and it can lower the oom settings by long pressing the app in processes section you wish to lower and choosing lower oom. Lowering the oom basically gives the app less chance of being killed.
Click to expand...
Click to collapse
I have tried supercharge script and does make phone smooth. Also Ive use ram manager new app and that too made phone smooth. But this app (Pro) is so far great. I tried out your settings for now to see if it suits me and had the app for an hour and the phone is very snappy and smooth (which is most important to me). I hope there is a slight battery improvement that many have said on the net but will test more and will leave feed back. A big thx m8!
no probs mate, like i said i have tried the lot and this one for me is really good and you get to be the controller lol.the only drawback i have noticed is that it takes a little longer for the phone to boot after a reboot but !!!!! im ok with that.
LMFAO looks like I didn't pay enough attention... I've used a lot of tweaks already to make my Willy faster, more snappy and stable but to be honest nothing gave it such a boost like that
BTW: are you still using the settings of the op?
Holy crap, I've read that really often here and elsewhere but it's the first it applies to myself: feels like a new phone
eventcom said:
LMFAO looks like I didn't pay enough attention... I've used a lot of tweaks already to make my Willy faster, more snappy and stable but to be honest nothing gave it such a boost like that
BTW: are you still using the settings of the op?
Holy crap, I've read that really often here and elsewhere but it's the first it applies to myself: feels like a new phone
Click to expand...
Click to collapse
I use aggressive setting mostly, all advanced tweaks except sdcard boost one as this bumps read ahead up to 2048, just my preference you might prefer 2048.
Say oooh la la
slymobi said:
I use aggressive setting mostly, all advanced tweaks except sdcard boost one as this bumps read ahead up to 2048, just my preference you might prefer 2048
Click to expand...
Click to collapse
I see. I just have to sort things out now. Regarding the SD card read - I have it already done by sdbooster (@2048) - I'm at a point where I should make a documentation to stay on track and to avoid double tweaks lol.
I'm also very interested into scratch's build.prop lol (guess that would help to drop even more tweaks). Thx again - I've not forgotten about your tip re. AMO - just shifted it too far lol.
Was on the portal and noticed this:
Hey everyone,
So, I was experiencing significant lag as we all do from time to time, and decided I was going to get to the bottom of it.
After tracing and debugging for hours, I discovered the source of 90% of Android's lag. In a word, entropy (or lack thereof).
Google's JVM, like Sun's, reads from /dev/random. For all random data. Yes, the /dev/random that uses a very limited entropy pool.
Random data is used for all kinds of stuff.. UUID generation, session keys, SSL.. when we run out of entropy, the process blocks. That manifests itself as lag. The process cannot continue until the kernel generates more high quality random data.
So, I cross-compiled rngd, and used it to feed /dev/urandom into /dev/random at 1 second intervals.
Result? I have never used an Android device this fast.
It is literally five times faster in many cases. Chrome, maps, and other heavy applications load in about 1/2 a second, and map tiles populate as fast as I can scroll. Task switching is instantaneous. You know how sometimes when you hit the home button, it takes 5-10 seconds for the home screen to repopulate? Yeah. Blocking on read of /dev/random. Problem solved. But don't take my word for it .. give it a shot!
Update!
I've built a very simple Android app that bundles the binary, and starts/stops the service (on boot if selected). I'll be adding more instrumentation, but for now, give it a shot! This APK does not modify /system in any way, so should be perfectly safe.
This is my first userspace Android app, so bear with me!
Note that this APK is actually compatible with all Android versions, and all (armel) devices. It's not at all specific to the Captivate Glide.
Caveats
There is a (theoretical) security risk, in that seeding /dev/random with /dev/urandom decreases the quality of the random data. In practice, the odds of this being cryptographically exploited are far lower than the odds of someone attacking the OS itself (a much simpler challenge).
This may adversely affect battery life, since it wakes every second. It does not hold a wakelock, so it shouldn't have a big impact, but let me know if you think it's causing problems. I can add a blocking read to the code so that it only executes while the screen is on. On the other hand, many of us attribute lag to lacking CPU power. Since this hack eliminates almost all lag, there is less of a need to overclock, potentially reducing battery consumption.
If you try it, let me know how it goes.
ROM builders - feel free to integrate this into your ROMs (either the .apk / application, or just the rngd binary called from init.d)!
If anyone's interested, I've launched a paid app on the Play store for non-xda users. As I add features I'll post the new versions here as a thanks to you guys (and xda community at large for being such a great resource). But if anyone's interested in the market's auto-update feature, just thought I'd mention it.
Cheers!
Click to expand...
Click to collapse
Should this help with the lag that we get on the Play?
If anyone else wants to try it heres the link to the thread:
http://forum.xda-developers.com/showthread.php?t=1987032
I tried it and it i got faster loading on some minor stuff (like contact picture loading) and apps installed on the internal memory seems to load faster, in terms of UI smoothness I don't notice any difference, because UI is smooth since the beginning
I think i may try it out although i don't see any instructions
Sent from my ASUS Transformer Pad TF300T using xda app-developers app
BTW, somebody already posted this in the XPlay Android Dev section:
http://forum.xda-developers.com/showthread.php?t=2073382
I am using this app from couple of days. I see a very noticeable lag reduction on gingerbread/ics/jellybean. ui fells more smoother and web pages as well as play store load much faster.
For more description and download : https://play.google.com/store/apps/details?id=com.lcis.seeder&hl=en
Has been shared.
Will this works on CM10.1 PRO rom?
And if yes, can anyone explain to me how this works? I mean what things this modify or what do for reduct the lag
Thanks and sorry for my english
I use this application on cm7.2, no lags and speed of operation of the system are its advantages
sorry for my english
Already shared bro, but thanks for sharing again.
Sent from my GT-S5830 using xda app-developers app
Lynx901 said:
Will this works on CM10.1 PRO rom?
And if yes, can anyone explain to me how this works? I mean what things this modify or what do for reduct the lag
Thanks and sorry for my english
Click to expand...
Click to collapse
As far as i understand, it improves the creation of random numbers.
Random numbers are quite important, for generating keys, temporary identifiers etc. Standard random-algorithm seems to cause a lot of collisions (same random numbers generated), but collisions force some processes to wait until there's no more collision (numbers must be unique). This time until a fitting random number is found is sometimes recognized as a lag.
This app creates "more random" numbers and copies them to the place where the normal random numbrers are stored (that's why it needs root). I think i've read it happens every second.
Less collisions mean less wait time (lag) for a process (at least in theory).
So that's what i've read and how i understood it.If someone knows it better, (s)he may correct me .
I'm using it, i think it reduces lags, but I can't confirm it. Maybe just the placebo-effect.
This apk unleashes the performance on all of the Cyanogenmod roms except in stock rom performance,it still much slower performance in stock rom and increases the battery draining after activating the seeder.
Just read on Android Central about a app that decreases lag on phones. So I decided to check it out and it do seem to increase responsiveness. I recommend that guys check it out....Just search lag fix in the play store. Let me know what you think.
Sent from my SPH-L900 using xda premium
I don't think lag should be much of an issue on our phones
Sent from my SPH-L900 using xda premium
jworkcoo said:
Just read on Android Central about a app that decreases lag on phones. So I decided to check it out and it do seem to increase responsiveness. I recommend that guys check it out....Just search lag fix in the play store. Let me know what you think.
Sent from my SPH-L900 using xda premium
Click to expand...
Click to collapse
What lag? :good:
As much as I would love to say lag isn't an issue it really is when listening to music or pod casts or how loading a file/app or using navigation..it's not much but it is there especially when you pull the notification shade down and look at the bouncy toggles..either way, ,this app doesn't do diddley squat so it's probably a programing issue.
Sent from my SPH-L900 using xda premium
I tried it too. It seems to make a solid difference, and combined with Seeder, my Note and my Transformer Prime are both running smoother than ever.
Sent from my SCH-R950 using xda app-developers app
ZebTheCalvinist said:
I tried it too. It seems to make a solid difference, and combined with Seeder, my Note and my Transformer Prime are both running smoother than ever.
Sent from my SCH-R950 using xda app-developers app
Click to expand...
Click to collapse
I agree. it seems to make things a bit more responsive.
anyone know how it does this?
-Wizzle
I do notice in and out of lockscreen is faster and also using the home button is quicker
Sent from my SPH-L900 using xda premium
Lag...
I have read a lot on the lag seen in Android as compared to something like iOS specifically. There is lag and there will always be more lag seen in Android as apposed to iOS, due to how the OS was designed, and priorities of certain system functions. iOS gives full priority over any other process to the GUI functionality, which gives iOS a major smooth GUI (so what right??). Android gives priority to other processes, and the GUI falls near the end, I don't think it even gives a priority other than the standard Linux process priority, so the GUI appears to have lag at times, especially if something else has priority over the GUI.
Personally, I feel it was done this way for many reasons, to include helping with battery life on a Linux based system. On my Note 2, I feel there is lag where there should not be, but it does not bother me like it may others. If you have a iPhagot standing next to you, they will always point it out. We are running quad core processors that should not have lag as the power is there, however, because of the priority of the GUI being lower than many other Android system services, we see it here and there.
As far as this program... I believe it is doing some CPU governor tweaking, possibly even freezing programs on sleep. I have seen some programs that trim what the vm's can use for memory as well, so I wonder if this could be part of it. Could simply be disabling certain GUI functions which allows the GUI to appear faster. There are tricks in this forum that show you how to disable some lockscreen functions which allows wake time to be almost zero, but I like the lockscreen functions, so I can deal with the sub second lag... who cares really you know?
Tutungzone said:
I have read a lot on the lag seen in Android as compared to something like iOS specifically. There is lag and there will always be more lag seen in Android as apposed to iOS, due to how the OS was designed, and priorities of certain system functions. iOS gives full priority over any other process to the GUI functionality, which gives iOS a major smooth GUI (so what right??). Android gives priority to other processes, and the GUI falls near the end, I don't think it even gives a priority other than the standard Linux process priority, so the GUI appears to have lag at times, especially if something else has priority over the GUI.
Personally, I feel it was done this way for many reasons, to include helping with battery life on a Linux based system. On my Note 2, I feel there is lag where there should not be, but it does not bother me like it may others. If you have a iPhagot standing next to you, they will always point it out. We are running quad core processors that should not have lag as the power is there, however, because of the priority of the GUI being lower than many other Android system services, we see it here and there.
As far as this program... I believe it is doing some CPU governor tweaking, possibly even freezing programs on sleep. I have seen some programs that trim what the vm's can use for memory as well, so I wonder if this could be part of it. Could simply be disabling certain GUI functions which allows the GUI to appear faster. There are tricks in this forum that show you how to disable some lockscreen functions which allows wake time to be almost zero, but I like the lockscreen functions, so I can deal with the sub second lag... who cares really you know?
Click to expand...
Click to collapse
This is all incorrect tripe.
Then would you care to share your infinite wisdom? I fail to see a problem with his logic, but if there is I'd love to hear the real explanation
Sent from my SPH-L900 using xda premium
Nicgraner said:
Then would you care to share your infinite wisdom? I fail to see a problem with his logic, but if there is I'd love to hear the real explanation
Sent from my SPH-L900 using xda premium
Click to expand...
Click to collapse
while the gui priority lag theory is true, this is not what lag free is doing..
If you download the app you see that it works with fstrim. Some sort of memory trimming utility that helps the os make faster decisions cause it trims the fat.
im not sure all the technical details but when you download it it gives you a brief description.
-Wizzle
I think any lag that anyone experiences is mostly caused by tw launcher. I use nova and have all settings set to faster than light. I have zero lag. I can max out my cpu and force lag but for the most part it is non existent.
Sent from my SPH-L900 using xda app-developers app
i have a feeling this phone is starting to show its age. it seems whenever i install more than 100 apps on this phone it just becomes laggy as hell. to the point where right now the keyboard doesn't even open until 10 seconds later and phone constantly make weird noises when using tune in radio or youtube. the phone is also so slow that it can't even run temple run 2 or any of the games that came out recently. im using xylon rom with trinity kernel for those wondering. i honestly cannot use this phone anymore without having to do a factory reset every month just to stop the lag.
this could be a sign that its time to get a new phone but for now is there anyway to improve performance at all? i already am using the fastest trinity kernel and i have tried multiple roms and all of them seems to lag after hitting 100 apps mark which is ridiculous.
Have you made sure that the phone is not running out of memory as that is what usually causes the slow problems...I too have a 100+ apps and little or no lag. Try a different kernel and Rom maybe u could also tweak the processor speeds and stuff to get your desired performance...
If I helped hit thx
«««««««CYANOGENMOD 10.1 and FRANCO KERNEL»»»»»»»»»
Flash stock factory ROM and do a full wipe.
If you want later then flash custom ROM which is "STABLE".
Then make sure you have enough free memory on your Nexus's internal memory to avoid the lags.
You actually can't improve your Nexus's performance any other way, tweaks speed up very much..
I have over 60 apps installed (usually apps that I need) and some games..
I have 1.4 GB free memory on My Nexus and I use some cleaner apps to get more free space and I don't have any lags..
I use stock ROM that I've modified and stock default kernel..
The hardware slows primarily because of software (apps). Once the hardware fails, it fails.
Check and reign in the number and frequency of apps that sync, update and or check in.
Are you syncing an email client and or keeping them on the device rather than say the Exchange server?
Sent from my Galaxy Nexus using xda premium
kudoboi said:
i have a feeling this phone is starting to show its age. it seems whenever i install more than 100 apps on this phone it just becomes laggy as hell. to the point where right now the keyboard doesn't even open until 10 seconds later and phone constantly make weird noises when using tune in radio or youtube. the phone is also so slow that it can't even run temple run 2 or any of the games that came out recently. im using xylon rom with trinity kernel for those wondering. i honestly cannot use this phone anymore without having to do a factory reset every month just to stop the lag.
this could be a sign that its time to get a new phone but for now is there anyway to improve performance at all? i already am using the fastest trinity kernel and i have tried multiple roms and all of them seems to lag after hitting 100 apps mark which is ridiculous.
Click to expand...
Click to collapse
I have 276 apps on my Nexus and (perceived) performance is better than ever using XENON HD Stable-4.0 and the Franco kernel r364. For the latest update of the ROM, I decided to risk a dirty flash. I seem to have gotten away with it. Performance "feels" excellent, whatever that is worth. My last factory reset was about 2 months ago.
The ROM and kernel have a variety of performance tweaks. I wish there was a way to benchmark performance in a controlled fashion. I hate feeling and perception in the performance department.
On the new ROM, WiFI performance is now solidly pegged at my account's limit of 30 MBs. It was all over the map before, although I realize that many factors affect the Speed Test app.
The "seeder" app helped a lot for my device in reducing lag. The overall community is sharply divided about the effectiveness of the seeder: YMMV. Its worth trying, though. I've been using it for about 6 weeks. Other than the Google Play Store updates, I don't have lag any more. Before the seeder, I felt like you -- the phone was almost unusable.
Regarding the device feeling dated, this ROM supports the expanded desktop and the pie. Wow, the phone feels new again. No kidding.
smtom said:
The hardware slows primarily because of software (apps). Once the hardware fails, it fails.
Check and reign in the number and frequency of apps that sync, update and or check in.
Are you syncing an email client and or keeping them on the device rather than say the Exchange server?
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
I also observed that the apps that run sync/update/check in were slowing down the phone. Check for apps that have daemons associated with them. Decide whether its worth having.