[OpenWrt-Devel] [PATCH] procd: increase memory allocated for tmpfs on zram

Nathan Hintz nlhintz at hotmail.com
Fri Jan 23 22:36:47 EST 2015


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 at hotmail.com>
---
 initd/zram.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/initd/zram.c b/initd/zram.c
index 4dc1d2e..49480af 100644
--- a/initd/zram.c
+++ b/initd/zram.c
@@ -44,7 +44,7 @@ proc_meminfo(void)
 	fclose(fp);
 
 	if (val > KB(32))
-		val = KB(16);
+		val = KB(32);
 
 	return val;
 }
-- 
1.9.3
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list