procd: increase memory allocated for tmpfs on zram
authorNathan Hintz <nlhintz@hotmail.com>
Sat, 24 Jan 2015 03:36:47 +0000 (19:36 -0800)
committerJohn Crispin <blogic@openwrt.org>
Wed, 28 Jan 2015 09:46:37 +0000 (10:46 +0100)
Devices with <= 32MB of ram get half of memory allocated to zram (up to 16MB).
Devices with > 32MB of ram get just 8MB of memory allocated to zram.

Increase memory allocated to devices with > 32MB ram to 16MB.

Signed-off-by: Nathan Hintz <nlhintz@hotmail.com>
initd/zram.c

index 4dc1d2e..49480af 100644 (file)
@@ -44,7 +44,7 @@ proc_meminfo(void)
        fclose(fp);
 
        if (val > KB(32))
        fclose(fp);
 
        if (val > KB(32))
-               val = KB(16);
+               val = KB(32);
 
        return val;
 }
 
        return val;
 }