[G1 Android Development] worldestroyer:
disksize

Just thought i'd mention that setting cc_disksize when you have a cc_backingswap_en=1 & cc_backingswap=/dev/block/mmcblk0p3 setup

makes absolutely no difference in how compcache runs. Seems to max out your swap partition.

The userinit.sh -s

=== CompCache status ===

CompCache version 0.6+

Compcache enabled

CompCache: MemLimit 20480(system) 20480(user)

CompCache: BackingSwap /dev/block/mmcblk0p3(system) /dev/block/mmcblk0p3(user)

CompCache: cc_swappiness - 28(system) 28(user)

=== CompCache status output ===

BackingSwap:	/dev/block/mmcblk0p3

DiskSize:	49001 kB

MemLimit:	20480 kB

NumReads:	138

NumWrites:	684

FailedReads:	0

FailedWrites:	0

InvalidIO:	0

NotifyFree:	0

PagesDiscard:	0

ZeroPages:	55

GoodCompress:	100 %

NoCompress:	0 %

PagesStored:	521

PagesUsed:	107

OrigDataSize:	2084 kB

ComprDataSize:	407 kB

MemUsedTotal:	428 kB

BDevNumReads:	10

BDevNumWrites:	108

=== VM status ===

Set VM: page-cluster - 0(system) 0(user)

Set VM: laptop_mode - 0(system) 0(user)

Set VM: dirty_expire_centisecs - 3000(system) 3000(user)

Set VM: dirty_writeback_centisecs - 500(system) 500(user)

Set VM: dirty_background_ratio - 5(system) 5(user)

Set VM: dirty_ratio - 10(system) 10(user)

=== CPU status ===

Set CPU: scaling_min_freq - 192000(system) 192000(user)

Set CPU: scaling_max_freq - 528000(system) 528000(user)

Set CPU: sampling_rate - 2000000(system) 2000000(user)

Set CPU: powersave_bias - 0(system) 0(user)

Set CPU: up_threshold - 35(system) 35(user)

My current user.conf after checking out all the major ones floating around.

# General parameters
general{
apps2sd=0	# this is useless here, require a modified a2sd script
media2sd=0	# moves the medias to sd if /system/sd/media exists
}

#compcache related parameters
compcache{
compcache_en=1	# enable(1) or disable(0) compcache
cc_disksize=0	# Ram swap disksize - any number between 1 to 95 should work; default is 1/4 of the RAM (24)
cc_memlimit=20	# Limit the memory usage for backing swap (cc .5x known issue-defaults to 15% of total RAM)
cc_backingswap_en=1	# enable(1) or disable(0) backing swap
cc_backingswap=/dev/block/mmcblk0p3 # pointing to the backingswap partition device, swap
cc_swappiness=28 # default 60
}

#create swap file for compcache or linux swap
swap_file{
swap_file_en=0	# set to 1 to create swap file
# set to 0 to del the swap file
linux_swap_file_size=32	# swap file size in MB
linux_swap_file=/system/sd/swap.file	# pointing to the swap file location ( must be /system/sd/)
}

#Linux swap parameters
#
# linux swap can only be enabled if cc_backingswap_en is set to "0"
#
linux_swap{
linux_swap_en=0	# enable(1) or disable(0) linux swap
linux_swap_partition=/dev/block/mmcblk0p3 # swap partition device
swappiness=30 # default 60
}

#virtual memory
sys_vm{
sys_vm_en=1	# enable(1) or disable(0) virtual memory configurations
page_cluster=0	# default 3, (0 since CM3.9.6+)
laptop_mode=0	# default 0
dirty_expire_centisecs=3000	# default 3000
dirty_writeback_centisecs=500	# default 500
dirty_background_ratio=5	# default 5
dirty_ratio=10	# default 10
}

#cpu clock
proc_cpu{
proc_cpu_en=1	# enable(1) or disable(0) user cpu configurations
# freqency options
# 19200
# 122880
# 128000
# 245760
# 384000
# 528000
scaling_min_freq=192000	# default 245760
scaling_max_freq=528000	# default 528000
sampling_rate=2000000	# default 2000000 depending on kernel version
powersave_bias=0	# default 0, (200 since CM3.9.6+ )
up_threshold=35	# default 40, percent cpu usage before going up a speed step
}