From owner-freebsd-questions@FreeBSD.ORG Wed Sep 3 16:43:26 2008 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 1BEEF1066D72 for ; Wed, 3 Sep 2008 16:43:26 +0000 (UTC) (envelope-from lists@peter.de.com) Received: from nemesis.charlie.mouhaha.de (nemesis.charlie.mouhaha.de [78.47.10.193]) by mx1.freebsd.org (Postfix) with ESMTP id 575CC8FC14 for ; Wed, 3 Sep 2008 16:43:25 +0000 (UTC) (envelope-from lists@peter.de.com) Received: from localhost (nemesis.charlie.mouhaha.de [78.47.10.193]) by nemesis.charlie.mouhaha.de (Postfix) with ESMTP id DB49344C62 for ; Wed, 3 Sep 2008 17:23:34 +0100 (BST) X-Virus-Scanned: amavisd-new at mouhaha.de Received: from nemesis.charlie.mouhaha.de ([78.47.10.193]) by localhost (nemesis.charlie.mouhaha.de [78.47.10.193]) (amavisd-new, port 10024) with ESMTP id dTIIG5mEh5uS for ; Wed, 3 Sep 2008 17:23:31 +0100 (BST) Received: from nemesis.charlie.mouhaha.de (nemesis.charlie.mouhaha.de [78.47.10.193]) by nemesis.charlie.mouhaha.de (Postfix) with SMTP id D884744C1D for ; Wed, 3 Sep 2008 17:23:30 +0100 (BST) Received: from dilbert.office.centralnic.com (office.centralnic.net [82.68.174.118]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by nemesis.charlie.mouhaha.de (Postfix) with ESMTPSA id E030E44C10 for ; Wed, 3 Sep 2008 17:23:29 +0100 (BST) Date: Wed, 3 Sep 2008 17:23:22 +0100 From: Oliver Peter To: freebsd-questions@freebsd.org Message-ID: <20080903172322.05e6c710@dilbert.office.centralnic.com> X-Mailer: Claws Mail 3.0.2 (GTK+ 2.10.4; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: portupgrade / ruby18 is eating up all CPU [FreeBSD 7.0-RELEASE-p3 amd64] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lists@peter.de.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Sep 2008 16:43:26 -0000 Hi, Something seems to be wrong with my current 7.0/amd64 setup. # sudo portupgrade -Rra Sometimes portupgrade stops while "Updating the portsdb" [1]. OK, actually it doesn't really stop, with top I see that the ruby18 process is eating up the whole CPU[2]. In the current case it's about p5-Socket6 - but it seems that it isn't about the port, it's more about the portsdb. When I try to restart (CTRL-C) and run portupgrade again it hangs at the same point "Updating the portsdb". Only when I manually force an update of the portsdb it goes through: # sudo pkgdb -fu But than it will randomly hang again in the whole portupgrade run at one of the next updates of the portsdb... I'm able reproduce this problem within a jail and on a regular host system, with portupgrade and portupgrade-devel. At this moment I'm suffering an interrupt storm on that machine, but I already had the problem before. The machine works fine, no performance impact or something like that. All described here http://lists.freebsd.org/pipermail/freebsd-acpi/2008-September/005095.html % uname -a FreeBSD nemesis.charlie.mouhaha.de 7.0-RELEASE-p3 FreeBSD 7.0-RELEASE-p3 #7: Thu Aug 14 20:09:36 BST 2008 root@charlie.mouhaha.de:/usr/obj/usr/src/sys/CHARLIE amd64 % portupgrade --version portupgrade 2.4.6 % ruby18 --version ruby 1.8.6 (2008-08-11 patchlevel 287) [amd64-freebsd7] Cheers Ollie [1] sudo portupgrade -Rra ... [Updating the pkgdb in /var/db/pkg ... - 313 packages found (-0 +1) . done] ---> Upgrading 'p5-Socket6-0.20' to 'p5-Socket6-0.22' (net/p5-Socket6) ---> Building '/usr/ports/net/p5-Socket6' ===> Cleaning for p5-Socket6-0.22 => Socket6-0.22.tar.gz doesn't seem to exist in /var/ports/distfiles/. => Attempting to fetch from ftp://ftp.funet.fi/pub/languages/perl/CPAN/modules/by-module/Socket6/. Socket6-0.22.tar.gz 100% of 56 kB 314 kBps ===> Extracting for p5-Socket6-0.22 => MD5 Checksum OK for Socket6-0.22.tar.gz. => SHA256 Checksum OK for Socket6-0.22.tar.gz. ===> p5-Socket6-0.22 depends on file: /usr/local/bin/perl5.8.8 - found ===> Patching for p5-Socket6-0.22 ===> p5-Socket6-0.22 depends on file: /usr/local/bin/perl5.8.8 - found ===> p5-Socket6-0.22 depends on file: /usr/local/bin/perl5.8.8 - found ===> Configuring for p5-Socket6-0.22 checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking whether your Perl5 have PL_sv_undef... yes checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for getaddrinfo... yes checking for getnameinfo... yes checking for gethostbyname2... yes checking for getipnodebyname... yes checking for getipnodebyaddr... yes checking for inet_pton... yes checking for inet_ntop... yes checking whether you have sa_len in struct sockaddr... yes checking whether you have sin6_scope_id in struct sockaddr_in6... yes checking for socklen_t... yes configure: creating ./config.status config.status: creating config.pl config.status: creating gailookup.pl config.status: creating config.h Checking if your kit is complete... Looks good Writing Makefile for Socket6 ===> Building for p5-Socket6-0.22 cp Socket6.pm blib/lib/Socket6.pm /usr/local/bin/perl5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/ExtUtils/xsubpp -noprototypes -typemap /usr/local/lib/perl5/5.8.8/ExtUtils/typemap Socket6.xs > Socket6.xsc && mv Socket6.xsc Socket6.c cc -c -O2 -fno-strict-aliasing -pipe -march=athlon64 -O2 -fno-strict-aliasing -pipe -march=athlon64 -DVERSION=\"0.22\" -DXS_VERSION=\"0.22\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.8.8/mach/CORE" Socket6.c Running Mkbootstrap for Socket6 () chmod 644 Socket6.bs rm -f blib/arch/auto/Socket6/Socket6.so cc -shared -L/usr/local/lib Socket6.o -o blib/arch/auto/Socket6/Socket6.so chmod 755 blib/arch/auto/Socket6/Socket6.so cp Socket6.bs blib/arch/auto/Socket6/Socket6.bs chmod 644 blib/arch/auto/Socket6/Socket6.bs [Updating the portsdb in /var/db/pkg ... - 19084 port entries found .........1000.........2000.........3000.........4000.........5000.........6000.........7000.........8000.........9000.........10000.........11000.........12000.........13000.........14000.........15000.........16000.........17000.........18000.........19000 ..... done] [2] top PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 12123 root 1 118 0 68636K 39552K CPU1 1 191:27 100.00% ruby18 ... [3] dmesg Copyright (c) 1992-2008 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 7.0-RELEASE-p1 #4: Thu Jun 19 18:03:38 BST 2008 root@charlie.mouhaha.de:/usr/obj/usr/src/sys/CHARLIE Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 5600+ (2899.98-MHz K8-class CPU) Origin = "AuthenticAMD" Id = 0x60fb2 Stepping = 2 Features=0x178bfbff Features2=0x2001 AMD Features=0xea500800 AMD Features2=0x11f Cores per package: 2 usable memory = 2099699712 (2002 MB) avail memory = 2024751104 (1930 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) hptrr: HPT RocketRAID controller driver v1.1 (Jun 19 2008 18:02:12) acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, 7df00000 (3) failed Timecounter "ACPI-safe" frequency 3579545 Hz quality 850 acpi_timer0: <32-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 cpu0: on acpi0 acpi_throttle0: on cpu0 acpi_throttle0: CLK_VAL field overlaps THT_EN bit device_attach: acpi_throttle0 attach returned 6 powernow0: on cpu0 cpu1: on acpi0 powernow1: on cpu1 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 vgapci0: port 0xc000-0xc0ff mem 0xfc000000-0xfdffffff,0xfe9f0000-0xfe9fffff,0xfe800000-0xfe8fffff irq 18 at device 5.0 on pci1 pci1: at device 5.2 (no driver attached) pcib2: at device 7.0 on pci0 pci2: on pcib2 re0: port 0xd800-0xd8ff mem 0xfeaff000-0xfeafffff irq 19 at device 0.0 on pci2 re0: Using 2 MSI messages miibus0: on re0 rgephy0: PHY 1 on miibus0 rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto re0: Ethernet address: 00:1d:92:b6:ce:92 re0: [FILTER] re0: [FILTER] atapci0: port 0xb000-0xb007,0xa000-0xa003,0x9000-0x9007,0x8000-0x8003,0x7000-0x700f mem 0xfe7ff800-0xfe7ffbff irq 22 at device 18.0 on pci0 atapci0: [ITHREAD] ata2: on atapci0 ata2: [ITHREAD] ata3: on atapci0 ata3: [ITHREAD] ohci0: mem 0xfe7fe000-0xfe7fefff irq 16 at device 19.0 on pci0 ohci0: [GIANT-LOCKED] ohci0: [ITHREAD] usb0: OHCI version 1.0, legacy support usb0: SMM does not respond, resetting usb0: on ohci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 2 ports with 2 removable, self powered ohci1: mem 0xfe7fd000-0xfe7fdfff irq 17 at device 19.1 on pci0 ohci1: [GIANT-LOCKED] ohci1: [ITHREAD] usb1: OHCI version 1.0, legacy support usb1: SMM does not respond, resetting usb1: on ohci1 usb1: USB revision 1.0 uhub1: on usb1 uhub1: 2 ports with 2 removable, self powered ohci2: mem 0xfe7fc000-0xfe7fcfff irq 18 at device 19.2 on pci0 ohci2: [GIANT-LOCKED] ohci2: [ITHREAD] usb2: OHCI version 1.0, legacy support usb2: SMM does not respond, resetting usb2: on ohci2 usb2: USB revision 1.0 uhub2: on usb2 uhub2: 2 ports with 2 removable, self powered ohci3: mem 0xfe7fb000-0xfe7fbfff irq 17 at device 19.3 on pci0 ohci3: [GIANT-LOCKED] ohci3: [ITHREAD] usb3: OHCI version 1.0, legacy support usb3: SMM does not respond, resetting usb3: on ohci3 usb3: USB revision 1.0 uhub3: on usb3 uhub3: 2 ports with 2 removable, self powered ohci4: mem 0xfe7fa000-0xfe7fafff irq 18 at device 19.4 on pci0 ohci4: [GIANT-LOCKED] ohci4: [ITHREAD] usb4: OHCI version 1.0, legacy support usb4: SMM does not respond, resetting usb4: on ohci4 usb4: USB revision 1.0 uhub4: on usb4 uhub4: 2 ports with 2 removable, self powered ehci0: mem 0xfe7ff000-0xfe7ff0ff irq 19 at device 19.5 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb5: EHCI version 1.0 usb5: companion controllers, 2 ports each: usb0 usb1 usb2 usb3 usb4 usb5: on ehci0 usb5: USB revision 2.0 uhub5: on usb5 uhub5: 10 ports with 10 removable, self powered pci0: at device 20.0 (no driver attached) atapci1: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xff00-0xff0f at device 20.1 on pci0 ata0: on atapci1 ata0: [ITHREAD] isab0: at device 20.3 on pci0 isa0: on isab0 pcib3: at device 20.4 on pci0 pci3: on pcib3 acpi_button0: on acpi0 sio0: configured irq 3 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: configured irq 3 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 flags 0x10 on acpi0 sio0: type 16550A sio0: [FILTER] atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] orm0: at iomem 0xcd800-0xce7ff on isa0 ppc0: cannot reserve I/O port range sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 WARNING: ZFS is considered to be an experimental feature in FreeBSD. Timecounters tick every 1.000 msec hptrr: no controller detected. ZFS filesystem version 6 ZFS storage pool version 6 ad4: 476940MB at ata2-master UDMA33 ad6: 476940MB at ata3-master UDMA33 SMP: AP CPU #1 Launched! Trying to mount root from zfs:tank re0: link state changed to UP cryptosoft0: on motherboard -- Oliver PETER, email: oliver@peter.de.com, ICQ# 113969174 "I like to con people. And I like to insult people. If you combine con & insult, you get consult!" -- Dogbert