[Droid Eris General] aehs29:
If you feel like your eris does not run as smooth as before, this might help you.

I finally found out why my eris feel slower now, it is because it doesnt have enough ram, new roms requiere mor ram and lets be honest the eris was made for android 1.5 not for 2.3 so heres the thing, with all these new roms at boot the eris has at least 85-90% of ram memory occupied, which is bad, really bad.

Well first of all a little intro:

Apps are classified in these different "kinds" by android

- FOREGROUND_APP: App currently on screen and running.

- VISIBLE_APP: App running but in the background

- SECONDARY_SERVER: Services

- HIDDEN_APP: App running but hidden in case it is needed for something else at some point

- CONTENT_PROVIDER: This is apps that provide data (content) to the system.

- EMPTY_APP: Apps that you have opened, but are done with them.

Now that you know that, there are 2 ways of getting a faster eris, please read both ways since one is needed for the other one.

1 - For people who just want the eris to get faster and dont care about opening lots of apps

Heres what you need:

- Droid Eris Rooted

- Terminal Emulator

The android system itself has a very nice way to run things, sadly, the default parameters are not enough for us anymore.

The parameter im talking about is the "minfree" which basically specifies the minimum ram the OS should have.

This is better than task killer apps, since it uses Android OS kernel to get mroe memory and not a third party application.

Open up your terminal emulator and type this:

su

cat /sys/module/lowmemorykiller/parameters/minfree

that should show you what your parameters are right now, which should be something like this:

1536,2048,4096,5120,5632,6144

These numbers are pages. To Android, a page is equal to 4 kb. So in the above example, the EMPTY_APP settings (last in the list -- 6144) is 24 MB. 6144 pages = 24576 kb = 24 MB. The formula would be: ((6144 * 4)/ 1024):eek:

Ok so what we need is to change at least that parameter (feel free to tweak the others but basically this is the more useful), we should pout in there something like at least 50 MB, so to change it type this in your terminal:

su

echo "1536,2048,4096,5120,15360,12800" > /sys/module/lowmemorykiller/parameters/minfree

and that should give you a faster eris, or at least a smoother one, you can tweak the other parameters aswell but I would not recommend it so much, because you are messing with the kernel too much, but hey! its your eris you can do whatever the hell you want with it, you have to do this everytime you reboot by the way.:cool:

2 - For people who want a faster eris but also want to open lots of apps at the same time

Well to you guys i do recomend tweaking all the parameters, because will have more memory, the difference is that whats been working for me is making a Linux Swap partition on my SD card, as a side note i did try apps like swapper which make a swap file but they didnt work so well from my point of view.

It is easy to do so in a Linux OS with this command:

mkswap /dev/mmcblk0 512

where:

mkswap = command

/dev/mmcblk0 = your device for the linux OS

512 = Swap partition size

If you feel like this is too much for you I wuold recommend doing this from gparted which is a partition manager for Linux and it has a GUI, you can download a live cd of parted magic and open it from there in case you dont have linux.

You can also do this from recovery, i dont konw about clockworks but there is an option to partition your sd card in Amon-Ra's recovery and there you just enter the size for each partition, i do not recommend this because i couldnt read my sd card in my computer after that, but it could have been something else, plus i fixed it formatting it again.

Ok so lets say you have your sd card with a swap partition, what you have to do now is "tell" android that it can use this space as RAM, this is done by the following command

first get root access:

su

then

swapon /dev/block/mmcblk0

and now well tweak another parameter which "tells" android how often it should use swap instead of real RAM, you can do this like this:

su (only if you dont have root access yet)

sysctl -w vm.swapiness=40

you can change 40 for a different number but by trial and error thats the number thats given me best results.

Remember!: You have to do this everytime you reboot!

Hope this is helpful!

Im sorry if it is not explained so well , but its 4 am and I really need to go to bed, lol, if you have doubts just ask!