Hacker News new | ask | show | jobs
by NavinF 873 days ago
Every website I use (besides reddit and wikia/Fandom) load almost instantly.

> typical website does nothing for 250-750ms

Two common causes:

- Your HTTP cache is slow because your workload size is larger than your SSD's SLC cache. Cheap 1TB SSDs only have 50GB SLC which gets nuked with every background software update, so buy a better one.

- your p99 DNS response time is slow. Recall that many websites require many DNS queries to randomly generated subdomains and the whole page is limited by the slowest response. Set prefetch=true in unbound and use multiple DNS servers in parallel with pihole/dnsmasq to eliminate that issue.