AdguardForiOS
AdguardForiOS copied to clipboard
Issue when enabling DNS with at least 500,000 rules
With anything below 500,000 rules, everything works perfectly. However, when I have 500,000 rules or more, it takes an extremely long time before turning on and it keeps disabling itself. Here's a log in case you need it. AdGuard_logs.zip .
it takes an extremely long time before turning on
Could you please explain this one? Do you mean before the "VPN" icon appears?
According to the log, it takes about 3 seconds to read all the rules and prepare the filtering engine. This is kind of okay for such a huge blocklist.
and it keeps disabling itself
And this is a real problem, it means that we haven't counted the memory usage properly and at some point AdGuard starts using over 15MB RAM. This is a hard limit when OS simply kills the app.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
The task is in the tasks queue, please await for updates.
@artemiv4nov please note that DnsLibs now expose the setting for the maximum memory limit. The default value might be too small for iOS so we should check which one needs to be used.
@artemiv4nov please note that DnsLibs now expose the setting for the maximum memory limit. The default value might be too small for iOS so we should check which one needs to be used.
That makes sense, but everything was fine when I was previous iOS versions. What gives?
@royerlraph79 well, the memory limit hasn't changed, but it's very possible that iOS native network extension's runtime consumes more memory in a newer iOS version hence contributes more into the overall memory usage.