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

为什么开启了广告屏蔽,内存占用达到近40M(512M的内存,占用达到13%左右,从内存可用数30%直接到17%)? #1831

Open
zxlhhyccc opened this issue Oct 1, 2024 · 7 comments

Comments

@zxlhhyccc
Copy link
Contributor

广告屏蔽文件链接:
https://anti-ad.net/anti-ad-for-smartdns.conf
github仓库:
https://github.com/privacy-protection-tools/anti-AD?tab=readme-ov-file

@giveup
Copy link

giveup commented Oct 2, 2024

猜测是为了实现高性能的域名匹配,把规则列表加载到内存中。

@PikuZheng
Copy link
Contributor

广告屏蔽文件链接:
https://anti-ad.net/anti-ad-for-smartdns.conf

98210行 😯

不多。我用的规则7千多行。内存60M。
image

内存使用是配置文件(包括域名列表)和缓存的总和

@zxlhhyccc
Copy link
Contributor Author

zxlhhyccc commented Oct 2, 2024

内存使用是配置文件(包括域名列表)和缓存的总和

我小内存,没办法只能不开启。只是不知道大佬能否优化?

@PikuZheng
Copy link
Contributor

别用那么复杂的广告表呗。比如我用的是 TG-Twilight/AWAvenue-Ads-Rule

@zxlhhyccc
Copy link
Contributor Author

别用那么复杂的广告表呗。比如我用的是 TG-Twilight/AWAvenue-Ads-Rule

主要是这个表需要转换,anti-ad-for-smartdns.conf 可以直接拿来就用。

@PikuZheng
Copy link
Contributor

surge的规则也可以直接拿来用

@zxlhhyccc
Copy link
Contributor Author

surge的规则也可以直接拿来用

这个规则更大。。

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