[TouchPad Development] HP_TOUCHPAD:
No need to follow this, Flash Files available here to do it automatically.

https://xdaforums.com/hp-touchpad/general/hp-touchpad-optimize-android-swap-t3901773?nocache=1

The following settings are to make any Android ROM ever created to be maximized to its full potential.

In specific is for Dirty Unicorns and the Skz Costume Kernel.

Attached is the boot uImage and a video in action.

1. Step one: With a pre install ROM ( skip if doing a fresh installation )

https://xdaforums.com/hp-touchpad/general/how-to-backup-restore-using-twrp-copy-t3892047

2. Step Two: Creating the Swap Partition no need to modify the Kernel or Ramdisk, I have attached the boot uImage.

https://xdaforums.com/hp-touchpad/general/how-to-create-swap-partition-size-t3892060

Detail of what the settings are in the attached boot uImage. Nothing to do here, is only to show what the settings are.

Changes to Kernel and Ramdisk.

Changes to the Skz_Kernel, it applies to all Kernels if the module is installed.
Disable current modules.

# CONFIG_HOTPLUG is not set

# CONFIG_INTELLI_PLUG is not set

# CONFIG_ASMP is not set
# CONFIG_HOTPLUG_CPU is not set

# CONFIG_KSM is not set
# CONFIG_UKSM is not set

# CONFIG_ANDROID_LOW_MEMORY_KILLER is not set
# CONFIG_ANDROID_LOW_MEMORY_KILLER_AUTODETECT_OOM_ADJ_VALUES is not set

Changes to the Ramdisk files ( init.tenderloin.power.rc and init.tenderloin.rc )
init.tenderloin.power.rc
# CPU Scaling
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 192000
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq 192000
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq 1728000
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq 1728000

# Configure Performance Governor
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "performance"
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor "performance"

# CPU boost
write /sys/module/cpu_boost/parameters/boost_ms 0
write /sys/module/cpu_boost/parameters/input_boost_ms 0
write /sys/module/cpu_boost/parameters/sync_threshold 1728000
# write /sys/module/cpu_boost/parameters/input_boost_freq 1728000

# GPU boost
write /sys/devices/platform/kgsl-2d0.0/kgsl/kgsl-2d0/max_gpuclk "266667000"
write /sys/class/kgsl/kgsl-3d0/max_gpuclk "320000000"

# KGSL trustzone governor
write /sys/class/kgsl/kgsl-3d0/pwrscale/trustzone/governor ondemand

on property:sys.boot_completed=1
# Configure Interactive
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "interactive"
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor "interactive"

# CPU Workqueues
write /sys/module/workqueue/parameters/power_efficient "N"

# Entropy
write /proc/sys/kernel/random/write_wakeup_threshold 4096
write /proc/sys/kernel/random/read_wakeup_threshold 4096

# I/O
write /sys/block/mmcblk0/queue/rq_affinity "0"
write /sys/block/mmcblk0/queue/scheduler "bfq"

init.tenderloin.rc
# Swap Settings
write /proc/sys/vm/block_dump 0
write /proc/sys/vm/dirty_background_bytes 0
write /proc/sys/vm/dirty_background_ratio 80
write /proc/sys/vm/dirty_bytes 0
write /proc/sys/vm/dirty_expire_centisecs 60000
write /proc/sys/vm/dirty_ratio 90
write /proc/sys/vm/dirty_writeback_centisecs 60000
write /proc/sys/vm/drop_caches 0
write /proc/sys/vm/extra_free_kbytes 9216
write /proc/sys/vm/highmem_is_dirtyable 0
write /proc/sys/vm/laptop_mode 0
write /proc/sys/vm/legacy_va_layout 0
# write /proc/sys/vm/lowmem_reserve_ratio 32	32
write /proc/sys/vm/max_map_count 65530
write /proc/sys/vm/min_free_kbytes 10000
write /proc/sys/vm/min_free_order_shift 4
write /proc/sys/vm/mmap_min_addr 32768
write /proc/sys/vm/mmap_rnd_bits 16
write /proc/sys/vm/nr_pdflush_threads 0
write /proc/sys/vm/oom_dump_tasks 1
write /proc/sys/vm/oom_kill_allocating_task 0
write /proc/sys/vm/overcommit_memory 1
write /proc/sys/vm/overcommit_ratio 50
write /proc/sys/vm/page-cluster 0
write /proc/sys/vm/panic_on_oom 0
write /proc/sys/vm/percpu_pagelist_fraction 0
write /proc/sys/vm/scan_unevictable_pages 0
write /proc/sys/vm/stat_interval 1
write /proc/sys/vm/swappiness 60
write /proc/sys/vm/vfs_cache_pressure 100

# Increase readahead buffers on MMC devices
write /sys/block/mmcblk0/bdi/read_ahead_kb 4096

Installing the ROM:

ROM

du_tenderloin-v12.5.3-20181116-0140-RC

Google Open apps: SUPER 966 MB

open_gapps-arm-8.1-super-20190124.zip

Super Su

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

LVM information after creating the Swap partition. ( Read the settings of the SWAP: The read ahead sectors is set to 8192, double from the other partition of 4096)

Read ahead sectors auto

- currently set to 8192

LVM Partition Detail:
/boot/usr/sbin # ./lvm.static lvdisplay
--- Logical volume ---
LV Name /dev/store/media
VG Name store
LV UUID lighHy-3wBR-A1DM-4Bu4-Vm3V-XZ3N-vU1ckv
LV Write Access read/write
LV Status available
# open 1
LV Size 1000.00 MiB
Current LE 125
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 4096
Persistent major 254
Persistent minor 6
Block device 253:6

--- Logical volume ---
LV Name /dev/store/cm-cache
VG Name store
LV UUID 2VqTHA-kvUL-61JO-sukb-9rh3-BcWs-xKh6dg
LV Write Access read/write
LV Status available
# open 1
LV Size 200.00 MiB
Current LE 25
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 4096
Persistent major 254
Persistent minor 8
Block device 253:8

--- Logical volume ---
LV Name /dev/store/cm-data
VG Name store
LV UUID nIwoKl-NL5g-eFYm-EyW3-1X0V-qfrK-UD18JT
LV Write Access read/write
LV Status available
# open 1
LV Size 10.10 GiB
Current LE 1293
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 4096
Persistent major 254
Persistent minor 9
Block device 253:9

--- Logical volume ---
LV Name /dev/store/cm-system
VG Name store
LV UUID sg46qk-P9Od-tTFc-Mm4a-TE5j-vyjd-WIwA2H
LV Write Access read/write
LV Status available
# open 0
LV Size 1.95 GiB
Current LE 250
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 4096
Persistent major 254
Persistent minor 10
Block device 253:10

--- Logical volume ---
LV Name /dev/store/swap
VG Name store
LV UUID I4WeIQ-pPUj-i2Kg-9tjE-XoSn-Etvv-RBU0Nx
LV Write Access read/write
LV Status available
# open 0
LV Size 1000.00 MiB
Current LE 125
Segments 1
Allocation contiguous
Read ahead sectors auto
- currently set to 8192
Persistent major 254
Persistent minor 0
Block device 253:0

After all is Installed:

A clean boot with all install.
root@android:/ # free -h
total used free shared buffers
Mem: 828M 804M 24M 0 13M
-/+ buffers/cache: 790M 37M
Swap: 0.9G 34M 966M
root@android:/ # df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 414M 472K 413M 1% /dev
tmpfs 414M 0 414M 0% /mnt
/dev/block/mmcblk0p13 32M 20M 12M 62% /boot
/dev/mapper/store-cm--system 1.9G 1.6G 266M 87% /system
/dev/mapper/store-cm--data 10G 1.4G 8.5G 15% /data
/dev/mapper/store-cm--cache 194M 5.5M 188M 3% /cache
/dev/fuse 10G 1.4G 8.5G 15% /mnt/runtime/default/emulated
/dev/fuse 10G 1.4G 8.5G 15% /mnt/runtime/read/emulated
/dev/fuse 10G 1.4G 8.5G 15% /mnt/runtime/write/emulated
/dev/block/vold/public:253_6 999M 13M 986M 2% /mnt/media_rw/56DB-CD19
root@android:/ # cd proc
root@android:/proc # cat swaps
Filename	Type	Size	Used	Priority
/dev/mapper/store-swap partition	1023996	34808	1
root@android:/proc #

The app used to capture the video is:

https://play.google.com/store/apps/details?id=com.hecorat.screenrecorder.free

The settings to record are:

1024x768 30 FPS with Audio

With this settings the Tablet is able to Play HD 720 video and also record at same time. If the recording is not use, the performance is even faster!

Many Thanks to the Dirty Unicorns Team ( Flintman ) for a great ROM and Shumash for the fastest Skz Kernel!