![通过阅读 dnsmasq 日志帮助理解 dnsmasq 日志的输出并查找性能问题](https://linux22.com/image/137376/%E9%80%9A%E8%BF%87%E9%98%85%E8%AF%BB%20dnsmasq%20%E6%97%A5%E5%BF%97%E5%B8%AE%E5%8A%A9%E7%90%86%E8%A7%A3%20dnsmasq%20%E6%97%A5%E5%BF%97%E7%9A%84%E8%BE%93%E5%87%BA%E5%B9%B6%E6%9F%A5%E6%89%BE%E6%80%A7%E8%83%BD%E9%97%AE%E9%A2%98.png)
我已经dnsmasq
安装在服务器上并且被大量使用。当给出信号“SIGUSR1”时,我有以下dnsmasq
日志:/var/log/syslog
Jul 16 13:45:50 server1 dnsmasq[427008]: time 1531748750
Jul 16 13:45:50 server1 dnsmasq[427008]: cache size 10000, 18355/597070 cache insertions re-used unexpired cache entries.
Jul 16 13:45:50 server1 dnsmasq[427008]: queries forwarded 1510313, queries answered locally 15347110
Jul 16 13:45:50 server1 dnsmasq[427008]: queries for authoritative zones 0
Jul 16 13:45:50 server1 dnsmasq[427008]: server 100.1.2.3#53: queries sent 242802, retried or failed 0
Jul 16 13:45:50 server1 dnsmasq[427008]: server 100.2.3.4#53: queries sent 1371704, retried or failed 0
我已将缓存大小设置为 10000,这是允许的最大值。用于dnsmasq
请求的应用程序也感觉很慢。
我如何理解dnsmasq
日志并知道这些日志是否代表由于缓存大小过低而导致的性能问题?