Jump to content
Калькуляторы

Падение FreeBsd-8

Стояла фря 7.0-release + stargazer 2.405 + bind9 + ipfw + ipnat (еще mrtg+snmp) . (атлон2, 2 гига ОЗУ)

>200 клиентов 2 езернет карточки . Одна смотрит в локаль(intel pro) другая в мир(встроенная).

Ни с того ни с сего начались ребуты, падать в кору.

 

Так как серв давно собирался и там было наставлено много программного обеспечения для тесто, то думал ,что переустановка поможет.

 

Взял другую машину(феном3, 2 гига ОЗУ)

установил

фря 8.0-release + stargazer 2.406 + bind9 + ipfw + ipnat (еще mrtg+snmp) . Поставил 100мб карточки релтек (так как ставлю временно).

После аптайма в 20 часов - ребут... и так несколько раз в день.

 

Привожу каое какие параметры системы:

 

billing# top -b
last pid:  8831;  load averages:  0.05,  0.03,  0.00  up 0+07:18:13    15:55:39
65 processes:  1 running, 64 sleeping

Mem: 142M Active, 29M Inact, 59M Wired, 124K Cache, 43M Buf, 3025M Free
Swap: 4096M Total, 4096M Free


  PID USERNAME  THR PRI NICE   SIZE    RES STATE   C   TIME   WCPU COMMAND
1048 root       11  44  -19 31088K 23588K accept  1  15:18  0.00% stargazer
  794 bind        6  44    0 72988K 58904K kqread  1   1:20  0.00% named
1039 mysql      13  44    0   334M 59384K ucond   2   0:47  0.00% mysqld
1523 root        1  44    0 21656K 14384K select  1   0:01  0.00% httpd
6135 www         1  44    0 22680K 15960K accept  0   0:00  0.00% httpd
5435 www         1  44    0 22680K 15972K accept  1   0:00  0.00% httpd
7599 www         1  45    0 22680K 15968K accept  0   0:00  0.00% httpd
1440 root        1  44    0  4492K  3044K bpf     1   0:00  0.00% arpwatch
1049 root        1  73    0  5756K  2824K msgrcv  1   0:00  0.00% stargazer
  725 root        1  44    0  3344K  1328K select  0   0:00  0.00% syslogd
1541 root        1  44    0  6676K  3660K select  1   0:00  0.00% sshd
1546 root        1  76    0  3372K  1380K nanslp  1   0:00  0.00% cron
7645 www         1  44    0 22680K 15668K accept  1   0:00  0.00% httpd
8056 www         1  44    0 22680K 15784K accept  0   0:00  0.00% httpd
7814 root        1  44    0  9400K  4332K sbwait  1   0:00  0.00% sshd
8821 root        1  44    0  9400K  4384K sbwait  2   0:00  0.00% sshd
7706 www         1  44    0 21656K 14540K accept  2   0:00  0.00% httpd
7985 www         1  44    0 21656K 14528K accept  1   0:00  0.00% httpd

 

 

billing# netstat -m
686/2269/2955 mbufs in use (current/cache/total)
346/976/1322/25600 mbuf clusters in use (current/cache/total/max)
346/934 mbuf+clusters out of packet secondary zone in use (current/cache)
0/77/77/12800 4k (page size) jumbo clusters in use (current/cache/total/max)
0/0/0/6400 9k jumbo clusters in use (current/cache/total/max)
0/0/0/3200 16k jumbo clusters in use (current/cache/total/max)
901K/2827K/3729K bytes allocated to network (current/cache/total)
0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters)
0/0/0 requests for jumbo clusters denied (4k/9k/16k)
0/42/6656 sfbufs in use (current/peak/max)
0 requests for sfbufs denied
0 requests for sfbufs delayed
39 requests for I/O initiated by sendfile
0 calls to protocol drain routines

 

 

billing# tail -f /var/log/messages
Feb  9 09:00:00 billing newsyslog[2191]: logfile turned over due to size>100K
Feb  9 14:56:32 billing named[794]: clients-per-query increased to 15
Feb  9 15:16:32 billing named[794]: clients-per-query decreased to 14
Feb  9 15:36:32 billing named[794]: clients-per-query decreased to 13
Feb  9 15:55:33 billing su: morfey to root on /dev/pts/1
Feb  9 15:56:32 billing named[794]: clients-per-query decreased to 12

 

 

В мессагесах бывает:

Feb  8 20:23:29 billing named[794]: client 10.10.0.46#52662: error sending response: not enough free resources
Feb  8 20:26:00 billing named[794]: client 10.10.2.12#56991: error sending response: not enough free resources
Feb  8 20:29:59 billing named[794]: client 10.10.0.52#1090: error sending response: not enough free resources
Feb  8 20:30:49 billing named[794]: client 10.10.0.48#1260: error sending response: not enough free resources
Feb  8 20:30:49 billing named[794]: client 10.10.0.48#1025: error sending response: not enough free resources
Feb  8 20:30:49 billing named[794]: client 10.10.0.48#1136: error sending response: not enough free resources
Feb  8 20:30:49 billing named[794]: client 10.10.0.48#1066: error sending response: not enough free resources

 

 

 

billing# dmesg 
Copyright (c) 1992-2009 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.             
FreeBSD 8.0-RELEASE #1: Fri Jan 22 23:19:16 UTC 2010                     
    morfey@billing:/usr/obj/usr/src/sys/GENERIC                          
Timecounter "i8254" frequency 1193182 Hz quality 0                       
CPU: AMD Phenom(tm) 8750 Triple-Core Processor (2411.11-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x100f23  Stepping = 3                    
  Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFL
USH,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x802009<SSE3,MON,CX16,POPCNT>                                                                                  
  AMD Features=0xee500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM,3DNow!+,3DNow!>                                           
  AMD Features2=0x7ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS>                                             
  TSC: P-state invariant                                                                                                    
real memory  = 4294967296 (4096 MB)                                                                                         
avail memory = 3409096704 (3251 MB)                                                                                         
ACPI APIC Table: <082908 APIC1418>                                                                                          
FreeBSD/SMP: Multiprocessor System Detected: 3 CPUs                                                                         
FreeBSD/SMP: 1 package(s) x 3 core(s)                                                                                       
cpu0 (BSP): APIC ID:  0                                                                                                    
cpu1 (AP): APIC ID:  1                                                                                                     
cpu2 (AP): APIC ID:  2                                                                                                     
ioapic0 <Version 2.1> irqs 0-23 on motherboard                                                                              
kbd1 at kbdmux0                                                                                                             
acpi0: <082908 RSDT1418> on motherboard                                                                                     
acpi0: [ITHREAD]                                                                                                            
acpi0: Power Button (fixed)                                                                                                 
acpi0: reservation of ffb80000, 80000 (3) failed                                                                            
acpi0: reservation of 0, a0000 (3) failed                                                                                   
acpi0: reservation of 100000, cff00000 (3) failed                                                                           
ACPI HPET table warning: Sequence is non-zero (2)                                                                           
Timecounter "ACPI-safe" frequency 3579545 Hz quality 850                                                                    
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0                                                        
acpi_hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0                                               
acpi_hpet0: HPET never increments, disabling                                                                                
device_attach: acpi_hpet0 attach returned 6                                                                                 
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0                                                                     
pci0: <ACPI PCI bus> on pcib0                                                                                               
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0                                                                          
pci1: <ACPI PCI bus> on pcib1                                                                                               
vgapci0: <VGA-compatible display> port 0xc000-0xc0ff mem 0xd0000000-0xdfffffff,0xfbdf0000-0xfbdfffff,0xfbc00000-0xfbcfffff irq 18 at device 5.0 on pci1
pcib2: <ACPI PCI-PCI bridge> irq 18 at device 6.0 on pci0                                                                                              
pci2: <ACPI PCI bus> on pcib2                                                                                                                          
re0: <RealTek 8168/8168B/8168C/8168CP/8168D/8168DP/8111B/8111C/8111CP/8111DP PCIe Gigabit Ethernet> port 0xd800-0xd8ff mem 0xfbeff000-0xfbefffff,0xfaff0000-0xfaffffff irq 18 at device 0.0 on pci2
re0: Using 1 MSI messages                                                                                                                                                                          
re0: Chip rev. 0x3c000000                                                                                                                                                                          
re0: MAC rev. 0x00400000                                                                                                                                                                           
miibus0: <MII bus> on re0                                                                                                                                                                          
rgephy0: <RTL8169S/8110S/8211B media interface> PHY 1 on miibus0                                                                                                                                   
rgephy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto                                                                                                           
re0: Ethernet address: 00:22:15:dd:4d:48                                                                                                                                                           
re0: [FILTER]                                                                                                                                                                                      
atapci0: <ATI IXP700/800 SATA300 controller> port 0xb000-0xb007,0xa000-0xa003,0x9000-0x9007,0x8000-0x8003,0x7000-0x700f mem 0xfbbff800-0xfbbffbff irq 22 at device 17.0 on pci0                    
atapci0: [ITHREAD]                                                                                                                                                                                 
atapci0: AHCI v1.10 controller with 4 3Gbps ports, PM supported                                                                                                                                    
ata2: <ATA channel 0> on atapci0                                                                                                                                                                   
ata2: [ITHREAD]                                                                                                                                                                                    
ata3: <ATA channel 1> on atapci0                                                                                                                                                                   
ata3: [ITHREAD]                                                                                                                                                                                    
ata4: <ATA channel 2> on atapci0                                                                                                                                                                   
ata4: [ITHREAD]                                                                                                                                                                                    
ata5: <ATA channel 3> on atapci0                                                                                                                                                                   
ata5: [ITHREAD]                                                                                                                                                                                    
ohci0: <OHCI (generic) USB controller> mem 0xfbbfe000-0xfbbfefff irq 16 at device 18.0 on pci0                                                                                                     
ohci0: [ITHREAD]                                                                                                                                                                                   
usbus0: <OHCI (generic) USB controller> on ohci0                                                                                                                                                   
ohci1: <OHCI (generic) USB controller> mem 0xfbbfd000-0xfbbfdfff irq 16 at device 18.1 on pci0                                                                                                     
ohci1: [ITHREAD]                                                                                                                                                                                   
usbus1: <OHCI (generic) USB controller> on ohci1                                                                                                                                                   
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xfbbff000-0xfbbff0ff irq 17 at device 18.2 on pci0                                                                                                 
ehci0: [ITHREAD]                                                                                                                                                                                   
usbus2: EHCI version 1.0                                                                                                                                                                           
usbus2: <EHCI (generic) USB 2.0 controller> on ehci0                                                                                                                                               
ohci2: <OHCI (generic) USB controller> mem 0xfbbfc000-0xfbbfcfff irq 18 at device 19.0 on pci0                                                                                                     
ohci2: [ITHREAD]                                                                                                                                                                                   
usbus3: <OHCI (generic) USB controller> on ohci2                                                                                                                                                   
ohci3: <OHCI (generic) USB controller> mem 0xfbbfb000-0xfbbfbfff irq 18 at device 19.1 on pci0                                                                                                     
ohci3: [ITHREAD]                                                                                                                                                                                   
usbus4: <OHCI (generic) USB controller> on ohci3                                                                                                                                                   
ehci1: <EHCI (generic) USB 2.0 controller> mem 0xfbbfa800-0xfbbfa8ff irq 19 at device 19.2 on pci0                                                                                                 
ehci1: [ITHREAD]                                                                                                                                                                                   
usbus5: EHCI version 1.0                                                                                                                                                                           
usbus5: <EHCI (generic) USB 2.0 controller> on ehci1                                                                                                                                               
pci0: <serial bus, SMBus> at device 20.0 (no driver attached)                                                                                                                                      
atapci1: <ATI IXP700/800 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xff00-0xff0f at device 20.1 on pci0                                                                         
ata0: <ATA channel 0> on atapci1                                                                                                                                                                   
ata0: [ITHREAD]                                                                                                                                                                                    
ata1: <ATA channel 1> on atapci1                                                                                                                                                                   
ata1: [ITHREAD]                                                                                                                                                                                    
pci0: <multimedia, HDA> at device 20.2 (no driver attached)                                                                                                                                        
isab0: <PCI-ISA bridge> at device 20.3 on pci0                                                                                                                                                     
isa0: <ISA bus> on isab0                                                                                                                                                                           
pcib3: <ACPI PCI-PCI bridge> at device 20.4 on pci0                                                                                                                                                
pci3: <ACPI PCI bus> on pcib3                                                                                                                                                                      
rl0: <RealTek 8139 10/100BaseTX> port 0xe800-0xe8ff mem 0xfbfffc00-0xfbfffcff irq 20 at device 6.0 on pci3                                                                                         
miibus1: <MII bus> on rl0                                                                                                                                                                          
rlphy0: <RealTek internal media interface> PHY 0 on miibus1                                                                                                                                        
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto                                                                                                                                      
rl0: Ethernet address: 00:a1:b0:11:dc:7d                                                                                                                                                           
rl0: [ITHREAD]                                                                                                                                                                                     
ohci4: <OHCI (generic) USB controller> mem 0xfbbf9000-0xfbbf9fff irq 18 at device 20.5 on pci0                                                                                                     
ohci4: [ITHREAD]                                                                                                                                                                                   
usbus6: <OHCI (generic) USB controller> on ohci4                                                                                                                                                   
acpi_button0: <Power Button> on acpi0                                                                                                                                                              
atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0                                                                                                                                          
ACPI Warning: \\_SB_.PCI0.SBRG.FDC_._FDE: Return type mismatch - found Package, expected Buffer 20090521 nspredef-1051                                                                             
fdc0: <floppy drive controller (FDE)> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0                                                                                                                  
fdc0: [FILTER]                                                                                                                                                                                     
ppc0: <Parallel port> port 0x378-0x37f irq 7 on acpi0                                                                                                                                              
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode                                                                                                                                             
ppc0: [ITHREAD]                                                                                                                                                                                    
ppbus0: <Parallel port bus> on ppc0                                                                                                                                                                
plip0: <PLIP network interface> on ppbus0                                                                                                                                                          
plip0: [ITHREAD]
lpt0: <Printer> on ppbus0
lpt0: [ITHREAD]
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
uart0: [FILTER]
cpu0: <ACPI CPU> on acpi0
acpi_throttle0: <ACPI CPU Throttling> on cpu0
hwpstate0: <Cool`n'Quiet 2.0> on cpu0
cpu1: <ACPI CPU> on acpi0
cpu2: <ACPI CPU> on acpi0
acpi_hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 900
pmtimer0 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounters tick every 1.000 msec
IP Filter: v4.1.28 initialized.  Default = pass all, Logging = enabled
ipfw2 (+ipv6) initialized, divert enabled, nat loadable, rule-based forwarding enabled, default to accept, logging disabled
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 12Mbps Full Speed USB v1.0
usbus2: 480Mbps High Speed USB v2.0
usbus3: 12Mbps Full Speed USB v1.0
usbus4: 12Mbps Full Speed USB v1.0
usbus5: 480Mbps High Speed USB v2.0
usbus6: 12Mbps Full Speed USB v1.0
ugen0.1: <ATI> at usbus0
uhub0: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ugen1.1: <ATI> at usbus1
uhub1: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
ugen2.1: <ATI> at usbus2
uhub2: <ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus2
ugen3.1: <ATI> at usbus3
uhub3: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3
ugen4.1: <ATI> at usbus4
uhub4: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus4
ugen5.1: <ATI> at usbus5
uhub5: <ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus5
ugen6.1: <ATI> at usbus6
uhub6: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus6
uhub6: 2 ports with 2 removable, self powered
uhub0: 3 ports with 3 removable, self powered
uhub1: 3 ports with 3 removable, self powered
uhub3: 3 ports with 3 removable, self powered
uhub4: 3 ports with 3 removable, self powered
acd0: DVDR <NEC DVD RW ND-3540A/1.01> at ata0-master UDMA33
ad1: 38166MB <WDC WD400BB-00JHA0 05.01C05> at ata0-slave UDMA100
SMP: AP CPU #2 Launched!
SMP: AP CPU #1 Launched!
Root mount waiting for: usbus5 usbus2
Root mount waiting for: usbus5 usbus2
uhub2: 6 ports with 6 removable, self powered
uhub5: 6 ports with 6 removable, self powered
Trying to mount root from ufs:/dev/ad1s1a
WARNING: / was not properly dismounted
WARNING: /home was not properly dismounted
WARNING: /var was not properly dismounted
re0: link state changed to UP
re0: promiscuous mode enabled

 

 

 

 

 

PS. место на дисках есть

 

 

Share this post


Link to post
Share on other sites

И еще RELEASE это же и есть STABLE ибо не нашел именно stable версии

Share this post


Link to post
Share on other sites
И еще RELEASE это же и есть STABLE ибо не нашел именно stable версии

туплю, в свн есть..

Share this post


Link to post
Share on other sites

"тюнинга" нет никакого в /boot/loader.conf, /etc/sysctl.conf ?

на чем падает, где анализ корки?

получите корку и дайте трейс, затем будем общаться дальше.

http://www.freebsd.org/doc/en_US.ISO8859-1...erneldebug.html

 

pliskinsad,

почему память? на двух разных машинах сразу?

Share this post


Link to post
Share on other sites

Ссори, читал между строк :( подумал что вы систему на старом железе поменяли просто.

Share this post


Link to post
Share on other sites
"тюнинга" нет никакого в /boot/loader.conf, /etc/sysctl.conf ?

на чем падает, где анализ корки?

получите корку и дайте трейс, затем будем общаться дальше.

http://www.freebsd.org/doc/en_US.ISO8859-1...erneldebug.html

 

pliskinsad,

почему память? на двух разных машинах сразу?

Тюнинга нету.

 

billing# ls /var/crash/

minfree

 

корок нема ( , хоть и ядро makeoptions DEBUG=-g

 

 

 

Edited by morfey1

Share this post


Link to post
Share on other sites
"тюнинга" нет никакого в /boot/loader.conf, /etc/sysctl.conf ?

на чем падает, где анализ корки?

получите корку и дайте трейс, затем будем общаться дальше.

http://www.freebsd.org/doc/en_US.ISO8859-1...erneldebug.html

Тюнинга нету.

 

billing# ls /var/crash/

minfree

 

корок нема ( , хоть и ядро makeoptions DEBUG=-g

учитывая что своп раздел есть, корка должна быть (если не правили /etc/defaults/rc.conf а в /etc/rc.conf нету ничего про коредамп)

значит либо watchdog (которого на амдешных матерях можно и не найти) либо проблемы с железом или всё-таки блоком питания

блоки питания разные на этих машинах? (огласите модели) попробуйте поставить более мощный и дорогой блок (взять у друга на время)

 

Share this post


Link to post
Share on other sites

Поставил новое железо. Обновил до :

 

billing-host# uname -a
FreeBSD billing-host 8.0-STABLE FreeBSD 8.0-STABLE #0 r203765: Thu Aug  5 02:34:52 UTC 2010     morfey@billing-host:/usr/obj/usr/src/sys/kernel_11_02.2010  i386

 

Стоял на столе, работал 2 недели. Только поставил на место роутера, ребут..

 

Создалась корка, бектрейс:

 

Reading symbols from /boot/kernel/linprocfs.ko...Reading symbols from /boot/kernel/linprocfs.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/linprocfs.ko
Reading symbols from /boot/kernel/linux.ko...Reading symbols from /boot/kernel/linux.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/linux.ko
Reading symbols from /boot/kernel/ipl.ko...Reading symbols from /boot/kernel/ipl.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/ipl.ko
#0  doadump () at pcpu.h:246
<------>in pcpu.h
(kgdb) bt
#0  doadump () at pcpu.h:246
#1  0xc0889187 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:416
#2  0xc0889479 in panic (fmt=) at /usr/src/sys/kern/kern_shutdown.c:579
#3  0xc0bcb91c in trap_fatal (frame=0xe56db904, eva=4) at /usr/src/sys/i386/i386/trap.c:938
#4  0xc0bcbba0 in trap_pfault (frame=0xe56db904, usermode=0, eva=4) at /usr/src/sys/i386/i386/trap.c:851
#5  0xc0bcc4e5 in trap (frame=0xe56db904) at /usr/src/sys/i386/i386/trap.c:533
#6  0xc0baeb4b in calltrap () at /usr/src/sys/i386/i386/exception.s:165
#7  0xc57a306a in nat_new (fin=0xe56dba44, np=0xc5575800, natsave=0x0, flags=) at /usr/src/sys/modules/ipfilter/../../contrib/ipfilter/netinet/ip_nat.c:2610
#8  0xc57a6a17 in fr_checknatin (fin=0xe56dba44, passp=0xe56dba40) at /usr/src/sys/modules/ipfilter/../../contrib/ipfilter/netinet/ip_nat.c:4155
#9  0xc57c0b86 in fr_check (ip=0xc5cd5810, hlen=20, ifp=0xc52e3c00, out=0, mp=0xe56dbb4c) at /usr/src/sys/modules/ipfilter/../../contrib/ipfilter/netinet/fil.c:2572
#10 0xc57b89be in fr_check_wrapper (arg=0x0, mp=0xe56dbb4c, ifp=0xc52e3c00, dir=1) at /usr/src/sys/modules/ipfilter/../../contrib/ipfilter/netinet/ip_fil_freebsd.c:186
#11 0xc093e0e8 in pfil_run_hooks (ph=0xc0dd6060, mp=0xe56dbb9c, ifp=0xc52e3c00, dir=1, inp=0x0) at /usr/src/sys/net/pfil.c:82
#12 0xc099f845 in ip_input (m=0xc5a68000) at /usr/src/sys/netinet/ip_input.c:517
#13 0xc093d509 in netisr_dispatch_src (proto=1, source=0, m=0xc5a68000) at /usr/src/sys/net/netisr.c:917
#14 0xc093d7a0 in netisr_dispatch (proto=1, m=0xc5a68000) at /usr/src/sys/net/netisr.c:1004
#15 0xc0933971 in ether_demux (ifp=0xc52e3c00, m=0xc5a68000) at /usr/src/sys/net/if_ethersubr.c:895
#16 0xc0933ec3 in ether_input (ifp=0xc52e3c00, m=0xc5a68000) at /usr/src/sys/net/if_ethersubr.c:754
#17 0xc061a88a in em_rxeof (adapter=0xc5329000, count=93) at /usr/src/sys/dev/e1000/if_em.c:4610
#18 0xc061cba7 in em_handle_rxtx (context=0xc5329000, pending=1) at /usr/src/sys/dev/e1000/if_em.c:1763
#19 0xc08c1a72 in taskqueue_run (queue=0xc5317880) at /usr/src/sys/kern/subr_taskqueue.c:239
#20 0xc08c1c7d in taskqueue_thread_loop (arg=0xc532d564) at /usr/src/sys/kern/subr_taskqueue.c:360
#21 0xc085ea21 in fork_exit (callout=0xc08c1bc0 <taskqueue_thread_loop>, arg=0xc532d564, frame=0xe56dbd38) at /usr/src/sys/kern/kern_fork.c:843
#22 0xc0baebc0 in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:270
(kgdb) bt full
#0  doadump () at pcpu.h:246
No locals.
#1  0xc0889187 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:416
<------>_giantcnt = (kgdb) quit

Edited by morfey1

Share this post


Link to post
Share on other sites

вот кусочек из core.txt.0

Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address<->= 0x4
fault code<----><------>= supervisor read, page not present
instruction pointer<--->= 0x20:0xc57a306a
stack pointer<->        = 0x28:0xe56db944
frame pointer<->        = 0x28:0xe56db9c8
code segment<--><------>= base 0x0, limit 0xfffff, type 0x1b
<------><------><------>= DPL 0, pres 1, def32 1, gran 1
processor eflags<------>= interrupt enabled, resume, IOPL = 0
current process><------>= 0 (em1 taskq)
trap number<---><------>= 12
panic: page fault
cpuid = 0
Uptime: 1h28m57s
Physical memory: 1907 MB
Dumping 133 MB: 118 102 86 70 54 38 22 6

 

панику вызвал интерфейс em1 ? он смотрит на провайдера

Share this post


Link to post
Share on other sites

Ну em0: <Intel® PRO/1000 Network Connection 6.9.14> port 0xec00-0xec3f mem 0xdffe0000-0xdfffffff,0xdffc0000-0xdffdffff irq 16 at device 6.0 on pci1

 

em ?

 

man em

 

...

 

em -- Intel(R) PRO/1000 Gigabit Ethernet adapter driver

...

Edited by morfey1

Share this post


Link to post
Share on other sites

Засылайте PR, чего уж там.

Share this post


Link to post
Share on other sites

Оно,ипнат всему виной, http://www.freebsd.org/cgi/query-pr.cgi?pr=131601

 

патч

 

--- sys/contrib/ipfilter/netinet/ip_nat.c.orig  2009-09-28 06:16:23.115024000 +0300
+++ sys/contrib/ipfilter/netinet/ip_nat.c       2010-02-23 18:38:03.906812238 +0200
@@ -2585,6 +2585,9 @@
{
        frentry_t *fr;
        ipnat_t *np;
+       if (fin->fin_p == IPPROTO_TCP && tcp == NULL)
+               return -1;
+

        np = ni->nai_np;

Share this post


Link to post
Share on other sites

какой PR, не разобрались же ещё.

сюда надо засылать глаза с руками:

#7  0xc57a306a in nat_new (fin=0xe56dba44, np=0xc5575800, natsave=0x0, flags=) at /usr/src/sys/modules/ipfilter/../../contrib/ipfilter/netinet/ip_nat.c:2610

 

автор, надеюсь есть vmcore и бинарники ядра вы ещё не трогали

 

- запакуйте /usr/src/sys/compile/kernel_11_02.2010 и приложите корку к архиву, потом понадобится, надо копаться во внутренностях (мне пока некогда, работы много)

- попробуйте получить ещё раз панику тамже

- попробуйте вынести НАТ на другую машину или сменить саму фукнцию трансляции на что-либо другое, ng_nat, libalias, etc...

Share this post


Link to post
Share on other sites

См. пост выше, вы наверное не успели прочитать пока писали :)

 

Но правы, на этой сторочке загвоздка

Edited by morfey1

Share this post


Link to post
Share on other sites

Чтото я напартачил...

Пересобрал ядро с этим патчем...

 

Ядро генерик с добавлеными опциями:

 

options <------>IPFIREWALL
options <------>IPFIREWALL_VERBOSE
options <------>IPFIREWALL_VERBOSE_LIMIT=20
options <------>IPFIREWALL_FORWARD
options <------>IPDIVERT
options <------>DUMMYNET
options <------>IPFIREWALL_DEFAULT_TO_ACCEPT

 

Теперь у меня загрузка top -S

 

   0 root       11 -68    0     0K    80K -       1  21:07 133.20% kernel

 

 

Ошибки ((((

billing-host# netstat -w1
            input        (Total)           output
   packets  errs idrops      bytes    packets  errs      bytes colls
      6979     0     0    3385724       6861     0    3311907     0
      6375     0     0    2852947       6298     0    2887886     0
      6500     0     0    3034947       6488     0    3052324     0
      6379     0     0    2837040       6218     0    2842613     0
      7224    25     0    3036058       6751     0    3066236     0
      2593     0     0    1216313       2936     0    1640190     0
      5678     1     0    2540578       5730     0    2784592     0
      7827     0     0    3734604       7662     0    3631549     0
      7268     0     0    3513313       7363     0    3576793     0
      6227     0     0    3281339       6230     0    3390139     0
      8340     0     0    5828287       9838     0    6239450     0
      5854   264     0    3879998       6891     0    4667481     0
      6802     0     0    4520351       7997     0    4671097     0
      7602     0     0    5251486       9005     0    5543393     0
      8284     0     0    5326174       9887     0    5632932     0
      6590     0     0    3126447       6460     0    3125397     0
      6808     0     0    3264627       6746     0    3236380     0
      6022     0     0    2989199       5995     0    3049357     0
      6810   219     0    3118886       6874     0    3429643     0
      1970     0     0    1085303       1781     0     881281     0
            input        (Total)           output

 

 

billing-host# systat
                    /0   /1   /2   /3   /4   /5   /6   /7   /8   /9   /10
     Load Average   |||||||||||||||||||||||

                    /0%  /10  /20  /30  /40  /50  /60  /70  /80  /90  /100
root         kernel XXXXXXXXXXXXXXXXXXXXXXXXXX
root         kernel XXXXXXXXXXXXXXXXXXXXXXX
root         kernel XXXXXXXXXXXXXXXXXXXXXX
root           idle XXXXXXXXXXXXXX
root           idle XXXXXXXXXXXXX

Share this post


Link to post
Share on other sites

Рестартонул ipnat , нагрузка на проц спала, и медленно начала рости :

 

Я наверное глупость сделал, LARGE_NAT прописал в исходниках...

 

billing-host# ipnat -s
mapped  in      7454483 out     7488178
added   785883  expired 668201
no memory       0       bad nat 243
inuse   38468
orphans 0
rules   15
wilds   0
hash efficiency 38.51%
bucket usage    90.42%
minimal length  0
maximal length  10
average length  2.597
TCP Entries per state
     0     1     2     3     4     5     6     7     8     9    10    11
    74 26731    20   321  1113   256   102     7    16     0  4090   365

 

Что делать ? :)

Share this post


Link to post
Share on other sites

- попробуйте вынести НАТ на другую машину или сменить саму фукнцию трансляции на что-либо другое, ng_nat, libalias, etc...

 

Share this post


Link to post
Share on other sites
Стояла фря 7.0-release + stargazer 2.405 + bind9 + ipfw + ipnat (еще mrtg+snmp) . (атлон2, 2 гига ОЗУ)

>200 клиентов 2 езернет карточки . Одна смотрит в локаль(intel pro) другая в мир(встроенная).

Ни с того ни с сего начались ребуты, падать в кору.

У ipnat были проблемы с утечками памяти. Лучше отказаться от него в пользу pf nat или libalias (ipfw kernel nat, ng_nat), в зависимости от вашей конфигурации. Кроме того, DNS лучше поднять на отдельной машине, а то и на нескольких.
Edited by photon

Share this post


Link to post
Share on other sites

DNS лучше поднять на отдельной машине, а то и на нескольких.

А ещё лучше заменить BIND на что-то более вменяемое.

Share this post


Link to post
Share on other sites
DNS лучше поднять на отдельной машине, а то и на нескольких.
А ещё лучше заменить BIND на что-то более вменяемое.

на 200 клиентов? не смешите народ.

Share this post


Link to post
Share on other sites

Перекомпилил без LARGE_NAT, стало все на свои места, может не в этом проблема, но все работает стабильно

 

                    /0   /1   /2   /3   /4   /5   /6   /7   /8   /9   /10
     Load Average   |

                    /0%  /10  /20  /30  /40  /50  /60  /70  /80  /90  /100
root           idle XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
root           idle XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
root         kernel XXXXXX
root         kernel XXXXX
root         kernel XXXXX

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this