On Sat, 22 Jul 2006, Otto Moerbeek wrote:

> I'll try to do some measurements with various block and fragment sized
> the coming week. That'll take some time, though.

Well, I actually found some time already. I list the newfs and fsck
time for blocksize 65536 and 4 fragment sizes of a 1Tb filesystem.
Controler is an ami(4) with 4 SATA disks. sd1 is a logical RAID5
volume slighly larger than 1TB. Details in dmesg below. 

For the largest and smallest fragment sizes, I filled the fisk with 1
million files of varying sizes, avarage 50000 bytes. 

With this test and setup, fsck times do not increase a lot with a
partially filled disk. A 64k/64k filesystems checks much faster than a
64k/8k filesystem (37s vs 2m19 for the partially filled filesystem).
Of course the first has fewer inodes and wasts more space.  Disk usage
was about 80G for the 64k/64k filesystem and about 50G for the 64k/8k
filesystem. 

        -Otto
        

# time newfs -s 2147483647 -b 65536 -f 65536 /dev/rsd1a
    0m24.72s real     0m8.83s user     0m7.01s system
# time fsck -f /dev/sd1a
    0m27.69s real     0m10.29s user     0m1.32s system
With 1 million files in 1000 dirs, avarage size 50000 bytes:
    0m37.59s real     0m11.05s user     0m1.32s system

# time newfs -s 2147483647 -b 65536 -f 32768 /dev/rsd1a 
    0m41.25s real     0m10.85s user     0m13.27s system
# time fsck -f /dev/sd1a
    0m43.75s real     0m14.15s user     0m2.07s system

# time newfs -s 2147483647 -b 65536 -f 16384 /dev/rsd1a
    1m13.13s real     0m15.45s user     0m25.35s system
# time fsck -f /dev/sd1a
    1m17.88s real     0m22.94s user     0m4.28s system

# time newfs -s 2147483647 -b 65536 -f 8192 /dev/rsd1a
    2m18.76s real     0m23.19s user     0m52.00s system
# time fsck -f /dev/sd1a
    2m11.50s real     0m41.57s user     0m8.24s system
With 1 million files in 1000 dirs, avarage size 50000 bytes:
# time fsck -f /dev/sd1a
    2m19.42s real     0m44.03s user     0m8.56s system

OpenBSD 3.9-current (GENERIC.MP) #43: Sat Jun 17 22:14:27 CEST 2006
    [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel Pentium III ("GenuineIntel" 686-class) 797 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,SER,MMX,FXSR,SSE
real mem  = 536375296 (523804K)
avail mem = 481566720 (470280K)
using 4256 buffers containing 26923008 bytes (26292K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(3c) BIOS, date 10/28/00, BIOS32 rev. 0 @ 0xfd7e3, 
SMBIOS rev. 2.1 @ 0xef840 (46 entries)
bios0: Intel L440GX+
pcibios0 at bios0: rev 2.1 @ 0xfd680/0x980
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf00/224 (12 entries)
pcibios0: PCI Interrupt Router at 000:18:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #2 is the last bus
bios0: ROM list: 0xc0000/0x8000 0xc8000/0x2200 0xca800/0x6000 0xd0800/0x1800 
0xd2000/0x1800 0xe4000/0x4000!
mainbus0: Intel MP Specification (Version 1.4) (INTEL    Lancewood   )
cpu0 at mainbus0: apid 1 (boot processor)
cpu0: apic clock running at 99 MHz
cpu1 at mainbus0: apid 0 (application processor)
cpu1: Intel Pentium III ("GenuineIntel" 686-class) 797 MHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,SER,MMX,FXSR,SSE
mainbus0: bus 0 is type PCI   
mainbus0: bus 1 is type PCI   
mainbus0: bus 2 is type PCI   
mainbus0: bus 3 is type ISA   
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 11, 24 pins
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82440BX AGP" rev 0x00
ppb0 at pci0 dev 1 function 0 "Intel 82440BX AGP" rev 0x00
pci1 at ppb0 bus 1
ppb1 at pci1 dev 15 function 0 "DEC 21150-BC PCI-PCI" rev 0x06
pci2 at ppb1 bus 2
ami0 at pci0 dev 11 function 0 "Symbios Logic MegaRAID" rev 0x01: apic 2 int 18 
(irq 10)
ami0: LSI 523, 64b/lhc, FW 713N, BIOS vG119, 64MB RAM
ami0: 1 channels, 0 FC loops, 2 logical drives
scsibus0 at ami0: 40 targets
sd0 at scsibus0 targ 0 lun 0: <AMI, Host drive #00, > SCSI2 0/direct fixed
sd0: 30000MB, 30000 cyl, 64 head, 32 sec, 512 bytes/sec, 61440000 sec total
sd1 at scsibus0 targ 1 lun 0: <AMI, Host drive #01, > SCSI2 0/direct fixed
sd1: 1104736MB, 1104736 cyl, 64 head, 32 sec, 512 bytes/sec, 2262499328 sec 
total
scsibus1 at ami0: 16 targets
ahc0 at pci0 dev 12 function 0 "Adaptec AIC-7896/7 U2" rev 0x00: apic 2 int 19 
(irq 11)
scsibus2 at ahc0: 16 targets
sd2 at scsibus2 targ 0 lun 0: <MAXTOR, ATLAS10K4_36WLS, DFV0> SCSI3 0/direct 
fixed
sd2: 35074MB, 49070 cyl, 2 head, 731 sec, 512 bytes/sec, 71833096 sec total
sd3 at scsibus2 targ 1 lun 0: <MAXTOR, ATLAS10K4_36WLS, DFV0> SCSI3 0/direct 
fixed
sd3: 35074MB, 49070 cyl, 2 head, 731 sec, 512 bytes/sec, 71833096 sec total
ahc1 at pci0 dev 12 function 1 "Adaptec AIC-7896/7 U2" rev 0x00: apic 2 int 19 
(irq 11)
scsibus3 at ahc1: 16 targets
em0 at pci0 dev 13 function 0 "Intel PRO/1000MT (82540EM)" rev 0x02: apic 2 int 
17 (irq 5), address 00:0e:0c:5a:e1:db
fxp0 at pci0 dev 14 function 0 "Intel 8255x" rev 0x08, i82559: apic 2 int 21 
(irq 11), address 00:d0:b7:a9:25:f2
inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
pcib0 at pci0 dev 18 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
pciide0 at pci0 dev 18 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel 0 
wired to compatibility, channel 1 wired to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus4 at atapiscsi0: 2 targets
cd0 at scsibus4 targ 0 lun 0: <LITE-ON, DVDRW SOHW-1213S, TS08> SCSI0 5/cdrom 
removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 disabled (no drives)
uhci0 at pci0 dev 18 function 2 "Intel 82371AB USB" rev 0x01: apic 2 int 21 
(irq 11)
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
piixpm0 at pci0 dev 18 function 3 "Intel 82371AB Power" rev 0x02: SMI
iic0 at piixpm0
vga1 at pci0 dev 20 function 0 "Cirrus Logic CL-GD5480" rev 0x23
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
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
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom0: console
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
biomask 0 netmask 0 ttymask 0
ioapic0: pin 21 shares different IPL interrupts (40..50), degraded performance
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
dkcsum: sd0 matches BIOS drive 0x82
dkcsum: sd1 matches BIOS drive 0x83
ahc0: target 0 using 16bit transfers
ahc0: target 0 synchronous at 40.0MHz, offset = 0x7f
dkcsum: sd2 matches BIOS drive 0x80
ahc0: target 1 using 16bit transfers
ahc0: target 1 synchronous at 40.0MHz, offset = 0x7f
dkcsum: sd3 matches BIOS drive 0x81
root on sd2a
rootdev=0x420 rrootdev=0xd20 rawdev=0xd22

Reply via email to