Добрый день
есть машина
DELL с картой Intel 100/1000
driver: e1000e
version: 2.3.2-NAPI
firmware-version: 1.0-0
bus-info: 0000:08:00.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: noпосле работы сервера буквально 1 час *без особой нагрузки* в ifconfig
eth0 Link encap:Ethernet HWaddr 00:15:17:aa:f2:54
inet addr:192.168.16.1 Bcast:192.168.16.255 Mask:255.255.255.0
inet6 addr: fe80::215:17ff:feaa:f254/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3461325 errors:0 dropped:4262 overruns:0 frame:0
TX packets:4096325 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3052728958 (2.8 GiB) TX bytes:3655458582 (3.4 GiB)
Interrupt:18 Memory:98820000-98840000dropped:4262
Сервер подключен к CISCO Switch 100/1000
Сервер с сетью работает очень мало
Почему появляются такие ошибки ?
Спасиб
mii-tool eth0
?
ethtool eth0
?
root@nas:~# ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
MDI-X: off
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
root@nas:~#
Очень информативно. Тогда посоветую man ethtool.
> Очень информативно. Тогда посоветую man ethtool.ethtool -i eth0 я выложил чуть выше
ethtool --show-coalesce eth0
Coalesce parameters for eth0:
Adaptive RX: off TX: off
stats-block-usecs: 0
sample-interval: 0
pkt-rate-low: 0
pkt-rate-high: 0rx-usecs: 3
rx-frames: 0
rx-usecs-irq: 0
rx-frames-irq: 0tx-usecs: 0
tx-frames: 0
tx-usecs-irq: 0
tx-frames-irq: 0rx-usecs-low: 0
rx-frame-low: 0
tx-usecs-low: 0
tx-frame-low: 0rx-usecs-high: 0
rx-frame-high: 0
tx-usecs-high: 0
tx-frame-high: 0
Ring parameters for eth0:
Pre-set maximums:
RX: 4096
RX Mini: 0
RX Jumbo: 0
TX: 4096
Current hardware settings:
RX: 4096
RX Mini: 0
RX Jumbo: 0
TX: 4096
Ясно. Читаем про другие буквы.
Влогонку (пока Вы до буквы S не добрались). Вот пара ссылочек про дропнутые пакеты:
1. http://www.linux.org.ru/forum/admin/2354080
2. http://forums.fedoraforum.org/showthread.php?t=142446
ethtool -S eth0
NIC statistics:
rx_packets: 6602494
tx_packets: 7589172
rx_bytes: 6367899972
tx_bytes: 7683865917
rx_broadcast: 89374
tx_broadcast: 44
rx_multicast: 0
tx_multicast: 6
rx_errors: 0
tx_errors: 0
tx_dropped: 0
multicast: 0
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: 8
rx_long_length_errors: 0
rx_short_length_errors: 0
rx_align_errors: 0
tx_tcp_seg_good: 927024
tx_tcp_seg_failed: 0
rx_flow_control_xon: 4483
rx_flow_control_xoff: 4483
tx_flow_control_xon: 0
tx_flow_control_xoff: 0
rx_csum_offload_good: 6522555
rx_csum_offload_errors: 0
rx_header_split: 0
alloc_rx_buff_failed: 0
tx_smbus: 0
rx_smbus: 79714
dropped_smbus: 0
rx_dma_failed: 0
tx_dma_failed: 0
rx_hwtstamp_cleared: 0
uncorr_ecc_errors: 0
corr_ecc_errors: 0
Везде где есть слово errors - счетчик показывает 0
cat /proc/sys/net/core/netdev_max_backlog
1000
ethtool -d eth0
MAC Registers
-------------
0x00000: CTRL (Device control register) 0x481C4241
Endian mode (buffers): little
Link reset: normal
Set link up: 1
Invert Loss-Of-Signal: no
Receive flow control: enabled
Transmit flow control: disabled
VLAN mode: enabled
Auto speed detect: disabled
Speed select: 1000Mb/s
Force speed: no
Force duplex: no
0x00008: STATUS (Device status register) 0x02080783
Duplex: full
Link up: link config
TBI mode: disabled
Link speed: 1000Mb/s
Bus type: PCI Express
Port number: 0
0x00100: RCTL (Receive control register) 0x04008002
Receiver: enabled
Store bad packets: disabled
Unicast promiscuous: disabled
Multicast promiscuous: disabled
Long packet: disabled
Descriptor minimum threshold size: 1/2
Broadcast accept mode: accept
VLAN filter: disabled
Canonical form indicator: disabled
Discard pause frames: filtered
Pass MAC control frames: don't pass
Receive buffer size: 2048
0x02808: RDLEN (Receive desc length) 0x00010000
0x02810: RDH (Receive desc head) 0x000006DB
0x02818: RDT (Receive desc tail) 0x000006D0
0x02820: RDTR (Receive delay timer) 0x00000020
0x00400: TCTL (Transmit ctrl register) 0x3103F0FA
Transmitter: enabled
Pad short packets: enabled
Software XOFF Transmission: disabled
Re-transmit on late collision: enabled
0x03808: TDLEN (Transmit desc length) 0x00010000
0x03810: TDH (Transmit desc head) 0x0000017B
0x03818: TDT (Transmit desc tail) 0x0000017B
0x03820: TIDV (Transmit delay timer) 0x00000008
PHY type: unknown
# cat /proc/interrupts
CPU0 CPU1 CPU2 CPU3 CPU4 CPU5 CPU6 CPU7
0: 314207 315885 314312 315589 314693 313133 314829 313781 IO-APIC-edge timer
1: 1 0 0 0 1 0 1 0 IO-APIC-edge i8042
8: 0 0 1 0 0 0 0 0 IO-APIC-edge rtc0
9: 0 0 0 0 0 0 0 0 IO-APIC-fasteoi acpi
12: 0 0 0 0 2 2 0 0 IO-APIC-edge i8042
14: 0 0 0 0 0 0 0 0 IO-APIC-edge ata_piix
15: 0 0 0 0 0 0 0 0 IO-APIC-edge ata_piix
16: 21101 21599 21380 21504 21582 21023 21425 20688 IO-APIC-fasteoi megasas
20: 27637 27898 27764 27982 27930 27774 28027 27871 IO-APIC-fasteoi ata_piix
22: 16 21 24 16 21 14 16 16 IO-APIC-fasteoi uhci_hcd:usb3, uhci_hcd:usb5
23: 0 0 0 1 0 0 1 0 IO-APIC-fasteoi ehci_hcd:usb1, uhci_hcd:usb2, uhci_hcd:usb4
64: 593465 591668 593182 591773 592618 594444 592347 594362 PCI-MSI-edge eth0
65: 58179 57491 57900 57697 57715 58173 57916 57843 PCI-MSI-edge eth1
NMI: 121 256 166 150 138 266 174 180 Non-maskable interrupts
LOC: 483063 528474 431655 329210 509239 706536 544377 398922 Local timer interrupts
SPU: 0 0 0 0 0 0 0 0 Spurious interrupts
PMI: 121 256 166 150 138 266 174 180 Performance monitoring interrupts
IWI: 0 0 0 0 0 0 0 0 IRQ work interrupts
RES: 200356 197221 204109 258015 286040 226781 248662 229534 Rescheduling interrupts
CAL: 80006 242667 175073 168423 136371 136279 136247 135944 Function call interrupts
TLB: 4472 5343 5035 5019 8794 8647 8618 8947 TLB shootdowns
TRM: 0 0 0 0 0 0 0 0 Thermal event interrupts
THR: 0 0 0 0 0 0 0 0 Threshold APIC interrupts
MCE: 0 0 0 0 0 0 0 0 Machine check exceptions
MCP: 266 266 266 266 266 266 266 266 Machine check polls
ERR: 0
MIS: 0
#
Я бы смотрел на rx-usecs и tx-usecs, увеличить до 100 хотя бы.так же размеры буферов увеличить в sysctl и через ethtool выставить максимальный размер буфера, доступный для твоей карты (ethtool с ключиком -c для просмотра и -C для записи)