Re: NetBSD, ist es wirklich so langsam?

From: Ingo Rohlfs <ml(at)dr-rohlfs.de>
Date: Mon, 1 Oct 2007 15:56:07 +0200

On Wed, Sep 26, 2007 at 09:55:45PM +0100, Timo Schoeler wrote:
> thus Ingo Rohlfs spake:
> >gerade mache ich meine ersten ernsthaften Schritte mit NetBSD. Leider
> >muss ich feststellen, dass die Performance sehr niedrig ist.
> >
> >Schreiben (dd mit bs=8k) auf eine SATA-Platte ist 8x langsamer als bei
> >FreeBSD, trotz eingeschalteten Softdeps. Die FS-Parameter (tunefs) sind
> >identisch wie bei FreeBSD.
> >
> >Ist NetBSD wirklich so langsam, oder mache ich was falsch?
> >Dateisystem ganz normal mit newfs erzeugt. Das braucht übrigens auch EWIG.
>
> Noe, das kann ich so nicht bestätigen; in der Reihe der BSDs ergibt sich
> IMHO die Reihenfolge
>
> NetBSD -> DragonFly -> FreeBSD -> OpenBSD
>
> (von 'schnell' nach 'langsam'),

Also mal Butter an die Fische:

Maschine: X2100 von Sun Microsystems
CPU: AMD Opteron(tm) Processor 146 (2010.31-MHz 686-class CPU)
  Origin = "AuthenticAMD" Id = 0x20f71 Stepping = 1
  Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2>
  Features2=0x1<SSE3>
  AMD Features=0xe2500800<SYSCALL,NX,MMX+,FFXSR,LM,3DNow+,3DNow>
  AMD Features2=0x1<LAHF>
real memory = 535691264 (510 MB)
avail memory = 514813952 (490 MB)

FREEBSD:
-------------
FreeBSD 6.1-RELEASE-p10

ingo(at)ws2:/scratch mount
/dev/ad4s1a on / (ufs, local, read-only)
devfs on /dev (devfs, local)
/dev/ad4s1d on /var (ufs, local, soft-updates)
/dev/ad4s1e on /tmp (ufs, local, soft-updates)
/dev/ad4s1f on /usr (ufs, local, soft-updates)
/dev/ad4s1g on /home (ufs, local)
/dev/ad4s1h on /scratch (ufs, local, soft-updates)
procfs on /proc (procfs, local)

ingo(at)ws2:/scratch df -k .
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/ad4s1h 62488578 327862 57161630 1% /scratch

ingo(at)ws2:/scratch dd if=/dev/zero of=tmp bs=32k count=10k
10240+0 records in
10240+0 records out
335544320 bytes transferred in 6.450929 secs (52014884 bytes/sec)

NetBSD:
-------------
NetBSD 3.1 (GENERIC) #0: Tue Oct 31 04:27:07 UTC 2006 builds(at)b0.netbsd.org:/home/builds/ab/netbsd-3-1-RELEASE/i386/200610302053Z-obj/home/builds/ab/netbsd-3-1-RELEASE/src/sys/arch/i386/compile/GENERIC i386

$ df -k .
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/wd0e 5040822 4682624 106158 97% /home

$ dd if=/dev/zero of=tmp bs=32k count=10k
10240+0 records in
10240+0 records out
335544320 bytes transferred in 48.363 secs (6938037 bytes/sec)

--------------
FAZIT
--------------

7.497 mal langsamer als FreeBSD, bei gleicher Hardware.
Die Position der Datei auf der Platte macht nur minimale Unterschiede.

> Was sagen die Logs? :)

NetBSD 3.1 (GENERIC) #0: Tue Oct 31 04:27:07 UTC 2006
        builds(at)b0.netbsd.org:/home/builds/ab/netbsd-3-1-RELEASE/i386/200610302053Z-obj/home/builds/ab/netbsd-3-1-RELEASE/src/sys/arch/i386/compile/GENERIC
total memory = 510 MB
avail memory = 491 MB
BIOS32 rev. 0 found at 0xfa780
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD Unknown K7 (Athlon) (686-class), 2010.40 MHz, id 0x20f71
cpu0: features 78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features 78bfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,MMX>
cpu0: features 78bfbff<FXSR,SSE,SSE2>
cpu0: features2 1<SSE3>
cpu0: "AMD Opteron(tm) Processor 146"
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
NVIDIA product 0x005e (miscellaneous memory, revision 0xa3) at pci0 dev 0 function 0 not configured
pcib0 at pci0 dev 1 function 0
pcib0: NVIDIA product 0x0050 (rev. 0xa3)
NVIDIA nForce4 SMBus (SMBus serial bus, revision 0xa2) at pci0 dev 1 function 1 not configured
... usb
viaide0 at pci0 dev 6 function 0
viaide0: NVIDIA nForce4 IDE Controller (rev. 0xf2)
viaide0: bus-master DMA support present
viaide0: primary channel configured to compatibility mode
viaide0: primary channel interrupting at irq 14
atabus0 at viaide0 channel 0
viaide0: secondary channel configured to compatibility mode
viaide0: secondary channel interrupting at irq 15
atabus1 at viaide0 channel 1
viaide1 at pci0 dev 7 function 0
viaide1: NVIDIA nForce4 Serial ATA Controller (rev. 0xf3)
viaide1: bus-master DMA support present
viaide1: primary channel wired to native-PCI mode
viaide1: using irq 11 for native-PCI interrupt
atabus2 at viaide1 channel 0
viaide1: secondary channel wired to native-PCI mode
atabus3 at viaide1 channel 1
viaide2 at pci0 dev 8 function 0
viaide2: NVIDIA nForce4 Serial ATA Controller (rev. 0xf3)
viaide2: bus-master DMA support present
viaide2: primary channel wired to native-PCI mode
viaide2: using irq 10 for native-PCI interrupt
atabus4 at viaide2 channel 0
viaide2: secondary channel wired to native-PCI mode
atabus5 at viaide2 channel 1
ppb0 at pci0 dev 9 function 0: NVIDIA product 0x005c (rev. 0xa2)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 5 function 0: ATI Technologies Rage XL (rev. 0x27)
wsdisplay0 at vga1 kbdmux 1
wsmux1: connecting to wsdisplay0
nfe0 at pci0 dev 10 function 0: irq 3, address 00:e0:81:5d:f6:ac
makphy0 at nfe0 phy 1: Marvell 88E1111 Gigabit PHY, rev. 2
makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
ppb1 at pci0 dev 11 function 0: NVIDIA product 0x005d (rev. 0xa3)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
ppb2 at pci0 dev 12 function 0: NVIDIA product 0x005d (rev. 0xa3)
pci3 at ppb2 bus 3
pci3: i/o space, memory space enabled, rd/line, wr/inv ok
ppb3 at pci0 dev 13 function 0: NVIDIA product 0x005d (rev. 0xa3)
pci4 at ppb3 bus 4
pci4: i/o space, memory space enabled, rd/line, wr/inv ok
bge0 at pci4 dev 0 function 0: Broadcom BCM5721 Gigabit Ethernet
bge0: interrupting at irq 5
bge0: PCI-Express DMA setting 0x76180000, expected 0x76180000
bge0: ASIC BCM5751 A1 (0x4101), Ethernet address 00:e0:81:5d:f6:ad
bge0: setting short Tx thresholds
brgphy0 at bge0 phy 1: BCM5750 1000BASE-T media interface, rev. 0
brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
ppb4 at pci0 dev 14 function 0: NVIDIA product 0x005d (rev. 0xa3)
pci5 at ppb4 bus 5
pci5: i/o space, memory space enabled, rd/line, wr/inv ok
pchb0 at pci0 dev 24 function 0
pchb0: Advanced Micro Devices AMD64 HyperTransport configuration (rev. 0x00)
pchb1 at pci0 dev 24 function 1
pchb1: Advanced Micro Devices AMD64 Address Map configuration (rev. 0x00)
pchb2 at pci0 dev 24 function 2
pchb2: Advanced Micro Devices AMD64 DRAM configuration (rev. 0x00)
pchb3 at pci0 dev 24 function 3
pchb3: Advanced Micro Devices AMD64 Miscellaneous configuration (rev. 0x00)
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console
pckbc0 at isa0 port 0x60-0x64
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
isapnp0: no ISA Plug 'n Play devices found
Kernelized RAIDframe activated
atapibus0 at atabus0: 2 targets
cd0 at atapibus0 drive 0: <MATSHITADVD-ROM SR-8178, , PZ16> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
cd0(viaide0:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA)
wd0 at atabus2 drive 0: <HITACHI HDS7280SASUN80G 0620MTN00M>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 76319 MB, 155061 cyl, 16 head, 63 sec, 512 bytes/sect x 156301488 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(viaide1:0:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
bge0: PCI-Express DMA setting 0x76180000, expected 0x76180000
dma read modebits: set 575x tso bit: 0x 80203fe
dma read modebits: 0x 80203fe
wsdisplay0: screen 1 added (80x25, vt100 emulation)

Mit freundlichem Gruss

    Ingo Rohlfs
    

-- 
"Unix is very user-friendly. It's just picky who its friends are."
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Mon 01 Oct 2007 - 22:00:05 CEST

search this site