From owner-freebsd-stable@FreeBSD.ORG Sun May 14 09:33:12 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 43DDE16A405 for ; Sun, 14 May 2006 09:33:12 +0000 (UTC) (envelope-from mjkarki@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.191]) by mx1.FreeBSD.org (Postfix) with ESMTP id 867D343D48 for ; Sun, 14 May 2006 09:33:11 +0000 (GMT) (envelope-from mjkarki@gmail.com) Received: by nf-out-0910.google.com with SMTP id o25so230056nfa for ; Sun, 14 May 2006 02:33:10 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=TH4em1J2LwS8m0kTifW0HO8BuLHOVLzTbHsNatza4wpWCZ/1mOh2Br13WjP7I3vpCdsjxSntrXduwYChie5fxtavxMLKf2Yk7b2Yr0wOuBV43XbLoKlukiiNknj2/aBscIKZ+SfOMKPjsYY3T/30ThuSl6BBIkK9+Az0ztQMtIY= Received: by 10.49.35.15 with SMTP id n15mr1137302nfj; Sun, 14 May 2006 02:33:10 -0700 (PDT) Received: by 10.48.144.15 with HTTP; Sun, 14 May 2006 02:33:10 -0700 (PDT) Message-ID: <1b15366e0605140233n4e35ea99k88092b62c9315df1@mail.gmail.com> Date: Sun, 14 May 2006 12:33:10 +0300 From: "Matti J. Karki" Sender: mjkarki@gmail.com To: freebsd-stable@freebsd.org In-Reply-To: <20060514021012.GA61053@xor.obsecurity.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060512235959.GA18154@psconsult.nl> <1b15366e0605131033w3c0ddc58t563ccecdf8745ae8@mail.gmail.com> <20060514021012.GA61053@xor.obsecurity.org> X-Google-Sender-Auth: 491835e2147a7827 Subject: Re: Reproducable file corruption on 6-STABLE X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 May 2006 09:33:12 -0000 On 5/14/06, Kris Kennaway wrote: > On Sat, May 13, 2006 at 08:33:38PM +0300, Matti J. Karki wrote: > > On 5/13/06, Paul Schenkeveld wrote: > > >Hello, > > > > > >When I try to copy a large (7GB+) file from one filesystem to another = the > > >copy is not equal to te source file. This behaviour can be reproduced > > >repeatedly. > > > > > >Details: > > > > > > - FreeBSD 6-STABLE, cvsupped yesterday > > > > Hi! > > > > I have very similar problem with my i386 6.1-STABLE installation. With > > 6.0 there were no problems. I have already eliminated bad hardware > > (memory, hard drive) and also overheating. I'm able to reproduce the > > problem with quite small files. 23 megabytes has been enough to get > > corrupted. I have softupdates enabled and the disk is an IDE drive. > > It is almost certainly to do with your specific hardware > configuration, or a nonstandard disk-related kernel option you are > using. Please specify your configuration in detail so others can > compare. > OK, here comes the details. The machine is an HP laptop (Pavilion 4423EA) with Fujitsu MHT2030AT IDE hard drive (28615,8MB). IDE controller is "ALi M5229 PCI Bus Master IDE Controller" from Acer Labs Inc. The system has 1GB of RAM. The system itself was FreeBSD 6.1-STABLE with GENERIC kernel from the installation media (so, I haven't compiled anything). No weird kernel options in use. Hardware should be very generic all in all. Now I have a 6.0-STABLE with GENERIC kernel back (from the installation media, no updates, patches, no nothing) and I have stress-tested the system. I was not able to reproduce file corrutions with 6.0 even though I tried to replicate all situations excactly like with 6.1. I have done upgrading and downgrading by using boot-only CD and selecting USER installation set for upgrading. Here are some relevant files and a dmesg: /boot/loader.conf: cpufreq_load=3D"YES" snd_driver_load=3D"YES" /etc/rc.conf: hostname=3D"freebsd.my.domain" ifconfig_sis0=3D"DHCP" keymap=3D"finnish.iso" linux_enable=3D"YES" usbd_enable=3D"YES" powerd_enable=3D"YES" dmesg (this actually is dmesg from 6.0): Copyright (c) 1992-2005 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 =09The Regents of the University of California. All rights reserved. FreeBSD 6.0-RELEASE #0: Thu Nov 3 09:36:13 UTC 2005 root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: mobile AMD Athlon(tm) XP2400+ (1788.94-MHz 686-class CPU) Origin =3D "AuthenticAMD" Id =3D 0x6a0 Stepping =3D 0 Features=3D0x383f9ff AMD Features=3D0xc0480800 real memory =3D 1005518848 (958 MB) avail memory =3D 974962688 (929 MB) npx0: [FAST] npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard acpi0: Power Button (fixed) pci_link0: irq 10 on acpi0 pci_link1: irq 11 on acpi0 pci_link2: on acpi0 pci_link3: on acpi0 pci_link4: on acpi0 pci_link5: irq 10 on acpi0 pci_link6: irq 3 on acpi0 pci_link7: irq 5 on acpi0 pci_link8: irq 9 on acpi0 acpi_ec0: port 0x62,0x66 on acpi0 Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <32-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0 cpu0: on acpi0 powernow0: on cpu0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 5.0 (no driver attached) ohci0: mem 0xd0000000-0xd0000fff irq 9 at device 2.0 on pci0 ohci0: [GIANT-LOCKED] usb0: OHCI version 1.0, legacy support usb0: SMM does not respond, resetting usb0: on ohci0 usb0: USB revision 1.0 uhub0: AcerLabs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 4 ports with 4 removable, self powered pcm0: port 0x8400-0x84ff mem 0xd0001000-0xd0001fff irq 5 at device 6.0 on pci0 pcm0: pcm0: [GIANT-LOCKED] isab0: at device 7.0 on pci0 isa0: on isab0 pci0: at device 8.0 (no driver attached) cbb0: irq 9 at device 10.0 on pci0 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x8080-0x808f at device 16.0 on pci0 atapci0: using PIO transfers above 137GB as workaround for 48bit DMA access bug, expect reduced performance ata0: on atapci0 ata1: on atapci0 pci0: at device 17.0 (no driver attached) sis0: port 0x8c00-0x8cff mem 0xd0003000-0xd0003fff irq 11 at device 18.0 on pci0 sis0: Silicon Revision: DP83816A miibus0: on sis0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto sis0: Ethernet address: 00:0d:9d:81:50:13 acpi_button0: on acpi0 acpi_lid0: on acpi0 acpi_acad0: on acpi0 battery0: on acpi0 acpi_tz0: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model IntelliMouse, device ID 3 fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FAST] ppc0: port 0x378-0x37f,0x778-0x77f irq 7 drq 0 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/16 bytes threshold ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acp= i0 sio0: type 16550A pmtimer0 on isa0 orm0: at iomem 0xc0000-0xcefff,0xcf000-0xcf7ff,0xdb000-0xdbfff,0xdc000-0xdffff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=3D0x300> 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 ukbd0: Microsoft Natural\M-. Ergonomic Keyboard 4000, rev 2.00/1.73, addr 2, iclass 3/1 kbd1 at ukbd0 uhid0: Microsoft Natural\M-. Ergonomic Keyboard 4000, rev 2.00/1.73, addr 2, iclass 3/1 uhid1: Microsoft Microsoft Wireless Optical Mouse\M-. 1.00, rev 2.00/0.07, addr 3, iclass 3/1 Timecounter "TSC" frequency 1788941820 Hz quality 800 Timecounters tick every 1.000 msec ad0: 28615MB at ata0-master UDMA100 acd0: CDRW at ata1-master PIO4 Trying to mount root from ufs:/dev/ad0s2a