AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

Fewer Optimistic Cache Hits On v0.107.70

Open 7gxycn08 opened this issue 1 year ago • 15 comments

Prerequisites

Platform (OS and CPU architecture)

Windows, AMD64 (aka x86_64)

Installation

GitHub releases

Setup

On one machine

AdGuard Home version

AdGuard Home v0.107.70

Action

With the new update average dns processing time increased tremendously it rarely uses cache now with the new update.

Average processing time increased from 0ms to 400ms.

Expected result

Previously it always used the cache and refreshed in the background when it became stale as described In the settings tool tip message.

Average processing time was under 1ms when cache is properly filled.

Actual result

It's rarely using cache now.

Additional information and/or screenshots

Before the update avg processing time was less than 1ms now it's 400ms and cache is rarely used.

Image

7gxycn08 avatar Dec 05 '25 06:12 7gxycn08

I can confirm this issue. It appears that optimistic caching is not working at all. I no longer see any stale answers with a TTL of 10, which I consistently saw before update v0.107.70.

This might be a side effect of introducing:

  • dns.cache_optimistic_answer_ttl
  • dns.cache_optimistic_max_age

As a result, my AdGuard Premium DNS is now receiving slightly more requests. The increase is small, likely because stale answers in earlier versions already triggered background cache refreshes.

My schema version is still 31, and I’m running v0.107.70.

I’ve attached a screenshot of my current settings.

Image

goppinath avatar Dec 05 '25 06:12 goppinath

It seems happened in using ipv6 addr. I cannot see any cache from the log.

Septrum101 avatar Dec 05 '25 10:12 Septrum101

I can also confirm this. Cache appears to not be used much at all anymore. Almost all queries going to upstream server to be resolved.

TNOTA avatar Dec 05 '25 12:12 TNOTA

Hello @7gxycn08, and thanks for the report. We've found the bug and fixed it in the latest beta and edge releases. We're currently preparing a hotfix.

EugeneOne1 avatar Dec 05 '25 14:12 EugeneOne1

  • @EugeneOne1 when release in production? Today or next week?

TheCeet avatar Dec 05 '25 19:12 TheCeet

@TheCeet, we're going to release it as soon as possible – probably on 8 December, the date assigned to the milestone.

EugeneOne1 avatar Dec 05 '25 19:12 EugeneOne1

我当前也发现了这个问题,另外我还想咨询一下107.7这个版本中新增加的两个参数应该如何配置,它的作用是什么I have also found this problem at present, and I would also like to ask how to configure the two newly added parameters in 107.7 and what their functions are.

yuxuan0107 avatar Dec 07 '25 03:12 yuxuan0107

@7gxycn08 Unrelated to this bug, but what did you use to get the screenshot you included with your bug report? Thank you!

vjl avatar Dec 07 '25 08:12 vjl

@vjl This was a screenshot from a Terminal-based, real-time traffic monitoring and statistics for my AdGuard Home instance.

Can be found here AdGuardian-Term

7gxycn08 avatar Dec 07 '25 10:12 7gxycn08

I can confirm this, and the same issue also happened on my Linux AMD64 device.

VK3002 avatar Dec 08 '25 03:12 VK3002

Hello again, @7gxycn08 and everyone else. We've released v0.107.71 which should resolve this issue. I'll close this issue for now – feel free to reopen it if the problem becomes relevant again.

EugeneOne1 avatar Dec 08 '25 14:12 EugeneOne1

@yuxuan0107, these settings are described in our wiki. Please ask any further questions in the Discussions section.

EugeneOne1 avatar Dec 08 '25 14:12 EugeneOne1

It's really terrible—every update almost always introduces some baffling bugs. I'm never updating again.

sz2013 avatar Dec 09 '25 02:12 sz2013

Hope to add a feature to permanently disable update notifications.

sz2013 avatar Dec 09 '25 03:12 sz2013

use --no-check-update param when startup

Hope to add a feature to permanently disable update notifications.

Septrum101 avatar Dec 09 '25 03:12 Septrum101