Jump to content

Speed up Android with minfree tweak


Guest nferro

Recommended Posts

After reading this thread on XDA, I decided to tweak the minfree settings on my Liquid.

Minfree is part of the Kernel (present on both Cupcake and Eclair) and there is no need to install anything, you just have to change the default settings. For more details please read the thread on XDA.

I've tried the aggressive settings posted by androcheck, but I would always lose my connection with ADB after a few minutes, I then tried other settings and I've been using them since yesterday. If you want try it, here's what you have to do:

adb shell

echo "1536,2048,4096,5120,8192,10240" > /sys/module/lowmemorykiller/parameters/minfree

This will not be permanent, you'll be back to the default settings when you reboot your phone.

If you want it to be permanent you can insert the "echo" line at the end of "/system/etc/init.d/99complete".

I haven't tried to try much different values, but with theses settings my Liquid seems faster and more responsive. As for battery life I can't tell you if there is any improvement, since I've been using a lot of GPS and WiFi today.

Link to comment
Share on other sites

so the outcome was good, thats great.... I have looked into the 2.1 kernel and i have been getting lucky compiling one, do you know if its possible to set this by default?

Link to comment
Share on other sites

I think it's better to update the default settings on a boot script. This way is very easy to recover if we set too aggressive settings.

But someone on XDA talked about were the settings are in source, they said it was in two places but I don't remember wich.

Link to comment
Share on other sites

here is another little speed tweak:

you must have root!

cat /proc/cpuinfo (use this to see cpu speed)

adb shell

echo "performance" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

cat /proc/cpuinfo (now check it again and now idling is a 5XX)

If you want to switch back:

adb shell

echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

you can add this to first post if you need to :(

Edited by Angio
Link to comment
Share on other sites

Guest drigerott
here is another little speed tweak:

you must have root!

cat /proc/cpuinfo (use this to see cpu speed)

adb shell

echo "performance" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

cat /proc/cpuinfo (now check it again and now idling is a 5XX)

If you want to switch back:

adb shell

echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

you can add this to first post if you need to :(

that is what setcpu do :(

Link to comment
Share on other sites

here is another little speed tweak:

you must have root!

cat /proc/cpuinfo (use this to see cpu speed)

adb shell

echo "performance" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

cat /proc/cpuinfo (now check it again and now idling is a 5XX)

If you want to switch back:

adb shell

echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

you can add this to first post if you need to :(

Mine is already set to "performance". This is because I've used the app "SetCPU" to change it.

How to check your settings before trying to change it: (not intended to you Angio :()

adb shell

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

Edit: waaaay to slow ^^

Edited by toxen
Link to comment
Share on other sites

Mine is already set to "performance". This is because I've used the app "SetCPU" to change it.

How to check your settings before trying to change it: (not intended to you Angio :()

adb shell

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

:(

Link to comment
Share on other sites

Guest eViL D:

Ok, after having tested for about 10 minutes, I can say that this does indeed work.

using these settings:

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

my memory stays around 40-60 free, usually in the 40's

15360 is 60mb

With out the changes, task killer is always showing many running processes and usually 30mb free.

It still doesn't seem to close processes like, Browser, Maps & settings. So, this is a nice find. I think you should still have a task manager to close those things tho.

Edited by eViL D:
Link to comment
Share on other sites

Ok, after having tested for about 10 minutes, I can say that this does indeed work.

using these settings:

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

my memory stays around 40-60 free, usually in the 40's

15360 is 60mb

With out the changes, task killer is always showing many running processes and usually 30mb free.

It still doesn't seem to close processes like, Browser, Maps & settings.

and when reboots is cancels out, we need to implement this in the boot, I have compiled a 2.1 boot.img :( and if i can set this by default it will be a grand win for US :(

Link to comment
Share on other sites

and when reboots is cancels out, we need to implement this in the boot, I have compiled a 2.1 boot.img :( and if i can set this by default it will be a grand win for US :(

But you can just put it in /system/etc/init.d/99complete can't you?

Link to comment
Share on other sites

If you want it to be permanent you can insert the "echo" line at the end of "/system/etc/init.d/99complete".

Do not seems to work on LCR111

Any other script in the LCR111 that may work?

Seems like the /sys/module/lowmemorykiller/parameters/minfree file isn't created yet when /system/etc/init.d/99complete runs.

Edited by xfs
Link to comment
Share on other sites

meaning you got the sources of liquid eclair kernel??? :( :( :(

You can change that in the init.rc by unpack the boot.img and edit the ramdisk, then repack it. So it's not "compiling" but just editing a file.

Defaut in init.rc is : 1536,2048,4096,5120,5632,6144.

Already play a bit with those settings, and didn't notice improvement.

Edited by vache
Link to comment
Share on other sites

Guest eViL D:
Why not use a script in gscript

or maybe add to some script that runs on boot

I have created a gscript.

it's settings are

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

lowmemkiller.zip

Edited by eViL D:
Link to comment
Share on other sites

Guest eViL D:

Hrmm..... I think there is one caveat. I now believe you WILL NEED a task manager to initially close open apps. After that, processes that randomly pop up are squashed pretty quick.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.