flounder: change use lz4 for zram

- Change zram compression algo to lz4
- Set max number of streams to 2
- Move page cluster initialization to init section

Bug: 24810447
Change-Id: I128785b25520b6f7412473ebec3c87c234dbb6fa
diff --git a/init.flounder.rc b/init.flounder.rc
index 8957d40..7caff28 100644
--- a/init.flounder.rc
+++ b/init.flounder.rc
@@ -11,15 +11,18 @@
     symlink /sdcard /mnt/sdcard
     symlink /sdcard /storage/sdcard0
 
+    write /sys/block/zram0/comp_algorithm lz4
+    write /sys/block/zram0/max_comp_streams 2
+
+    # Swap in only 1 page at a time
+    write /proc/sys/vm/page-cluster 0
+
 on post-fs
     write /sys/power/gpu_power_on 1
     write /sys/module/input_cfboost/parameters/gpu_wakeup 1
     # Turn on swap
     swapon_all /fstab.flounder
 
-    # Swap in only 1 page at a time
-    write /proc/sys/vm/page-cluster 0
-
 on post-fs-data
     # Now that are booted all the way and out of mount panics, ensure that we panic on later errors.
     # This is a hack to work around the fact that we can't recover from all errors that would lead to a panic