hagezi / dns-blocklists

DNS-Blocklists: For a better internet - keep the internet clean!
GNU General Public License v3.0
6.53k stars 217 forks source link

Google Services High Memory Usage #1510

Closed emyaqin closed 1 year ago

emyaqin commented 1 year ago

So basically, whenever I use the Multi Pro and Multi Pro++ hosts file on my Android phone, the Google services (Play Service, Chrome, Gboard, etc) memory usage just soaring high like 10x than it should be.

hagezi commented 1 year ago

Probably the lists are too big for your available phone resources. Try the Light or use a cloud DNS service like AdGuardDNS, NextDNS, ControlD, ,,,

emyaqin commented 1 year ago

No, cause before today's update, everything works fine. I've been using the hosts file since few months back

Screenshot_20230831-214028_Settings Screenshot_20230831-215052_Settings Here's a comparison with and without the hosts file

hagezi commented 1 year ago

Please try if the problem also occurs with the Multi NORMAL. I don't know which domain(s) on a blocklist lead to such behaviour. With which AdBlocker do you use the host file?

emyaqin commented 1 year ago

Screenshot_20230831-220333_Settings Same issue with multi normal. I didn't use any app to use the hosts file, I just put it into my system/etc/ folder, but when I use the multi light with AdAway, the issues still there too

hagezi commented 1 year ago

I can't imagine it's because of blocked domains, but who knows. Try another list, like OISD small or big:

https://small.oisd.nl/hosts https://big.oisd.nl/hosts

I assume that you have restarted the smartphone?

Which smartphone manufacturer are you using?

emyaqin commented 1 year ago

I got no issue with the small, but the same issue with the big one, and yes, I do restart my phone to make everything's fresh. I'm using Samsung Galaxy A20 running stock OneUI 3.1 (Android 11)

hagezi commented 1 year ago

I always suspect the size as the cause, for whatever reason this is only occurring now. I've looked through the light commits for the last 2 days and can't find any "obvious" domains that have been added.

And the memory grows immediately when you add the list?

Do you have the possibility to deliver the blocked domains?

emyaqin commented 1 year ago

I've been doing some rollback and it seems that the commit from 3 days ago is the one without issue for me and size is not the issue here cause its also a big hosts file. I'm using Multi Pro++ flawlessly. Here's the last working commit for me https://github.com/hagezi/dns-blocklists/tree/e00acab634f196ce0fe0c2f2d6d043b658ac4de3

hagezi commented 1 year ago

@emyaqin I have compared the light from the commit that works with the commit from yesterday morning that does not work.

Working: https://raw.githubusercontent.com/hagezi/dns-blocklists/e00acab634f196ce0fe0c2f2d6d043b658ac4de3/domains/light.txt Not working: https://raw.githubusercontent.com/hagezi/dns-blocklists/71c1cd1b5cb0b8335589fd7ea7bec44f04ab8aed/domains/light.txt

Since then, 2487 domains have been added: light-added.txt

I think we need logs of what is being blocked.

hagezi commented 1 year ago

@emyaqin I minimised the Light in the host version in the last build, can you please test this one: https://raw.githubusercontent.com/hagezi/dns-blocklists/af88c0e44b4c2c60495b03f2471fb9ded461a6fe/hosts/light.txt

hagezi commented 1 year ago

@emyaqin is there anything new about the problem?