📄 readme
字号:
$Id: README,v 1.1.1.1 2001/07/12 02:02:09 gson Exp $This is queryperf, a DNS server query performance testing tool.It is primarily intended for measuring the performance ofauthoritative DNS servers, but it has also been used for measuringcaching server performance. This document describes the use ofqueryperf for authoritative server performance testing.BuildingTo build queryperf, just do sh configure makeThe test environmentIt is recommended that you run queryperf and the name server undertest on separate machines, so that the CPU usage of queryperf itselfdoes not slow down the name server. The two machines should beconnected with a fast network, preferably a dedicated 100baseTsegment. Testing through a router or firewall is not advisable.Configuring the serverThe name server under test should be set up as an authoritativeserver, serving one or more zones similar in size and number towhat the server is expected to serve in production.Be sure to turn off recursion in the server's configuration (in BIND 8/9, specify "recursion no;" in the options block).In BIND 8, you should also specify "fetch-glue no;"; otherwisethe server may attempt to retrieve glue information from theInternet during the test, slowing it down by an unpredictablefactor.Constructing the input fileYou need to construct a queryperf input file containing a large andrealistic set of queries, on the order of ten thousand to a million.The input file contains one line per query, consisting of a domain name and an RR type name separated by a space. The class of the query is implicitly IN.When measuring the performance serving non-terminal zones such as theroot zone or TLDs, note that such servers spend most of their timeproviding referral responses, not authoritative answers. Therefore, arealistic input file might consist mostly of queries for type A fornames *below*, not at, the delegations present in the zone. Forexample, when testing the performance of a server configured to beauthoritative for the top-level domain "fi.", which containsdelegations for domains like "helsinki.fi" and "turku.fi", the inputfile could contain lines like www.turku.fi A www.helsinki.fi Awhere the "www" prefix ensures that the server will respond with areferral. Ideally, a realistic proportion of queries for nonexistentdomains should be mixed in with those for existing ones, and the linesof the input file should be in a random order.Running the testsQueryperf is run specifying the input file using the "-d" option, asin queryperf -d input_file -s serverThe output of queryperf is mostly self-explanatory. Pay attention tothe number of dropped packets reported - when running the test over alocal Ethernet connection, it should be zero. If one or more packetshas been dropped, there may be a problem with the network connection.In that case, the results should be considered suspect and the testrepeated.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -