[Sony Ericsson XPERIA X10 Mini] matmutant:
usefull links and performance tricks

useful links :

[DEV]

miniCM10 debug only thread

(shakira, robyn and mimmi)

what CPU governors, and how do they work?

$find other useful link in miniCM7/9 miniFAQs ;) $

Perfomance :

recomended settings :

perf related :

CPU: keep default, but enable UnderVolting (and set on boot if you don't OverClock) (settings>performance>CPU)

RAM : to optimize RAM usage, use KSM, zram (18%, default) and allow purging of assets (settings>performance>memory managment)

I/O : keep NOOP, this is the default and the best for flash memory

other :

in settings>developer options

enable USB debugging,

debug notification,

set all animations to 0.5 (electron beam CRT animation will happen no more)

enable "kill with back button"

________________

for whose who feel the system slow and laggy, just try the SWAP ;) (SDcard class6+ recommended)

SWAP, there is two "kind" of swap : using a partition on the SDcard, or using a swap file

both are good, but some SDcard/phones react better with the one or the other​

let us start with the partition way :

it is more complicated than the file method, but as some advantages ;)

pros: once it is set up, no need to care about it anymore, the SDcard can be mounted to PC easily without latency

cons: a little complicated to set up, and once it's done, it is as complicated to revert as to set up; to change swap size, you need to repeat the process (formating and partitioning SDcard)

needs a clean install of miniCM10

:

flash JB kernel

in CWM, go to mount&storage :

then, format /system, /data and /cache (so that kernel can use the new partitions size) any data on phone memory will be lost

set up your swap:

==> go to /advanced/Partition SD Card

if you don't want to use a2sd, then choose the minimal size for ext, and the size you want for SWAP

it will FORMAT your SDcard ! any data on SDcard will be LOST

and install the rom :)

swap partition should work :)

what doesn't work is the swap info menu

to revert : format SDcard in phone settings :

it will FORMAT your SDcard ! any data on SDcard will be LOST

​

____________________

now, the swap file way

: it is really simpler than the swap partition, works great but has some drawbacks

pros: easy to set up, easy to revert, and the size can be choosen at wish at anytime (in settings>performance>memory>Swap settings)

cons: high latency when mounting SDcard to pc, it can take forever (really quicker to use CWM mount and storage capability to use the SD on the PC, than using android way)

you must perform a clean install of miniCM10 (by formating /system, /data and /cache) any data on phone memory will be lost

install the rom zip, the gapps, and boot up your phone

set it up

once your rom is ready to use,

go to settings>performance>memory>Swap settings

choose "enabled"

choose the size

allow system to get SU permissions

wait for the pop up "swap enabled"

enjoy, it is simple and can be disabled on wish​

for both :

to see if your swap works, open terminal, and type the following :

free

to see the swapiness :

__________________

some usefull lines of commands for any user wanting to know what's going on :

in terminal, just type the lines,

in ADB, add "adb" before the commands

if you want not to siplay the output in terminal, specify the path :

command > /where_you_want_your_output_to_be_stored/name_you_want_for_the_log

to know how much swap there is (total and free are what you want to know), use the following command since the way using menu is broken :

free

to know if KSM is really turned on :

cat /sys/kernel/mm/ksm/run

to know what modules are running :

lsmod

install an app from terminal :

pm install /sdcard/app1.apk

from adb :

adb pm install /home/user/app1.apk

your kernel crashed?

cat /proc/last_kmsg

ex : from adb, and stored in /home/user/last_kmsg1

adb cat /proc/last_kmsg > /home/user/last_kmsg1

an app crashed, you want to know why?

logcat

ex : from adb and stored in /home/user/myfirstlogever

adb logcat > /home/user/myfirstlogever

don't have an USB cable ?

or adb "other the air" :

connect to your home wifi network (both device and pc)

in settings/dev options/ enable adb on TCP/IP

adb connect xxx.xxx.xxx.xxx:5555

(the IP is the one displayed in the option you choose previously :)

and then, since it is connected, catch the log :

adb logcat > /home/user/myfirstlogever