![]() ![]() Then I use proxifier to force all apps to use that ip and port as proxy. Could it be something weird with my network? For example I use your-freedom app to access free internet and it makes server at localhost port. Firefox increases forever :( And I said it happens with normal hosts too, just more difficult to detect, firefox reads more than file size of hosts. So this means svchost is OK? It's not reading anymore bytes once this size fullfiled as being read. But then regardless of that I noticed firefox does the same separately, and in less than 5 minutes it has already read about 376 MB of hosts, and svchost has read 17 MB (17948728 B, exactly same as file size). Only one out of many svchost.exe uses some cpu, and it is service WdiSystemHost (Diagnostic System Host). I've also found that since I started using 0.0.0.0 rather than 127.0.0.1 and using Simple DNSCrypt (which sets my DNS to 127.0.0.1 deliberately in order to use their alternate DNS) that I have no issues with slow browsing speeds or page loading times. More info is available at the following links: The end result is the same number of domains blocked, but using far fewer lines, and reducing the number of total lines improves the performance and indexing speed should you choose to keep the DNS Client service active (DNS caching). A tool such as HostsMan can do this automatically via one of its options or you can do it manually. What I mean by that is, you can actually place multiple domains on a single line in a HOSTS file and still have the machine understand and block them correctly. ![]() I'm using HostsMan and currently have a HOSTS file with over 1 million entries in it (it's approximately 26MB in size at the moment) and browsing is fast for me in all of my browsers (IE11, Chrome, Firefox and SRWare Iron).Īnother alternative, especially if the HOSTS file you're using isn't too large (for example, since you're only using a HOSTS file from a single source unlike me (I combine HOSTS files from over 10 separate sources in addition to some custom block lists of my own creation) would be to "optimize" your HOSTS file. You can also try changing your HOSTS file so that the address the blocked sites point to is 0.0.0.0 rather than 127.0.0.1 as that sometimes works (though not in all situations) to eliminate these performance issues. ![]() HostsServer redirects the null lookups that occur as a result of the hosts in your HOSTS file pointing to 127.0.0.1 to itself so that the machine doesn't have to wait for all those blocked connections to timeout (waiting for them to timeout is what's causing your slow browsing experience, by the way). ![]() If you're seeing slow browsing when using a large HOSTS file there are a couple of things you can do to eliminate the issue and keep your HOSTS file (neither of which require you to enable the DNS Client service).įirst, you can use a third party tool such as HostsServer which was created by the developers of HostsMan, a tool that is used for managing several HOSTS files (including HOSTS from multiple custom sources along with well known ones like hpHosts and MVPSHosts) to make browsing faster when using a large HOSTS file. The problem with leaving the DNS Client service (which I assume is what you're referring to as the "DNS cache" since that's one of its purposes) is that when using a large HOSTS file, it attempts to constantly read/cache the entire contents of your HOSTS file which usually results in the machine locking up due to constant high CPU usage from svchost.exe (the DNS Client service attempting to index the large HOSTS file). Seems stupid to read 17 MB file for every click i make on firefox. Or maybe automatize whole process for those who reset often. Especially useful for us who never turn off laptop but put it to sleep only. Then use junction by sysinternals to make symbolic link (or whatever that is called, just like in linux it exists) for hosts file to this ram disk. By making RAM disk let's say of 18 MB size. What is dns cache purpose for hosts file? It caches hosts file into RAM? Then why disable it?įinally I think theoretically good solution would be to use 2 tools to speed up hosts file access, while not removing or reducing number of blocked pages. Why everybody reccommends and adds in app to disable dns cache? Would not enabled dns cache speed something up? I don't get it. It's obviously better to have more websites blocked but it will slow down everything, so these two parameters are against each other. When I replaced hosts with windows original empty file, firefox became normally fast. All webpages are extremely slow and freeze for about 10 seconds to minute after any click or in some cases movement. For each click it looks like it reads whole 17 MB hosts file. I noticed my firefox is extremely slow when i use hosts by. Endpoint Detection & Response for Servers ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |