projects
/
project
/
procd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e6045f
)
procd: increase memory allocated for tmpfs on zram
author
Nathan Hintz
<nlhintz@hotmail.com>
Sat, 24 Jan 2015 03:36:47 +0000
(19:36 -0800)
committer
John 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
patch
|
blob
|
history
diff --git
a/initd/zram.c
b/initd/zram.c
index 4dc1d2ee459dd68c2bf40107672d452473afbdbe..49480afad9079b64de92ab073ec28fb3d959b88b 100644
(file)
--- 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;
}