Permalink
Browse files

update packetcache size in insert()

  • Loading branch information...
1 parent ebe8e61 commit c1d283dbdf3e53525a9abf8cb4d64beea27bab86 @mind04 mind04 committed with mind04 Sep 26, 2016
Showing with 18 additions and 1 deletion.
  1. +4 −0 pdns/packetcache.cc
  2. +1 −1 regression-tests.nobackend/counters/expected_result
  3. +13 −0 regression-tests/startpdns
View
@@ -191,6 +191,8 @@ void PacketCache::insert(const DNSName &qname, const QType& qtype, CacheEntryTyp
if(!success)
mc.d_map.replace(place, val);
+ else
+ (*d_statnumentries)++;
}
else
S.inc("deferred-cache-inserts");
@@ -227,6 +229,8 @@ void PacketCache::insert(const DNSName &qname, const QType& qtype, CacheEntryTyp
if(!success)
mc.d_map.replace(place, val);
+ else
+ (*d_statnumentries)++;
}
else
S.inc("deferred-cache-inserts");
@@ -11,7 +11,7 @@ key-cache-size=0
latency=0
meta-cache-size=1
overload-drops=0
-packetcache-size=0
+packetcache-size=8
qsize-q=0
rd-queries=0
recursing-answers=0
@@ -0,0 +1,13 @@
+#!/usr/bin/env bash
+
+../pdns/pdns_server --daemon=no --local-port=5300 --config-dir=. --module-dir=modules --config-name=bind --socket-dir=./ --master --webserver=yes --webserver-allow-from=0.0.0.0/0 --cache-ttl=1 --query-cache-ttl=1 --negquery-cache-ttl=1 --reuseport=yes --receiver-threads=4 --distributor-threads=3 --carbon-server=195.191.112.4 --carbon-ourname=pruts --loglevel=9 &
+#../pdns/pdns_server --daemon=no --local-port=5200 --config-dir=. --module-dir=modules --config-name=gmysql --socket-dir=./ --no-shuffle --master --send-root-referral --allow-dnsupdate-from=127.0.0.0/8 --experimental-dnsupdate=yes --cache-ttl=0 --experimental-dname-processing --lua-prequery-script=./check_stest_source --webserver=yes --webserver-allow-from=0.0.0.0/0 --loglevel=99999 --query-logging=yes &
+# ./pdns/pdns_server --daemon=no --local-port=5300 --config-dir=. --config-name=gmysql2 --socket-dir=./ --no-shuffle --send-root-referral --slave --retrieval-threads=4 --slave-cycle-interval=300 --experimental-dname-processing &
+
+sleep 2
+
+echo push enter to terminate instance
+read l
+
+killall pdns_server
+#perf top -p $(pgrep pdns_server)q

0 comments on commit c1d283d

Please sign in to comment.