Nmapで、「RTTVAR has grown to over 2.3 seconds, decreasing to 2.0」

  • 「RTTVAR has grown to over 2.3 seconds, decreasing to 2.0」なエラーが出たときの対応

command::
sysctl -w net.ipv4.neigh.default.gc_thresh3=4096
sysctl -w net.ipv4.neigh.default.gc_thresh2=2048
sysctl -w net.ipv4.neigh.default.gc_thresh1=1024


file:: /etc/sysctl.conf:
net.ipv4.neigh.default.gc_thresh3 = 4096
net.ipv4.neigh.default.gc_thresh2 = 2048
net.ipv4.neigh.default.gc_thresh1 = 1024

●2006/11/13 追記
http://www.bur.st/~paul/linux_tuning.txt

# Don't allow the arp table to become bigger than this
net.ipv4.neigh.default.gc_thresh3 = 2048
# Tell the gc when to become aggressive with arp table cleaning.
# Adjust this based on size of the LAN. 256 is suitable for most
net.ipv4.neigh.default.gc_thresh2 = 1024
# Adjust where the gc will leave arp table alone - set to 32.
net.ipv4.neigh.default.gc_thresh1 = 32

●2016/04/18 追記

「RTTVAR」とは「RTT」の値を平均化した物である。
「RTT」とは信号を発してから応答が返って来るまでの時間を指します。

その上で、エラーメッセージを読み解くと

信号を発してから応答が帰ってくるまでの時間が2秒を超えて2.3秒になってますよ
という警告のようだ。

通常nmap程度の通信で通信が帰ってくるまで2秒もかかることがないので
おかしいですよ〜と警告しているようだ。