Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memTotal这个数据差异很大 #50

Open
laomao9000 opened this issue Jul 9, 2024 · 6 comments
Open

memTotal这个数据差异很大 #50

laomao9000 opened this issue Jul 9, 2024 · 6 comments

Comments

@laomao9000
Copy link

大侠,比较几个系统,发现memTotal差异很大——
都是256M内存:
[QCA-WIFI-NO_openwrt-6.x.git_main_24.07.09_04.23.56]
image

另一个openwrt,也是256M内存

image

其它的内存用在了何处,为何有这么大的差异。

@laomao9000
Copy link
Author

往上跟踪了下,是reserved memory,80M,这个参数设置这么大!是不是可以优化?
Memory: 181560K/262144K available (8256K kernel code, 940K rwdata, 2460K rodata, 1600K init, 307K bss, 80584K reserved, 0K cma-reserved)

@King-Of-Knights
Copy link

NSS需要固件占用

@laomao9000
Copy link
Author

这个大小从何而来?是厂家设定吗?发现多个源的配置大小设定并不一致。

@20ssjy2871
Copy link

@laomao9000 https://github.com/King-Of-Knights/openwrt-6.x/blob/main/target/linux/qualcommax/patches-6.6/9999-01-add-serveal-support-for-ipq6018.patch#L21

zn m2 256M 4.4内核可用内存223M 到了6.6 就变成178M ,可以在这改吗?

@20ssjy2871
Copy link

经过前面大佬的提醒,我观察到问题大概率出现在这块内存分区 :
https://github.com/King-Of-Knights/openwrt-6.x/blob/b26d71e22c9712e72768d76dc84c9e649e8a1d10/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq6018-256m.dtsi#L10
这部分分区在4.4内核被补丁分为4M大小,到了6.1内核以上就被分到30-50M之间;
似乎可以通过修改其分区的大小来增加可用内存。
我的短暂尝试是,我将其分为4M及以下时系统较为不稳定,频繁重启,当然也不排除与编译库源码有一定关系,,我目前将其改为8-9M的样子,仍然未经长期使用测试。PS,我只有科学上网和upnp插件
在我看来256M内存 基本可以放弃使用带无线功能的op了,除非你愿意为了运行无线放弃使用其它插件,另外4.4内核肯定可用内存多一些

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants