From owner-freebsd-questions@FreeBSD.ORG Tue Oct 23 13:21:09 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A933A16A417 for ; Tue, 23 Oct 2007 13:21:09 +0000 (UTC) (envelope-from dwianto_rizky@yahoo.com) Received: from web62113.mail.re1.yahoo.com (web62113.mail.re1.yahoo.com [69.147.74.251]) by mx1.freebsd.org (Postfix) with SMTP id 47F8413C4C5 for ; Tue, 23 Oct 2007 13:21:08 +0000 (UTC) (envelope-from dwianto_rizky@yahoo.com) Received: (qmail 3798 invoked by uid 60001); 23 Oct 2007 12:54:20 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=sAcOouCTlVQ2leYizrof1CZAnpwcCBG27iXgqPYCCNM9bylBzPtKYpp1S5EughIaxX/iI4NaNVTqu31fcAfPIIrzDuUOABMUVW/WxfweX3vr8PsVsESOFEdaG++zjeUpvU/cuJ9vQAddB69sEstjiDDPP/CAtVlqGploOGnyCrI=; X-YMail-OSG: cL1Q1CoVM1noIhfjAZjYK8eZyA8LSSR4bpDw6dC4cDG.q2.IViU3kON6qSKAq988QLRF7Ccho6TI2Edbd.sR1hW7z5POJtreoAWmpwIUE9hI.1HOlu1.yRM0.ydVx437g63qhrVdetEhfl0- Received: from [202.249.25.26] by web62113.mail.re1.yahoo.com via HTTP; Tue, 23 Oct 2007 05:54:20 PDT Date: Tue, 23 Oct 2007 05:54:20 -0700 (PDT) From: dwianto rizky To: freebsd-questions@freebsd.org MIME-Version: 1.0 Message-ID: <624826.3421.qm@web62113.mail.re1.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: server shutted down frequently, related to [swi1: net] process ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Oct 2007 13:21:09 -0000 hi list, my server is frequently shutted down by itself. I've checked all of relevant logs, but it showed nothing suspicious. Then, I realized from the output of ps -aux that [swi1: net], and some irq have consumed the cpu load. # ps aux |more USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND root 10 42.7 0.0 0 8 ?? RL 6:26PM 26:46.85 [idle] root 31 21.7 0.0 0 8 ?? WL 6:26PM 7:24.36 [irq18: rl0] root 11 20.3 0.0 0 8 ?? WL 6:26PM 24:59.95 [swi1: net] root 32 6.2 0.0 0 8 ?? WL 6:26PM 9:15.25 [irq19: rl1] .... that was in "good" condition. usually, [swi1: net] consumed up >70% of cpu load, then followed by irq process on rl1 and rl0 interfaces. I've read through swi manual, and knows that this function is used to register and schedule software interrupt handlers. but I don't know what exactly "net" has made the interrupt. my question : - why did the swi process eat up my cpu load? what is the cause? - is the rl0 and rl1 has some problems, so their irq process consume some cpu load? - is there any relation between these problems with my server's self-shutted-down-behavior? thanks a lot for your responses. ####### PS : below is my dmesg output : Copyright (c) 1992-2007 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 6.2-STABLE #0: Sun Mar 18 00:39:02 WIT 2007 foo@foo.com:/usr/obj/usr/src/sys/ROUTER ACPI APIC Table: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (2992.53-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf49 Stepping = 9 Features=0xbfebfbff Features2=0x641d> AMD Features=0x20100000 AMD Features2=0x1 Logical CPUs per core: 2 real memory = 2146304000 (2046 MB) avail memory = 2095378432 (1998 MB) ioapic0: Changing APIC ID to 4 ioapic0 irqs 0-23 on motherboard ioapic1 irqs 24-47 on motherboard kbd1 at kbdmux0 acpi0: on motherboard Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 cpu0: on acpi0 acpi_button0: on acpi0 acpi_button1: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pcib2: irq 27 at device 2.0 on pci0 pci2: on pcib2 pci2: at device 0.0 (no driver attached) pci2: at device 0.1 (no driver attached) pcib3: irq 31 at device 3.0 on pci0 pci3: on pcib3 atapci0: port 0xfc00-0xfc07,0xf800-0xf803,0xf400-0xf407,0xf000-0xf003,0xec00-0xec0f,0xe800-0xe8ff irq 21 at device 15.0 on pci 0 ata2: on atapci0 ata3: on atapci0 atapci1: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xe400-0xe40f at device 15.1 on pci0 ata0: on atapci1 ata1: on atapci1 uhci0: port 0xe000-0xe01f irq 20 at device 16.0 on pci0 uhci0: [GIANT-LOCKED] usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xdc00-0xdc1f irq 22 at device 16.1 on pci0 uhci1: [GIANT-LOCKED] usb1: on uhci1 usb1: USB revision 1.0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0xd800-0xd81f irq 21 at device 16.2 on pci0 uhci2: [GIANT-LOCKED] usb2: on uhci2 usb2: USB revision 1.0 uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered uhci3: port 0xd400-0xd41f irq 23 at device 16.3 on pci0 uhci3: [GIANT-LOCKED] usb3: on uhci3 usb3: USB revision 1.0 uhub3: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub3: 2 ports with 2 removable, self powered ehci0: mem 0xdffff000-0xdffff0ff irq 21 at device 16.4 on pci0 ehci0: [GIANT-LOCKED] usb4: EHCI version 1.0 usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3 usb4: on ehci0 usb4: USB revision 2.0 uhub4: VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub4: 8 ports with 8 removable, self powered isab0: at device 17.0 on pci0 isa0: on isab0 pcib4: at device 19.0 on pci0 pci4: on pcib4 pci4: at device 1.0 (no driver attached) pcib5: at device 19.1 on pci0 pci5: on pcib5 re0: port 0x9c00-0x9cff mem 0xdfbff000-0xdfbff0ff irq 17 at device 3.0 on pci5 miibus0: on re0 rgephy0: on miibus0 rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto re0: Ethernet address: 00:0a:79:33:e6:9e re0: [FAST] rl0: port 0x9800-0x98ff mem 0xdfbfe000-0xdfbfe0ff irq 18 at device 4.0 on pci5 miibus1: on rl0 rlphy0: on miibus1 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: Ethernet address: 00:50:bf:21:89:d6 rl1: port 0x9400-0x94ff mem 0xdfbfd000-0xdfbfd0ff irq 19 at device 5.0 on pci5 miibus2: on rl1 rlphy1: on miibus2 rlphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl1: Ethernet address: 00:50:bf:21:8d:cf rl2: port 0x9000-0x90ff mem 0xdfbfc000-0xdfbfc0ff irq 16 at device 6.0 on pci5 miibus3: on rl2 rlphy2: on miibus3 rlphy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl2: Ethernet address: 00:c0:26:62:54:43 re1: port 0x8c00-0x8cff mem 0xdfbfb000-0xdfbfb0ff irq 20 at device 7.0 on pci5 miibus4: on re1 rgephy1: on miibus4 rgephy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto re1: Ethernet address: 00:18:f3:bf:49:23 re1: [FAST] acpi_tz0: on acpi0 sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A ppc0: port 0x378-0x37f,0x778-0x77b irq 7 drq 3 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/16 bytes threshold ppbus0: on ppc0 ppi0: on ppbus0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] pmtimer0 on isa0 orm0: at iomem 0xc0000-0xcffff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 2992534995 Hz quality 800 Timecounters tick every 1.000 msec ad4: 76319MB at ata2-master SATA150 Trying to mount root from ufs:/dev/ad4s1a re0: link state changed to UP re1: link state changed to UP re0: link state changed to DOWN re1: link state changed to DOWN re1: link state changed to UP re0: link state changed to UP mld6_input: src :: is not link-local (grp=ff02::0001:ffd2:8804) mld6_input: src :: is not link-local (grp=ff02::0001:ffd2:8804) mld6_input: src :: is not link-local (grp=ff02::0001:ffef:18f4) mld6_input: src :: is not link-local (grp=ff02::0001:ff22:dfac) arplookup 192.168.0.10 failed: host is not on local network re0: promiscuous mode enabled re0: link state changed to DOWN rl0: promiscuous mode enabled plip0: promiscuous mode enabled pflog0: promiscuous mode enabled pflog0: promiscuous mode disabled pfsync0: promiscuous mode enabled pfsync0: promiscuous mode disabled rl1: promiscuous mode enabled re1: promiscuous mode enabled re1: link state changed to DOWN rl2: promiscuous mode enabled lo0: promiscuous mode enabled re1: link state changed to UP re0: link state changed to UP re0: promiscuous mode disabled re0: link state changed to DOWN rl0: promiscuous mode disabled plip0: promiscuous mode disabled rl1: promiscuous mode disabled re1: promiscuous mode disabled re1: link state changed to DOWN rl2: promiscuous mode disabled lo0: promiscuous mode disabled re1: link state changed to UP re0: link state changed to UP re0: promiscuous mode enabled re0: link state changed to DOWN rl0: promiscuous mode enabled plip0: promiscuous mode enabled pflog0: promiscuous mode enabled pflog0: promiscuous mode disabled pfsync0: promiscuous mode enabled pfsync0: promiscuous mode disabled rl1: promiscuous mode enabled re1: promiscuous mode enabled re1: link state changed to DOWN rl2: promiscuous mode enabled lo0: promiscuous mode enabled re1: link state changed to UP re0: link state changed to UP re0: promiscuous mode disabled re0: link state changed to DOWN rl0: promiscuous mode disabled plip0: promiscuous mode disabled rl1: promiscuous mode disabled re1: promiscuous mode disabled re1: link state changed to DOWN rl2: promiscuous mode disabled lo0: promiscuous mode disabled re1: link state changed to UP re0: link state changed to UP re0: promiscuous mode enabled re0: link state changed to DOWN rl0: promiscuous mode enabled plip0: promiscuous mode enabled pflog0: promiscuous mode enabled pflog0: promiscuous mode disabled pfsync0: promiscuous mode enabled pfsync0: promiscuous mode disabled rl1: promiscuous mode enabled re1: link state changed to DOWN re1: promiscuous mode enabled rl2: promiscuous mode enabled lo0: promiscuous mode enabled re1: link state changed to UP re0: link state changed to UP re0: promiscuous mode disabled re0: link state changed to DOWN rl0: promiscuous mode disabled plip0: promiscuous mode disabled re1: promiscuous mode enabled re1: link state changed to DOWN rl2: promiscuous mode enabled lo0: promiscuous mode enabled re1: link state changed to UP re0: link state changed to UP re0: promiscuous mode disabled re0: link state changed to DOWN rl0: promiscuous mode disabled plip0: promiscuous mode disabled rl1: promiscuous mode disabled re1: promiscuous mode disabled re1: link state changed to DOWN rl2: promiscuous mode disabled lo0: promiscuous mode disabled re1: link state changed to UP re0: link state changed to UP re0: promiscuous mode enabled re0: link state changed to DOWN rl0: promiscuous mode enabled plip0: promiscuous mode enabled pflog0: promiscuous mode enabled pflog0: promiscuous mode disabled pfsync0: promiscuous mode enabled pfsync0: promiscuous mode disabled rl1: promiscuous mode enabled re1: link state changed to DOWN re1: promiscuous mode enabled rl2: promiscuous mode enabled lo0: promiscuous mode enabled re1: link state changed to UP re0: link state changed to UP re0: promiscuous mode disabled re0: link state changed to DOWN rl0: promiscuous mode disabled plip0: promiscuous mode disabled rl1: promiscuous mode disabled re1: promiscuous mode disabled re1: link state changed to DOWN rl2: promiscuous mode disabled lo0: promiscuous mode disabled re1: link state changed to UP re0: link state changed to UP __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com