提交 4077cab5 编写于 作者: C CY Fan

init 1G zram in boot

Signed-off-by: NCY Fan <cy.fan@huawei.com>
上级 08406b22
...@@ -198,6 +198,9 @@ ...@@ -198,6 +198,9 @@
}, { }, {
"name" : "boot", "name" : "boot",
"cmds" : [ "cmds" : [
"write /sys/block/zram0/disksize 1024M",
"mkswap /dev/block/zram0",
"swapon /dev/block/zram0",
"write /proc/sys/net/core/xfrm_acq_expires 3600", "write /proc/sys/net/core/xfrm_acq_expires 3600",
"write /proc/sys/vm/overcommit_memory 1", "write /proc/sys/vm/overcommit_memory 1",
"write /proc/sys/vm/min_free_order_shift 4", "write /proc/sys/vm/min_free_order_shift 4",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册