[G1 Android Development] kchau:
im confused:

sh /system/sd/userinit.sh -s

=== user.conf ===

*** general ***

apps2sd=0

media2sd=1

*** CompCache ***

compcache_en=1

cc_memlimit=0

cc_disksize=24

cc_backingswap_en=0

cc_backingswap=/dev/block/mmcblk0p3

swappiness=30

*** Swap File ***

swap_file_en=0

linux_swap_file_size=32

linux_swap_file=/system/sd/swap.file

*** Linux Swap ***

linux_swap_en=1

linux_swap_partition=/dev/block/mmcblk0p3

*** VM ***

sys_vm_en=0

page_cluster=0

laptop_mode=0

dirty_expire_centisecs=3000

dirty_writeback_centisecs=500

dirty_background_ratio=5

dirty_ratio=10

*** CPU ***

proc_cpu_en=0

scaling_min_freq=245760

scaling_max_freq=528000

sampling_rate=2000000

powersave_bias=200

up_threshold=40

=== CompCache status ===

CompCache version 0.6+

!!!ERROR Compcache disabled

CompCache: DiskSize (system) 24576(user)

!!! Unable to set compcache cc_swappiness to user specific

Current system value is "60"

=== CompCache status output ===

Failed to open /dev/block/ramzswap0: No such file or direct

=== Linux Swap status ===

!!! Linux SWAP error: Linux swap is not enabled

ERROR!!! Set Linux Swap: swappiness - 60(system) 30(user)

find: /system/app/*.odex: No such file or directory

find: /data/app-private/*.odex: No such file or directory

heres my user.conf:

# General parameters
general{
apps2sd=0	# this is useless here, require a modified a2sd script
CONF_FILE="/system/sd/user.conf"	#location of user.conf
media2sd=1	# moves the medias to sd if /system/sd/media exists
permission_fix=0 # perform permission fix at start up (this parameter sets to 0 after script is executed)
odex_auto=1	# perform auto create or del odex for applications installed or removed within 3 days
odex_apk=0	# creates odex for apk that does not have odex yet (this parameter sets to 0 after script is executed)
odex_all=0	# creates odexes for all apks (this parameter sets to 0 after script is executed)
}

#compcache related parameters
compcache{
compcache_en=1	# enable(1) or disable(0) compcache
cc_disksize=24	# Ram swap disksize - any number between 1 to 95 should work; default is 1/4 of the RAM (24)
cc_memlimit=0	# Limit the memory usage for backing swap (cc .5x known issue-defaults to 15% of total RAM)
cc_backingswap_en=0	# enable(1) or disable(0) backing swap
cc_backingswap=/dev/block/mmcblk0p3 # pointing to the backingswap partition device, swap
cc_swappiness=30 # 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=1	# 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=0	# 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=0	# enable(1) or disable(0) user cpu configurations
# freqency options
# 19200
# 122880
# 128000
# 245760
# 384000
# 528000
scaling_min_freq=245760	# default 245760
scaling_max_freq=528000	# default 528000
sampling_rate=2000000	# default 2000000 depending on kernel version
powersave_bias=200	# default 0, (200 since CM3.9.6+ )
up_threshold=40	# default 40, percent cpu usage before going up a speed step
}

# custom shell commands, these commands run last
custom_shells{
#echo "Hello!!!" # example
#echo "You can create your own cmmands here" # example
}

i have my a2sd disabled:

#!/system/bin/sh
#
# Apps2SD using symlinks and bind mounts
# shade@chemlab.org (cyanogen)
#

echo "--- Welcome to Android/CyanogenMod!";

sysctl -p

# execute any postinstall script then kill it
if [ -e /data/firstboot.sh ];
then
echo "--- Executing firstboot.sh";
/system/bin/sh /data/firstboot.sh;
rm -f /data/firstboot.sh;
fi;

if [ -e /dev/block/mmcblk0p2 ];
then
echo "--- Checking ext filesystems";

# fsck the sdcard filesystem first
e2fsck -y /dev/block/mmcblk0p2;

# set property with exit code in case an error occurs
setprop cm.e2fsck.errors $?;

# mount and set perms
busybox mount -o noatime,nodiratime -t auto /dev/block/mmcblk0p2 /system/sd;
busybox chown 1000:1000 /system/sd;
busybox chmod 771 /system/sd;

fi;

sync;

setprop cm.filesystem.ready 1;

partitions are as follows:

1 fat32

2 ext3 64mb

3 linux-swap 64mb