[TouchPad Development] HP_TOUCHPAD:
Here is a test I did today and it may help to understand why the slowing down after been use for a while.

My suggestion will be to have the least background process running to the bare minimum.

Android does a great job running one app at a time with minimum resources, but what it fails is in the background process that run to collect data.

The Android OS is free, but the trade off is data mining and that is how the ecosystem is alive from all the data that collects from users and so does the apps

Fresh install ( using a 16gb model )

Using ToolBox to:

Do a complete data reset.

Then resize Android

media 1024 mb

cache 200

data 11272

system 2048

Installing using TWRP in the following order, no reboots.

ev_tenderloin-7.1.2-nightly-2017.11.03.zip

open_gapps-arm-7.1-super-20190116.zip (980 MB)

SR5-SuperSU-v2.82-SR5-20171001224502.zip

After installation this is the free space available:

tenderloin:/ # df -h
Filesystem Size Used Avail Use% Mounted on
/dev/block/mmcblk0p13 32M 25M 7.2M 78% /boot
/dev/mapper/store-cm--system 1.9G 1.4G 497M 76% /system
/dev/mapper/store-cm--data 11G 1.0G 10G 10% /data
/dev/mapper/store-cm--cache 194M 5.6M 188M 3% /cache
/dev/block/vold/public:254_6 0.9G 13M 0.9G 2% /mnt/media_rw/220D-A0C1

I recompile the SKZ kernel for Evervolv to disable all optimization background process.

Disable CPU Hotplug ( IntelliPlug ) ( AutoSMP )

Disable Kernel Samepage Merging

Disable Low Memory Killer

The optimize settings are apply in the Ramdisk, no need to install any app in Android to set settings. The toolbox is disable.

CPU speed 1782 max 192 min interactive governor sync Threshold 1782

CPU boost disable

Input Interval disable

Input boost frequency core 1 and core 2 disable

GPU 2d 266

GPU 320

I/O Sheduler bfq read-ahead 4096kB ( as reported from LVM )

Virtual memory ( all disable from fstab ) no Z-RAM

The super open google apps are installed, but no user ID was created.

Background process limit are set to ( No background processes ) automatically in the ramdisk, and is persistence at boot.

The following data is provided by the command: (top -m 10) to capture live CPU process and it fluctuate.

What is posted is one data report at a time.

System with the following apps open:

Chrome Browser with 6 tabs open:
youtube.com amazon.com espn.com ebay.com yahoo.com en.m.wikipedia.org

Youtube app pause in the background.

Currently youtube.com video playing on Chrome:

User 50%, System 13%, IOW 7%, IRQ 0%
User 270 + Nice 30 + Sys 78 + Idle 175 + IOW 43 + IRQ 0 + SIRQ 0 = 596

PID USER PR NI CPU% S #THR VSS RSS PCY Name
9683 u0_i31 10 -10 25% S 25 811276K 107284K fg com.android.chrome:sandboxed_process6
9059 u0_a56 10 -10 7% S 44 788344K 101632K fg com.android.chrome
9153 u0_a56 10 -10 6% S 19 737156K 57880K fg com.android.chrome:privileged_process0
189 system -3 -20 6% S 15 77984K 7584K fg /system/bin/surfaceflinger
499 system 18 -2 4% S 101 1207044K 83488K fg system_server
888 u0_a24 20 0 4% S 47 793736K 83836K fg com.google.android.gms.persistent
9927 root 20 0 1% R 1 4564K 1548K fg top
9946 u0_a24 20 0 1% S 14 679580K 38004K fg com.google.process.gapps
196 audioser 20 0 0% S 8 28212K 3908K fg /system/bin/audioserver
22759 root 20 0 0% S 1 0K 0K fg kworker/u:1

youtube app currently playing
Chrome is in the background

User 20%, System 11%, IOW 9%, IRQ 0%
User 121 + Nice 7 + Sys 71 + Idle 352 + IOW 58 + IRQ 0 + SIRQ 5 = 614

PID USER PR NI CPU% S #THR VSS RSS PCY Name
7804 u0_a94 10 -10 15% S 104 1383624K 137812K fg com.google.android.youtube
189 system -3 -20 5% S 15 77772K 7596K fg /system/bin/surfaceflinger
200 mediacod 20 0 5% S 10 80488K 7280K fg media.codec
196 audioser 20 0 0% S 8 28212K 3968K fg /system/bin/audioserver
10594 root 20 0 0% R 1 4564K 1556K fg top
150 root -2 0 0% S 1 0K 0K fg ksdioirqd/mmc1
499 system 18 -2 0% S 101 1204128K 83308K fg system_server
631 media_rw 20 0 0% S 4 7616K 2148K fg /system/bin/sdcard
22 root RT 0 0% S 1 0K 0K fg irq/199-msmdata
22759 root 20 0 0% S 1 0K 0K fg kworker/u:1

All app are current version as of today:

Firefox, Opera, Chrome browser open (pause in the background)

youtube app playing video in full screen:

User 74%, System 22%, IOW 0%, IRQ 0%
User 363 + Nice 98 + Sys 140 + Idle 17 + IOW 3 + IRQ 0 + SIRQ 0 = 621

PID USER PR NI CPU% S #THR VSS RSS PCY Name
28801 u0_a94 10 -10 14% S 103 1382704K 123732K fg com.google.android.youtube
499 system 18 -2 9% S 103 1206232K 71416K fg system_server
888 u0_a24 20 0 6% S 48 795312K 64404K fg com.google.android.gms.persistent
189 system -3 -20 5% R 15 77772K 5732K fg /system/bin/surfaceflinger
200 mediacod 20 0 4% S 12 86648K 6784K fg media.codec
20557 u0_a24 20 0 1% S 16 665148K 23592K fg com.google.process.gapps
10334 root 20 0 1% R 1 4564K 1548K fg top
178 root 20 0 0% S 5 1024544K 19908K fg zygote
196 audioser 20 0 0% S 8 28724K 3228K fg /system/bin/audioserver
188 system 20 0 0% S 1 4784K 968K fg /system/bin/servicemanager

No apps open system IDLE

User 0%, System 1%, IOW 1%, IRQ 0%
User 4 + Nice 0 + Sys 7 + Idle 574 + IOW 8 + IRQ 0 + SIRQ 0 = 593

PID USER PR NI CPU% S #THR VSS RSS PCY Name
8112 u0_a34 10 -10 2% S 48 1265412K 105812K fg com.google.android.googlequicksearchbox:search
7423 root 20 0 0% R 1 4564K 1552K fg top
499 system 18 -2 0% S 103 1202808K 71968K fg system_server
196 audioser 20 0 0% S 9 29764K 3608K fg /system/bin/audioserver
9 root -2 0 0% S 1 0K 0K fg rcuc/0
10 root RT 0 0% S 1 0K 0K fg rcun/0
11 root -2 0 0% S 1 0K 0K fg rcub/0
12 root RT 0 0% S 1 0K 0K fg migration/1
15 root -2 0 0% S 1 0K 0K fg rcuc/1
16 root 20 0 0% S 1 0K 0K fg ksoftirqd/1

System in Deep Sleep mode (power pressed)

User 0%, System 0%, IOW 0%, IRQ 0%
User 3 + Nice 0 + Sys 2 + Idle 605 + IOW 0 + IRQ 0 + SIRQ 0 = 610

PID USER PR NI CPU% S #THR VSS RSS PCY Name
7423 root 20 0 0% R 1 4564K 1556K fg top
2 root -2 0 0% S 1 0K 0K fg kthreadd
3 root 20 0 0% S 1 0K 0K fg ksoftirqd/0
8 root RT 0 0% S 1 0K 0K fg migration/0
9 root -2 0 0% S 1 0K 0K fg rcuc/0
10 root RT 0 0% S 1 0K 0K fg rcun/0
11 root -2 0 0% S 1 0K 0K fg rcub/0
12 root RT 0 0% S 1 0K 0K fg migration/1
15 root -2 0 0% S 1 0K 0K fg rcuc/1
16 root 20 0 0% S 1 0K 0K fg ksoftirqd/1