From patchwork Sat Jan 24 03:36:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Hintz X-Patchwork-Id: 432367 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 8F5911402A7 for ; Sat, 24 Jan 2015 14:37:18 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 864D028BD65; Sat, 24 Jan 2015 04:34:48 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 950622800E7 for ; Sat, 24 Jan 2015 04:34:43 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .hotmail. - helo: .blu004-omc3s1.hotmail. - helo-domain: .hotmail.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -8.5 Received: from BLU004-OMC3S1.hotmail.com (blu004-omc3s1.hotmail.com [65.55.116.76]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Sat, 24 Jan 2015 04:34:42 +0100 (CET) Received: from BLU436-SMTP208 ([65.55.116.72]) by BLU004-OMC3S1.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Fri, 23 Jan 2015 19:37:04 -0800 X-TMN: [qQLHrsIYQVpIB6jPr/87/G5qPnDGM2Kx] X-Originating-Email: [nlhintz@hotmail.com] Message-ID: From: Nathan Hintz To: openwrt-devel@lists.openwrt.org Date: Fri, 23 Jan 2015 19:36:47 -0800 X-Mailer: git-send-email 1.9.3 X-OriginalArrivalTime: 24 Jan 2015 03:37:03.0847 (UTC) FILETIME=[050B1770:01D03787] MIME-Version: 1.0 Cc: Nathan Hintz Subject: [OpenWrt-Devel] [PATCH] procd: increase memory allocated for tmpfs on zram X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" 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 --- 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; }