Original Post | CWM
Guys check this out
Best result on Android 4.+
Description
Guys check this out
Best result on Android 4.+
Description
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. 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. |
by wmaster4g via xda-developers http://forum.xda-developers.com/showthread.php?t=2073382&goto=newpost http://ifttt.com/images/no_image_card.png http://forum.xda-developers.com/
[TWEAK][APK] Seeder entropy generator to provide significant lag reduction
Reviewed by News Tracker
on
December 30, 2012
Rating:
No comments: