!269 Reduce the memory usage by kernel
Merge Pull Request from: @liushixin2 Backport four patches which are used to reduce the memory usage by kernel. The first three patches are used to reduce the memory occupied by zswap when zswap is not used. Before these patches, whether zswap is enabled or not, it occupies at least 18MB memory. With these patches, the initialization of zswap will be delayed until it is enabled first time and we can save 18MB memory if we never use zswap. The last patch doesn't reduce memory directly, it introduces a new interface to control the batchsize and high of percpu pageset. With this patch, we can limit the high of percpu pageset to a lower value, which can increase free memory displayed in meminfo. Link:https://gitee.com/openeuler/kernel/pulls/269 Reviewed-by: Zheng Zengkai <zhengzengkai@huawei.com> Reviewed-by: Kefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: Zheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录