Все адреса были вымышлены. Сейчас раскрою.
(1) 217.23.140.131 - IP HN, с которой шёл тест.
(2) 217.23.140.138 - IP HW, на которой запущена VPS с nginx
(3) 212.158.166.207 - IP VPS, где работает nginx.
*1*
netstat -s c (1)
Ip:
3613925 total packets received
4 with invalid headers
134 forwarded
0 incoming packets discarded
3613787 incoming packets delivered
3613790 requests sent out
Icmp:
2 ICMP messages received
0 input ICMP message failed.
ICMP input histogram:
echo requests: 2
9 ICMP messages sent
0 ICMP messages failed
ICMP output histogram:
destination unreachable: 3
time exceeded: 4
echo replies: 2
Tcp:
602193 active connections openings
6 passive connection openings
1 failed connection attempts
1 connection resets received
2 connections established
3613655 segments received
3613536 segments send out
28 segments retransmited
0 bad segments received.
10 resets sent
Udp:
82 packets received
3 packets to unknown port received.
0 packet receive errors
83 packets sent
TcpExt:
1 resets received for embryonic SYN_RECV sockets
3 TCP sockets finished time wait in fast timer
7 delayed acks sent
81 packets directly queued to recvmsg prequeue.
24 packets directly received from prequeue
602278 packets header predicted
1204446 acknowledgments not containing data received
602423 predicted acknowledgments
1 times recovered from packet loss due to SACK data
10 congestion windows recovered after partial ack
1 TCP data loss events
1 fast retransmits
27 other TCP timeouts
1 DSACKs sent for old packets
2 DSACKs received
1 connections reset due to unexpected data
1 connections reset due to early user close
netstat -s c (2)
Ip:
7227192 total packets received
7226305 forwarded
0 incoming packets discarded
854 incoming packets delivered
7226920 requests sent out
Icmp:
9 ICMP messages received
0 input ICMP message failed.
ICMP input histogram:
echo requests: 9
9 ICMP messages sent
0 ICMP messages failed
ICMP output histogram:
echo replies: 9
Tcp:
9 active connections openings
9 passive connection openings
0 failed connection attempts
0 connection resets received
3 connections established
798 segments received
548 segments send out
9 segments retransmited
0 bad segments received.
0 resets sent
Udp:
77 packets received
0 packets to unknown port received.
0 packet receive errors
79 packets sent
TcpExt:
10 TCP sockets finished time wait in fast timer
601948 TCP sockets finished time wait in slow timer
12 delayed acks sent
65 packets directly queued to recvmsg prequeue.
17 packets directly received from prequeue
179 packets header predicted
59 acknowledgments not containing data received
347 predicted acknowledgments
4 congestion windows recovered after partial ack
0 TCP data loss events
8 other TCP timeouts
2 DSACKs sent for old packets
5 DSACKs received
netstat -s c (3)
Ip:
3613147 total packets received
0 forwarded
0 incoming packets discarded
3613147 incoming packets delivered
3613158 requests sent out
Icmp:
4 ICMP messages received
0 input ICMP message failed.
ICMP input histogram:
timeout in transit: 4
4 ICMP messages sent
0 ICMP messages failed
ICMP output histogram:
destination unreachable: 4
Tcp:
9 active connections openings
602198 passive connection openings
4 failed connection attempts
0 connection resets received
0 connections established
3613169 segments received
3613184 segments send out
0 segments retransmited
0 bad segments received.
0 resets sent
Udp:
0 packets received
4 packets to unknown port received.
0 packet receive errors
0 packets sent
TcpExt:
1 delayed acks sent
602191 packets header predicted
602191 acknowledgments not containing data received
0 TCP data loss events
*2*
ethtool -S eth0 с (1)
NIC statistics:
rx_packets: 3615960
tx_packets: 3613901
rx_bytes: 411792822
tx_bytes: 289840057
rx_errors: 0
tx_errors: 0
tx_dropped: 0
multicast: 2
collisions: 0
rx_length_errors: 0
rx_over_errors: 0
rx_crc_errors: 0
rx_frame_errors: 0
rx_no_buffer_count: 0
rx_missed_errors: 0
tx_aborted_errors: 0
tx_carrier_errors: 0
tx_fifo_errors: 0
tx_heartbeat_errors: 0
tx_window_errors: 0
tx_abort_late_coll: 0
tx_deferred_ok: 0
tx_single_coll_ok: 0
tx_multi_coll_ok: 0
tx_timeout_count: 0
rx_long_length_errors: 0
rx_short_length_errors: 0
rx_align_errors: 0
tx_tcp_seg_good: 20
tx_tcp_seg_failed: 0
rx_flow_control_xon: 0
rx_flow_control_xoff: 0
tx_flow_control_xon: 0
tx_flow_control_xoff: 0
rx_long_byte_count: 411792822
rx_csum_offload_good: 3613986
rx_csum_offload_errors: 0
rx_header_split: 0
alloc_rx_buff_failed: 0
ethtool -S eth0 с (2)
NIC statistics:
rx_packets: 3616218
tx_packets: 3613918
rx_bytes: 290005297
tx_bytes: 411677781
rx_broadcast: 2006
tx_broadcast: 7
rx_multicast: 2
tx_multicast: 6
rx_errors: 0
tx_errors: 0
tx_dropped: 0
multicast: 2
collisions: 0
rx_length_errors: 0
rx_over_errors: 0
rx_crc_errors: 0
rx_frame_errors: 0
rx_no_buffer_count: 0
rx_missed_errors: 0
tx_aborted_errors: 0
tx_carrier_errors: 0
tx_fifo_errors: 0
tx_heartbeat_errors: 0
tx_window_errors: 0
tx_abort_late_coll: 0
tx_deferred_ok: 0
tx_single_coll_ok: 0
tx_multi_coll_ok: 0
tx_timeout_count: 0
tx_restart_queue: 0
rx_long_length_errors: 0
rx_short_length_errors: 0
rx_align_errors: 0
tx_tcp_seg_good: 1
tx_tcp_seg_failed: 0
rx_flow_control_xon: 0
rx_flow_control_xoff: 0
tx_flow_control_xon: 0
tx_flow_control_xoff: 0
rx_long_byte_count: 290005297
rx_csum_offload_good: 3614184
rx_csum_offload_errors: 0
rx_header_split: 0
alloc_rx_buff_failed: 0
tx_smbus: 0
rx_smbus: 0
dropped_smbus: 0
*3*
while : ; do php dummy.php ; echo ; done | grep -e "[1-9]\.[0-9]"
3.0010950565338
3.0016250610352
3.0018901824951
3.00084400177
3.0018458366394
3.0011219978333
3.0014960765839
3.001119852066
т.е. всего 8 раз наблюдались задержки. Это примерно 10-15 минут теста.
http://people.mobiledirect.ru/people/umask/public/ovz_proble ms/
HN_where_test_running.out[.gz] - (1)
problem_HN_eth0.out[.gz] - (2) на eth0
problem_HN_venet0.out[.gz] - (2) на venet0
problem_VPS_venet0.out[.gz] - (3) на venet0
tcpdump запускался так: tcpdump -n -i <interface> > /tmp/file.out 2>&1.
показания netstat и ethtool снимались по окончанию теста.
[Updated on: Fri, 04 July 2008 20:36]
Report message to a moderator