knotc memstats anomaly
In 1.5.0, I tried to use knotc's memstats command. With one instance, I get:
knotc -c /etc/knot/arpa.conf memstats
2014-07-09T20:48:51 Zone ip6-servers.arpa.: 51 RRs, used memory estimation is 0MB.
2014-07-09T20:48:51 Zone in-addr.arpa.: 2499 RRs, used memory estimation is 0MB.
2014-07-09T20:48:51 Zone in-addr-servers.arpa.: 51 RRs, used memory estimation is 0MB.
2014-07-09T20:48:51 Zone ip6.arpa.: 641 RRs, used memory estimation is 0MB.
2014-07-09T20:48:51 Estimated memory consumption for all zones is 0MB.
Note that the last line reports the total usage. The fact that the zones are so small means that the usage is still printed as 0MB, which is not too useful. However, it's not a big deal.
Next up, I did:
knotc -c /etc/knot/knot.conf memstats
2014-07-09T20:43:18 Zone 1.94.in-addr.arpa.: 516 RRs, used memory estimation is 0MB.
2014-07-09T20:43:18 [error] Could not load zone 0.d.e.0.0.0.a.2.ip6.arpa.
2014-07-09T20:43:18 Zone 3.4.1.0.0.2.ip6.arpa.: 252 RRs, used memory estimation is 0MB.
...
...
2014-07-09T20:44:28 Zone dentiste.mc.: 6 RRs, used memory estimation is 0MB.
2014-07-09T20:44:28 Zone ipv6roadshow.net.: 16 RRs, used memory estimation is 0MB.
2014-07-09T20:44:28 Zone nsap.int.: 30 RRs, used memory estimation is 0MB.
In this second run, knotc did not print a total estimated memory usage. Could it be that some zone files were not found?