On Sat, 22 Jul 2006, Otto Moerbeek wrote:

Hmmm, I didn't record the numbers. It could be that fsck is swapping
in your case, which will make it very slow. Can your check that?

It doesn't start swapping. I was wrong about the speed improvement,
currently I have only 2 million files on that disc, but fsck took
only 6 minutes with block size of 64k and fragment size of 8k. I didn't
try bigger fragment sizes because I wasn't sure if newfs' message
about degraded performance was true or not. It wastes a lot of
space though, just like you said but that isn't bad because I get
about 100 days worth of full backups with the current setup.
My script just needs some extra checks so that it won't use up
all the inodes on that disc ;-)

I also repartitioned my disc to have little root fs and separate
partitions for /var /tmp and /backups. /backups is set up so
that it doesn't fsck it while booting and noauto flag is also set.
At least now it will come back online as fast as possible. Just
like Nick suggested earlier.

It seems there is something different with newer kernels than 3.8.
I tried booting 3.9/bsd.rd and it failed when probing for pciide0.
I noticed that it doesn't get the chip's model right, it says VIA
VT6420 SATA instead of the 8237. I fetched 20 mins ago snapshot/bsd.rd
from openbsd.org and it didn't help. I attached the dmesg from the 3.8 that boots correctly now that I finally got it networked.

# dmesg
OpenBSD 3.8 (GENERIC) #138: Sat Sep 10 15:41:37 MDT 2005
    [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Athlon(TM) XP 1700+ ("AuthenticAMD" 686-class, 256KB L2 cache) 1.47 
GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
cpu0: AMD Powernow: FID
real mem  = 267988992 (261708K)
avail mem = 237649920 (232080K)
using 3296 buffers containing 13500416 bytes (13184K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(48) BIOS, date 06/28/05, BIOS32 rev. 0 @ 0xf1940
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf0000/0x1ff2
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf1f20/208 (11 entries)
pcibios0: PCI Interrupt Router at 000:17:0 ("VIA VT82C586 ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0x8000 0xc8000/0x1000 0xcc000/0x4400!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "VIA VT8377 PCI" rev 0x80
ppb0 at pci0 dev 1 function 0 "VIA VT8377 PCI-PCI" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci0 dev 10 function 0 "Matrox MGA Millennium II 2164W" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
fxp0 at pci0 dev 12 function 0 "Intel 82557" rev 0x08, i82559: irq 10, address 
00:90:27:93:85:c2
inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
pciide0 at pci0 dev 15 function 0 "VIA VT8237 SATA" rev 0x80: DMA
pciide0: using irq 4 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: <ST3200822AS>
wd0: 16-sector PIO, LBA48, 190782MB, 390721968 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
pciide1 at pci0 dev 15 function 1 "VIA VT82C571 IDE" rev 0x06: ATA133, channel 
0 configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide1 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <PLEXTOR, DVDR PX-708A, 1.08> SCSI0 5/cdrom 
removable
cd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide1: channel 1 disabled (no drives)
uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0x81: irq 12
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 16 function 1 "VIA VT83C572 USB" rev 0x81: irq 12
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 16 function 2 "VIA VT83C572 USB" rev 0x81: irq 4
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 16 function 3 "VIA VT83C572 USB" rev 0x81: irq 4
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 16 function 4 "VIA VT6202 USB" rev 0x86: irq 3
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: VIA EHCI root hub, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
pcib0 at pci0 dev 17 function 0 "VIA VT8237 ISA" rev 0x00
vr0 at pci0 dev 18 function 0 "VIA RhineII-2" rev 0x78: irq 12 address 
04:04:04:04:04:04
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface
ukphy0: OUI 0x0090c3, model 0x0005, rev. 4
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
sysbeep0 at pcppi0
it0 at isa0 port 0x290/8: IT87
npx0 at isa0 port 0xf0/16: using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask fbfd netmask fffd ttymask ffff
pctr: user-level cycle counter enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a



# ps auxw
rootdev=0x0 rrootdev=0x300 rawdev=0x302
USER       PID %CPU %MEM   VSZ   RSS TT   STAT STARTED       TIME COMMAND
root         1  0.0  0.1   328   336 ??  Is     8:58AM    0:00.00 /sbin/init
root     16723  0.0  0.2   236   388 ??  Is     8:58AM    0:00.00 ntpd: [priv] 
(ntpd)
_ntp     13607  0.0  0.2   236   556 ??  I      8:58AM    0:00.00 ntpd: ntp 
engine (ntpd)
root     18980  0.0  0.4   664  1108 ??  Is     8:58AM    0:00.08 /usr/sbin/sshd
root     15665  0.0  0.3   496   692 ??  Is     8:58AM    0:00.00 cron
root     14500  0.0  0.4  1160  1056 ??  Ss     9:00AM    0:00.02 sendmail: 
accepting connections (sendmail)
root     23615  0.0  0.2   612   512 C0  Ss     8:58AM    0:00.02 -ksh (ksh)
root      5478  0.0  0.1   408   196 C0  R+     9:09AM    0:00.00 ps -xauw
root     17052  0.0  0.2   244   524 C1  Is+    8:58AM    0:00.00 
/usr/libexec/getty Pc ttyC1
root     23537  0.0  0.2   204   528 C2  Is+    8:58AM    0:00.00 
/usr/libexec/getty Pc ttyC2
root     16763  0.0  0.2   288   528 C3  Is+    8:58AM    0:00.00 
/usr/libexec/getty Pc ttyC3
root     11225  0.0  0.2   208   528 C5  Is+    8:58AM    0:00.00 
/usr/libexec/getty Pc ttyC5

Reply via email to