0xERR0R / blocky

Fast and lightweight DNS proxy as ad-blocker for local network with many features
https://0xERR0R.github.io/blocky/
Apache License 2.0
4.57k stars 203 forks source link

Initial CPU spike at start up, seems to be around requesting blocklists? #1549

Open dalanmiller opened 1 month ago

dalanmiller commented 1 month ago

Reporting that I'm seeing some serious spikes at loadup. No hard data here just seems a bit over the top for making some HTTP requests to download the blocklists and loading those lists into memory.

Is this something else happening during this time? Perhaps something gone awry?

https://github.com/user-attachments/assets/d9272563-43a6-4d96-9a2a-0d46f06e79c0

kwitsch commented 1 month ago

Blocklists aren't simply loaded in memory. They are merged under your defined category and have to be processed in case of regex list. This can take some load. Additionally the processing is done in parallel(if not configured otherwise).

It's likely that you can reduce the load by optimizing your config for your hardware. Decreasing the parallelism and watching the effect would be the first step.

Teurg commented 1 month ago

can you share the list?