Content-Disposition: inline Message-ID: <20171017180537.GA25723@jurassic> X-RT-Original-Encoding: utf-8 X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.1 X-RT-Interface: Email Received: from mx.pao1.isc.org (mx.pao1.isc.org [IPv6:2001:4f8:0:2::2b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx.pao1.isc.org", Issuer "COMODO RSA Organization Validation Secure Server CA" (not verified)) by bugs.isc.org (Postfix) with ESMTPS id 0983ED78B0C for ; Tue, 17 Oct 2017 18:05:46 +0000 (UTC) Received: from mail.banu.com (mail.banu.com [46.4.129.225]) by mx.pao1.isc.org (Postfix) with ESMTP id 6B12E3ABE72 for ; Tue, 17 Oct 2017 18:05:44 +0000 (UTC) Received: from jurassic (unknown [115.118.48.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.banu.com (Postfix) with ESMTPSA id 2606D56A0101; Tue, 17 Oct 2017 18:05:41 +0000 (GMT) References: <20171017173731.GA5372@jurassic> Delivered-To: bind9-public@bugs.isc.org Return-Path: X-Original-To: bind9-public@bugs.isc.org X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mx.pao1.isc.org content-type: text/plain; charset="utf-8" In-Reply-To: Subject: Re: [ISC-Bugs #46307] Some LRU tweaks for negative rdatasetheader handling User-Agent: Mutt/1.9.1 (2017-09-22) From muks@isc.org Tue Oct 17 18:05:46 2017 Date: Tue, 17 Oct 2017 23:35:37 +0530 X-RT-Incoming-Encryption: Not encrypted From: "Mukund Sivaraman" MIME-Version: 1.0 To: "Mukund Sivaraman via RT" RT-Message-ID: Content-Length: 836 On Tue, Oct 17, 2017 at 05:37:44PM +0000, Mukund Sivaraman via RT wrote: > We can also remove this second part if we want to be strict - i.e., just > let all negative answers get cleaned up first whether they have been > recently used or not. I decided to implement this in rt46307. It's easier to implement, is more stricter. If someone actually complains that it affects performance badly, then we can look at it. So basically NEGATIVE is handled the same as ZEROTTL. It's always left towards the end of the LRU where it'll be swept first. There's a slight chance that a cache is overmem, and a negative answer that was just fetched is deleted from cache quickly (before it can be used to answer any additional queries). But an overmem situation doesn't last continuously, so this ought not to be a performance problem. Mukund