Re: uvm fault booting

2016-03-03 Thread Alan Corey
It happened again.  I'm using a laptop with a short power cord and
sometimes I recline my recliner and don't notice it fell out.  I'm
usually only up here in the winter.

Anyway I did the drive diagnostics again, saw the end this time and it
didn't find anything wrong.  Rebooted and it fscked the big partition
OK.

So I'm wondering if maybe when fsck runs on multiple partitions it
could be not freeing some memory or something between?  Or is it doing
them simultaneously and that fails?.  The messages look like it's
doing one at a time, I see the first 2 finish then I get the error.

Next time I see that I'll try just rebooting without doing anything else.

But it happened this time without doing anything with USB at all, I
just ran the battery down.

On 2/29/16, Alan Corey  wrote:
> SMART is on but it's never been tripped.
>
> Windows is scanning the FAT32 partition of my SD card  but it won't do the
> ext3.  I had Linux on a phone but I was having selinux problems anyway.  So
> I was going to put NetBSD on it for my Raspberry Pi.
>
> Sent from my Motorola XT1505
> On Feb 29, 2016 10:23 PM, "Josh Grosse"  wrote:
>
>> On Mon, Feb 29, 2016 at 10:19:23PM -0500, Alan Corey wrote:
>> > ...So maybe the Seagate stuff remapped some
>> > sectors, maybe not.
>>
>> It's hard to say, Alan.  If the drive reports S.M.A.R.T. status
>> it's possible the drive's electronics will admit remapped
>> sectors to smartmontools.  But if the drive doesn't report,
>> it's not proof.
>>
>> I'm glad things are working for you.  :)
>>
>


-- 
Credit is the root of all evil.  - AB1JX



Re: uvm fault booting

2016-02-29 Thread Alan Corey
It's running again.  I ran Seagate Diagnostics, the long version, like
2 hours.  When it was about 97% done it hadn't given any messages, and
I went to dinner.  When I came back I found I'd knocked the power plug
out, the battery had run down, so I booted it up cold.  Took longer
than usual but it came up.  So maybe the Seagate stuff remapped some
sectors, maybe not.

So do I dare scan my SD card or not?  I think I'll try it from
Windows, that's more expendable.  Over half the drive is OpenBSD, the
rest is Windows and Linux.

On 2/29/16, Alan Corey  wrote:
> I forgot, wd0a and e aren't the only OpenBSD partitions, the biggie is
> wd0m, about 500 gigs.  There's 4 gigs of RAM and I never had a problem
> with it before, but I can reproduce the uvm fault by trying to fsck it
> in single user mode.  I don't remember whether swap is on at that
> point or not.  Maybe it's time to download Seagate's drive diagnostics
> and run them, but the drive's less than 1 year old.  Maybe it needs to
> remap a sector.
>
> The acpi and USB messages appear every time I open the lid on the
> laptop, I don't pay much attention to them.  It was running badblocks
> on an SD card plugged into a USB reader that started all this, but I
> don't see how a USB problem would persist through reboots.  I've seen
> some nasty crashes dealing with SD and USB memory sticks, it's almost
> like they need their own utilities since they aren't really hard
> drives.
>
> OpenBSD 5.7 (GENERIC.MP) #767: Sun Mar  8 11:04:48 MDT 2015
> dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
> cpu0: Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz ("GenuineIntel"
> 686-class) 2 GHz
> cpu0:
> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,LAHF,PERF
> real mem  = 3747885056 (3574MB)
> avail mem = 3674271744 (3504MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: date 07/16/13, BIOS32 rev. 0 @ 0xffa10, SMBIOS rev.
> 2.4 @ 0xf6bd0 (62 entries)
> bios0: vendor Dell Inc. version "A12" date 07/16/2013
> bios0: Dell Inc. Latitude D530
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S3 S4 S5
> acpi0: tables DSDT FACP HPET APIC ASF! MCFG TCPA SLIC SSDT
> acpi0: wakeup devices PCI0(S5) PCIE(S4) USB1(S0) USB2(S0) USB3(S0)
> USB4(S0) USB5(S0) EHC2(S0) EHCI(S0) AZAL(S3) RP01(S3) RP02(S4)
> RP03(S3) RP04(S3) RP05(S3) RP06(S5) [...]
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpihpet0 at acpi0: 14318179 Hz
> acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> cpu0: apic clock running at 199MHz
> cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
> cpu1 at mainbus0: apid 1 (application processor)
> cpu1: Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz ("GenuineIntel"
> 686-class) 2 GHz
> cpu1:
> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,LAHF,PERF
> ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
> ioapic0: misconfigured as apic 0, remapped to apid 2
> acpimcfg0 at acpi0 addr 0xf800, bus 0-63
> acpiprt0 at acpi0: bus 3 (PCIE)
> acpiprt1 at acpi0: bus -1 (AGP_)
> acpiprt2 at acpi0: bus 11 (RP01)
> acpiprt3 at acpi0: bus 12 (RP02)
> acpiprt4 at acpi0: bus -1 (RP03)
> acpiprt5 at acpi0: bus -1 (RP04)
> acpiprt6 at acpi0: bus -1 (RP05)
> acpiprt7 at acpi0: bus 9 (RP06)
> acpiprt8 at acpi0: bus 0 (PCI0)
> acpicpu0 at acpi0: C3, C2, C1, PSS
> acpicpu1 at acpi0: C3, C2, C1, PSS
> acpitz0 at acpi0: critical temperature is 99 degC
> acpibtn0 at acpi0: LID_
> acpibtn1 at acpi0: PBTN
> acpibtn2 at acpi0: SBTN
> acpiac0 at acpi0: AC unit online
> acpibat0 at acpi0: BAT0 model "DELL" serial 1 type LION oem "Panasonic"
> acpibat1 at acpi0: BAT1 not present
> acpidock0 at acpi0: GDCK not docked (0)
> acpivideo0 at acpi0: VID_
> acpivideo1 at acpi0: VID_
> acpivout0 at acpivideo1: LCD_
> acpivideo2 at acpi0: VID2
> bios0: ROM list: 0xc/0xf000! 0xcf000/0x1000
> cpu0: Enhanced SpeedStep 1995 MHz: speeds: 2001, 2000, 1600, 1200, 800 MHz
> pci0 at mainbus0 bus 0: configuration mode 1 (bios)
> pchb0 at pci0 dev 0 function 0 "Intel GM965 Host" rev 0x0c
> vga1 at pci0 dev 2 function 0 "Intel GM965 Video" rev 0x0c
> intagp0 at vga1
> agp0 at intagp0: aperture at 0xe000, size 0x1000
> inteldrm0 at vga1
> drm0 at inteldrm0
> composite sync not supported
> composite sync not supported
> inteldrm0: 1024x768
> wsdisplay0 at vga1 mux 1: console (std, vt100 emulation)
> wsdisplay0: screen 1-5 added (std, vt100 emulation)
> "Intel GM965 Video" rev 0x0c at pci0 dev 2 function 1 not configured
> uhci0 at pci0 dev 26 function 0 "Intel 82801H USB" rev 0x02: apic 2 int 20
> uhci1 at pci0 dev 26 function 1 "Intel 82801H USB" rev 0x02: apic 2 

Re: uvm fault booting

2016-02-29 Thread Mike Larkin
On Mon, Feb 29, 2016 at 11:24:23AM -0500, Alan Corey wrote:
> Everything's been stable for months.  Then I was running badblocks on an SD
> card plugged into a USB card reader.  The screen went white,  I couldn't
> ssh to it, so I killed the power. It boots to just past the file system
> checks and hangs, disk access light on.  Did that before so I went away for
> an hour, came back to find the uvm fault message. 5.7 i386
> 

Upgrade to -current, as a ton of changes went into i386 pmap since 5.7.

-ml


> Sent from my Motorola XT1505



Re: uvm fault booting

2016-02-29 Thread Alan Corey
I forgot, wd0a and e aren't the only OpenBSD partitions, the biggie is
wd0m, about 500 gigs.  There's 4 gigs of RAM and I never had a problem
with it before, but I can reproduce the uvm fault by trying to fsck it
in single user mode.  I don't remember whether swap is on at that
point or not.  Maybe it's time to download Seagate's drive diagnostics
and run them, but the drive's less than 1 year old.  Maybe it needs to
remap a sector.

The acpi and USB messages appear every time I open the lid on the
laptop, I don't pay much attention to them.  It was running badblocks
on an SD card plugged into a USB reader that started all this, but I
don't see how a USB problem would persist through reboots.  I've seen
some nasty crashes dealing with SD and USB memory sticks, it's almost
like they need their own utilities since they aren't really hard
drives.

OpenBSD 5.7 (GENERIC.MP) #767: Sun Mar  8 11:04:48 MDT 2015
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz ("GenuineIntel"
686-class) 2 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,LAHF,PERF
real mem  = 3747885056 (3574MB)
avail mem = 3674271744 (3504MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 07/16/13, BIOS32 rev. 0 @ 0xffa10, SMBIOS rev.
2.4 @ 0xf6bd0 (62 entries)
bios0: vendor Dell Inc. version "A12" date 07/16/2013
bios0: Dell Inc. Latitude D530
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET APIC ASF! MCFG TCPA SLIC SSDT
acpi0: wakeup devices PCI0(S5) PCIE(S4) USB1(S0) USB2(S0) USB3(S0)
USB4(S0) USB5(S0) EHC2(S0) EHCI(S0) AZAL(S3) RP01(S3) RP02(S4)
RP03(S3) RP04(S3) RP05(S3) RP06(S5) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 199MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz ("GenuineIntel"
686-class) 2 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,LAHF,PERF
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpiprt0 at acpi0: bus 3 (PCIE)
acpiprt1 at acpi0: bus -1 (AGP_)
acpiprt2 at acpi0: bus 11 (RP01)
acpiprt3 at acpi0: bus 12 (RP02)
acpiprt4 at acpi0: bus -1 (RP03)
acpiprt5 at acpi0: bus -1 (RP04)
acpiprt6 at acpi0: bus -1 (RP05)
acpiprt7 at acpi0: bus 9 (RP06)
acpiprt8 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpitz0 at acpi0: critical temperature is 99 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: PBTN
acpibtn2 at acpi0: SBTN
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT0 model "DELL" serial 1 type LION oem "Panasonic"
acpibat1 at acpi0: BAT1 not present
acpidock0 at acpi0: GDCK not docked (0)
acpivideo0 at acpi0: VID_
acpivideo1 at acpi0: VID_
acpivout0 at acpivideo1: LCD_
acpivideo2 at acpi0: VID2
bios0: ROM list: 0xc/0xf000! 0xcf000/0x1000
cpu0: Enhanced SpeedStep 1995 MHz: speeds: 2001, 2000, 1600, 1200, 800 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel GM965 Host" rev 0x0c
vga1 at pci0 dev 2 function 0 "Intel GM965 Video" rev 0x0c
intagp0 at vga1
agp0 at intagp0: aperture at 0xe000, size 0x1000
inteldrm0 at vga1
drm0 at inteldrm0
composite sync not supported
composite sync not supported
inteldrm0: 1024x768
wsdisplay0 at vga1 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"Intel GM965 Video" rev 0x0c at pci0 dev 2 function 1 not configured
uhci0 at pci0 dev 26 function 0 "Intel 82801H USB" rev 0x02: apic 2 int 20
uhci1 at pci0 dev 26 function 1 "Intel 82801H USB" rev 0x02: apic 2 int 21
ehci0 at pci0 dev 26 function 7 "Intel 82801H USB" rev 0x02: apic 2 int 22
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 82801H HD Audio" rev 0x02: msi
azalia0: codecs: Sigmatel STAC9205X, Conexant/0x2c06, using Sigmatel STAC9205X
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801H PCIE" rev 0x02: apic 2 int 16
pci1 at ppb0 bus 11
ppb1 at pci0 dev 28 function 1 "Intel 82801H PCIE" rev 0x02: apic 2 int 17
pci2 at ppb1 bus 12
athn0 at pci2 dev 0 function 0 "Atheros AR5418" rev 0x01: apic 2 int 17
athn0: MAC AR5418 rev 2, RF AR5133 (2T3R), ROM rev 8, address 00:21:63:30:0e:4c
ppb2 at pci0 dev 28 function 5 "Intel 82801H PCIE" rev 0x02: 

Re: uvm fault booting

2016-02-29 Thread Alan Corey
Transcribing from a cell phone picture of the screen on another machine later:

/dev/rwd0a fscked OK
/dev/rwd0e fscked OK (both of my OpenBSD partitions)
acpivideo1 unknown event 0x00
uhubs 0-6 detached
uhubs 0-6 at usb0-6 "Intel UHCI (and EHCI) root hub" rev 1.00 (2.0 on the EHCI)
uvm_fault (0xdaa7a1b0, 0xcfe08000,0,1) -> e
kernel: page fault trap code = 0
Stopped at   pmap_extract+0x3f:   mov1  [camera lat/lon stamp on top of this]

-- 
Credit is the root of all evil.  - AB1JX



uvm fault booting

2016-02-29 Thread Alan Corey
Everything's been stable for months.  Then I was running badblocks on an SD
card plugged into a USB card reader.  The screen went white,  I couldn't
ssh to it, so I killed the power. It boots to just past the file system
checks and hangs, disk access light on.  Did that before so I went away for
an hour, came back to find the uvm fault message. 5.7 i386

Sent from my Motorola XT1505