Сервер поставили, он работал неделю нормально, а потом начались глюки, начал виснуть сетевой интерфейс каждые 20 минут, зависание имеет следующую особенность, пинги есть на этот интерфейс em0, но ничего не работает, выкидывает людей из mpd, и нельзя подключиться к серваку по ssh, хотя сервер пингуется. Но через вторую сетевую карту em1 по ssh подключается без проблем.
Если сделать ifconfig em0 down && ifconfig em0 up, то все начинает снова работать, поэтому сча как временная мера стоит костыль в кроне, который опускает и поднимает интерфейс каждые 15 минут, ладно бы если костыль не влиял, а то у некоторых людей в этот момент он отключает от инета.
В dmesg ничего не выводит, бывает только
Код: Выделить всё
Limiting icmp ping response from 310 to 100 packets/sec
Вариант железа исключил полностью, переносил все на другую машину с другим винтов(делал образ с этого), все тоже самое, машинки примерно одинаковые сетевые карты стоят одни и теже.
Подскажите где копать? и как копать? и может можно сделать пока костыль поумнее,(а то непонятно, процентов 5 людей отключает в момент опускание и поднятие интерфейса, а для всех остальных это даже незаметно)
Код: Выделить всё
8.2-RELEASE FreeBSD 8.2-RELEASE #10: Thu May 5 12:59:51 EEST 2011 root@nastest:/usr/obj/usr/src/sys/GEN_NAS amd64
Код: Выделить всё
# Uncomment this to prevent users from seeing information about processes that
# are being run under another UID.
#security.bsd.see_other_uids=0
compat.linux.osrelease=2.6.16
#net.graph.maxdgram=128000
#net.graph.recvspace=128000
net.inet.tcp.sendspace=1048576
net.inet.tcp.recvspace=1048576
net.inet.tcp.syncookies=1
net.inet.tcp.drop_synfin=1
net.inet.tcp.blackhole=2
net.inet.udp.blackhole=1
net.inet.tcp.nolocaltimewait=1
net.inet.tcp.maxtcptw=40960
net.inet.icmp.icmplim=100
net.inet.icmp.drop_redirect=1
net.inet.icmp.log_redirect=0
net.inet.icmp.bmcastecho=0
net.inet.icmp.maskrepl=0
net.inet.ip.dummynet.expire=0
net.inet.ip.dummynet.hash_size=2048
net.inet.ip.fw.dyn_buckets=2048
net.inet.ip.ttl=128
net.inet.ip.portrange.randomized=0
net.inet.ip.fastforwarding=0
#net.inet.ip.intr_queue_maxlen=20000
net.inet.ip.fw.one_pass=1
net.inet.ip.sourceroute=0
net.inet.ip.accept_sourceroute=0
net.inet.ip.redirect=0
net.inet.ip.portrange.first=10000
net.inet.ip.portrange.last=65535
net.inet.flowtable.enable=0
net.link.ether.inet.max_age=1200
net.link.ether.inet.log_arp_movements=0
net.graph.maxdgram=512000
net.graph.recvspace=512000
net.graph.maxdata=2048
kern.ipc.maxsockbuf=8388608
kern.ipc.somaxconn=24096
kern.maxfilesperproc=200000
kern.maxfiles=409600
kern.ipc.maxsockets=204800
kern.ipc.nmbclusters=65536
Код: Выделить всё
netstat -w 1
input (Total) output
packets errs idrops bytes packets errs bytes colls
41676 0 0 24099714 47415 0 35450217 0
45278 0 0 32064844 50115 0 41271448 0
51919 0 0 36308233 56120 0 44956458 0
ядро, ну и там ещё убраны ненужные device
Код: Выделить всё
options IPFIREWALL
options IPFIREWALL_DEFAULT_TO_ACCEPT
options IPFIREWALL_VERBOSE
options IPFIREWALL_VERBOSE_LIMIT=100
options IPFIREWALL_FORWARD
options IPDIVERT
options DUMMYNET
options DEVICE_POLLING
options HZ=1000
options NETGRAPH
options NETGRAPH_NETFLOW
options NETGRAPH_IPFW
options NETGRAPH_NAT
options NETGRAPH_PPPOE
options NETGRAPH_PPTPGRE
options NETGRAPH_ECHO
options NETGRAPH_ETHER
options NETGRAPH_SOCKET
options NETGRAPH_BPF
options NETGRAPH_TEE
options NETGRAPH_SPLIT
options NETGRAPH_KSOCKET
options NETGRAPH_IFACE
options NETGRAPH_MPPC_ENCRYPTION
options NETGRAPH_PPP
options NETGRAPH_TCPMSS
options NETGRAPH_VJC
options NETGRAPH_CAR
Код: Выделить всё
vmstat 1
procs memory page disk faults cpu
r b w avm fre flt re pi po fr sr ad5 in sy cs us sy id
0 0 0 559M 1789M 3120 0 0 0 2885 0 0 11354 3563 101345 2 23 75
0 0 0 559M 1789M 13 0 0 0 0 0 8 14709 749 103962 0 24 76
0 0 0 559M 1789M 1 0 0 0 0 0 0 14691 405 107381 0 25 75
0 0 0 559M 1789M 26 0 0 0 12 0 0 14990 1292 137134 0 32 68
0 0 0 559M 1789M 1 0 0 0 8 0 0 13577 750 113969 0 19 80
Код: Выделить всё
kldstat
Id Refs Address Size Name
1 12 0xffffffff80100000 c9ea70 kernel
2 1 0xffffffff80e22000 3ee0 linprocfs.ko
3 1 0xffffffff80e26000 1cf24 linux.ko
Код: Выделить всё
pciconf -lv
hostb0@pci0:0:0:0: class=0x060000 card=0x76101462 chip=0x2e308086 rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
class = bridge
subclass = HOST-PCI
pcib1@pci0:0:1:0: class=0x060400 card=0x76101462 chip=0x2e318086 rev=0x03 hdr=0x01
vendor = 'Intel Corporation'
class = bridge
subclass = PCI-PCI
pcib2@pci0:0:28:0: class=0x060400 card=0x76101462 chip=0x27d08086 rev=0x01 hdr=0x01
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) PCIe Root Port'
class = bridge
subclass = PCI-PCI
pcib3@pci0:0:28:2: class=0x060400 card=0x76101462 chip=0x27d48086 rev=0x01 hdr=0x01
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) PCIe Root Port'
class = bridge
subclass = PCI-PCI
pcib4@pci0:0:28:3: class=0x060400 card=0x76101462 chip=0x27d68086 rev=0x01 hdr=0x01
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) PCIe Root Port'
class = bridge
subclass = PCI-PCI
pcib5@pci0:0:30:0: class=0x060401 card=0x76101462 chip=0x244e8086 rev=0xe1 hdr=0x01
vendor = 'Intel Corporation'
device = '82801 Family (ICH2/3/4/5/6/7/8/9,63xxESB) Hub Interface to PCI Bridge'
class = bridge
subclass = PCI-PCI
isab0@pci0:0:31:0: class=0x060100 card=0x76101462 chip=0x27b88086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = 'Intel 82801GB/GR (ICH7 Family) LPC Interface Controller - 27B8 (945GL)'
class = bridge
subclass = PCI-ISA
atapci0@pci0:0:31:1: class=0x01018a card=0x76101462 chip=0x27df8086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) Ultra ATA Storage Controller'
class = mass storage
subclass = ATA
atapci1@pci0:0:31:2: class=0x01018f card=0x76101462 chip=0x27c08086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = '82801GB/GR/GH (ICH7 Family) Serial ATA Storage Controller'
class = mass storage
subclass = ATA
none0@pci0:0:31:3: class=0x0c0500 card=0x76101462 chip=0x27da8086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = 'Intel[R] 82801G (ICH7 Family) C- 27DA (82801G)'
class = serial bus
subclass = SMBus
vgapci0@pci0:1:0:0: class=0x030000 card=0x00000000 chip=0x014010de rev=0xa2 hdr=0x00
vendor = 'NVIDIA Corporation'
device = 'NVIDIA GeForce 6600 GT (NV43)'
class = display
subclass = VGA
em0@pci0:3:0:0: class=0x020000 card=0x10828086 chip=0x107d8086 rev=0x06 hdr=0x00
vendor = 'Intel Corporation'
device = 'PRO/1000 PT'
class = network
subclass = ethernet
em1@pci0:4:0:0: class=0x020000 card=0x10828086 chip=0x107d8086 rev=0x06 hdr=0x00
vendor = 'Intel Corporation'
device = 'PRO/1000 PT'
class = network
subclass = ethernet