NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Linux-Netbsd huge difference of speed, same hardware
Hi All,
I use a machine PCEngines APU 4 (https://www.pcengines.ch/) with
a sd card reader and a Samsung card of 64Gb. Here is the description
of the hardware in the log of NetBSD 9.
[ 1.392503] ld0 at sdmmc0: <0x1b:0x534d:EC2QT:0x30:0x814961cd:0x134>
[ 1.401525] ld0: 61056 MB, 7783 cyl, 255 head, 63 sec, 512 bytes/sect x 125042688 sectors
[ 1.411529] ld0: 4-bit width, High-Speed/SDR25, 50.000 MHz
[ 3.902652] boot device: ld0
[ 3.902652] root on ld0a dumps on ld0b
I try to execute the command "dd if=/dev/urandom of=/dev/ld0f bs=2m" (or "bs=32k" but
this make no difference).
With the last distribution of Alpine Linux (kernel 5.4) the speed is about 17 Mb/s
while with NetBSD the speed is 1,6 Mb/s.
Any Idea?
Best regards,
--------------------------------Here is the dmsg log produced under NetBSD------------------------
[ 1.000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
[ 1.000000] 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
[ 1.000000] 2018, 2019, 2020 The NetBSD Foundation, Inc. All rights reserved.
[ 1.000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[ 1.000000] The Regents of the University of California. All rights reserved.
[ 1.000000] NetBSD 9.0 (GENERIC) #0: Fri Feb 14 00:06:28 UTC 2020
[ 1.000000] mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC
[ 1.000000] total memory = 4078 MB
[ 1.000000] avail memory = 3936 MB
[ 1.000000] rnd: seeded with 256 bits
[ 1.000000] timecounter: Timecounters tick every 10.000 msec
[ 1.000000] Kernelized RAIDframe activated
[ 1.000000] running cgd selftest aes-xts-256 aes-xts-512 done
[ 1.000000] timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
[ 1.000003] PC Engines apu3 (1.0)
[ 1.000003] mainbus0 (root)
[ 1.000003] ACPI: RSDP 0x00000000000F3AF0 000024 (v02 COREv4)
[ 1.000003] ACPI: XSDT 0x00000000CFEA80E0 000064 (v01 COREv4 COREBOOT 00000000 CORE 20180531)
[ 1.000003] ACPI: FACP 0x00000000CFEA9D70 0000F4 (v04 COREv4 COREBOOT 00000000 CORE 20180531)
[ 1.000003] ACPI: DSDT 0x00000000CFEA8280 001AF0 (v02 COREv4 COREBOOT 00010001 INTL 20180531)
[ 1.000003] ACPI: FACS 0x00000000CFEA8240 000040
[ 1.000003] ACPI: SSDT 0x00000000CFEA9E70 00008A (v02 COREv4 COREBOOT 0000002A CORE 20180531)
[ 1.000003] ACPI: APIC 0x00000000CFEA9F00 00007E (v02 COREv4 COREBOOT 00000000 CORE 20180531)
[ 1.000003] ACPI: HEST 0x00000000CFEA9F80 0001D0 (v01 COREv4 COREBOOT 00000000 CORE 20180531)
[ 1.000003] ACPI: IVRS 0x00000000CFEAA150 000118 (v01 COREv4 COREBOOT 00000000 CORE 20180531)
[ 1.000003] ACPI: SSDT 0x00000000CFEAA270 0048A6 (v02 AMD AGESA 00000002 MSFT 04000000)
[ 1.000003] ACPI: SSDT 0x00000000CFEAEB20 0007C8 (v01 AMD AGESA 00000001 AMD 00000001)
[ 1.000003] ACPI: HPET 0x00000000CFEAF2F0 000038 (v01 COREv4 COREBOOT 00000000 CORE 20180531)
[ 1.000003] ACPI: 4 ACPI AML tables successfully acquired and loaded
[ 1.000003] ioapic0 at mainbus0 apid 4: pa 0xfec00000, version 0x21, 24 pins
[ 1.000003] ioapic1 at mainbus0 apid 5: pa 0xfec20000, version 0x21, 32 pins
[ 1.000003] cpu0 at mainbus0 apid 0
[ 1.000003] cpu0: AMD GX-412TC SOC , id 0x730f01
[ 1.000003] cpu0: package 0, core 0, smt 0
[ 1.000003] cpu1 at mainbus0 apid 1
[ 1.000003] cpu1: AMD GX-412TC SOC , id 0x730f01
[ 1.000003] cpu1: package 0, core 1, smt 0
[ 1.000003] cpu2 at mainbus0 apid 2
[ 1.000003] cpu2: AMD GX-412TC SOC , id 0x730f01
[ 1.000003] cpu2: package 0, core 2, smt 0
[ 1.000003] cpu3 at mainbus0 apid 3
[ 1.000003] cpu3: AMD GX-412TC SOC , id 0x730f01
[ 1.000003] cpu3: package 0, core 3, smt 0
[ 1.000003] acpi0 at mainbus0: Intel ACPICA 20190405
[ 1.000003] acpi0: X/RSDT: OemId <COREv4,COREBOOT,00000000>, AslId <CORE,20180531>
[ 1.000003] acpi0: SCI interrupting at int 9
[ 1.000003] acpi0: fixed power button present
[ 1.000003] timecounter: Timecounter "ACPI-Safe" frequency 3579545 Hz quality 900
[ 1.025694] hpet0 at acpi0: high precision event timer (mem 0xfed00000-0xfed00400)
[ 1.025694] timecounter: Timecounter "hpet0" frequency 14318180 Hz quality 2000
[ 1.033453] acpibut0 at acpi0 (PWRB, PNP0C0C-170): ACPI Power Button
[ 1.033453] LDRC (PNP0C02) at acpi0 not configured
[ 1.033453] attimer1 at acpi0 (TMR, PNP0100): io 0x40-0x43 irq 0
[ 1.033453] pcppi1 at acpi0 (SPKR, PNP0800): io 0x61
[ 1.033453] spkr0 at pcppi1: PC Speaker
[ 1.033453] wsbell at spkr0 not configured
[ 1.033453] midi0 at pcppi1: PC speaker
[ 1.033453] sysbeep0 at pcppi1
[ 1.033453] COM1 (PNP0501) at acpi0 not configured
[ 1.033453] COM2 (PNP0501) at acpi0 not configured
[ 1.033453] GPIO (AMD0030) at acpi0 not configured
[ 1.033453] BTNS (PRP0001) at acpi0 not configured
[ 1.033453] BTN1 (PRP0001) at acpi0 not configured
[ 1.033453] LEDS (PRP0001) at acpi0 not configured
[ 1.033453] LED1 (PRP0001) at acpi0 not configured
[ 1.033453] LED2 (PRP0001) at acpi0 not configured
[ 1.033453] LED3 (PRP0001) at acpi0 not configured
[ 1.033453] AWR0 (PNP0C02) at acpi0 not configured
[ 1.033453] ABR0 (PNP0C02) at acpi0 not configured
[ 1.033453] ABR1 (PNP0C02) at acpi0 not configured
[ 1.033453] ABR2 (PNP0C02) at acpi0 not configured
[ 1.033453] ABR3 (PNP0C02) at acpi0 not configured
[ 1.033453] ABR4 (PNP0C02) at acpi0 not configured
[ 1.033453] CTBL (BOOT0000) at acpi0 not configured
[ 1.033453] ACPI: Enabled 4 GPEs in block 00 to 1F
[ 1.033453] attimer1: attached to pcppi1
[ 1.033453] pci0 at mainbus0 bus 0: configuration mode 1
[ 1.033453] pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
[ 1.033453] pchb0 at pci0 dev 0 function 0: vendor 1022 product 1566 (rev. 0x00)
[ 1.033453] vendor 1022 product 1567 (IOMMU system) at pci0 dev 0 function 2 not configured
[ 1.033453] pchb1 at pci0 dev 2 function 0: vendor 1022 product 156b (rev. 0x00)
[ 1.033453] ppb0 at pci0 dev 2 function 1: vendor 1022 product 1439 (rev. 0x00)
[ 1.033453] ppb0: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x4 @ 5.0GT/s
[ 1.033453] ppb0: link is x1 @ 2.5GT/s
[ 1.033453] pci1 at ppb0 bus 1
[ 1.033453] pci1: i/o space, memory space enabled, rd/line, wr/inv ok
[ 1.033453] wm0 at pci1 dev 0 function 0: I211 Ethernet (COPPER) (rev. 0x03)
[ 1.033453] wm0: for TX and RX interrupting at msix0 vec 0 affinity to 1
[ 1.033453] wm0: for TX and RX interrupting at msix0 vec 1 affinity to 2
[ 1.033453] wm0: for LINK interrupting at msix0 vec 2
[ 1.033453] wm0: PCI-Express bus
[ 1.033453] wm0: 64 words iNVM, version 0.6
[ 1.033453] wm0: Ethernet address 00:0d:b9:4e:88:10
[ 1.033453] wm0: Copper
[ 1.033453] wm0: 0xc614420<INVM,IOH_VALID,PCIE,NEWQUEUE,WOL,EEE,PLLWA,CLSEMWA>
[ 1.033453] makphy0 at wm0 phy 1: I210 10/100/1000 media interface, rev. 0
[ 1.033453] makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
[ 1.033453] ppb1 at pci0 dev 2 function 2: vendor 1022 product 1439 (rev. 0x00)
[ 1.033453] ppb1: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x1 @ 5.0GT/s
[ 1.033453] ppb1: link is x1 @ 2.5GT/s
[ 1.033453] pci2 at ppb1 bus 2
[ 1.033453] pci2: i/o space, memory space enabled, rd/line, wr/inv ok
[ 1.033453] wm1 at pci2 dev 0 function 0: I211 Ethernet (COPPER) (rev. 0x03)
[ 1.033453] wm1: for TX and RX interrupting at msix1 vec 0 affinity to 1
[ 1.033453] wm1: for TX and RX interrupting at msix1 vec 1 affinity to 2
[ 1.033453] wm1: for LINK interrupting at msix1 vec 2
[ 1.033453] wm1: PCI-Express bus
[ 1.033453] wm1: 64 words iNVM, version 0.6
[ 1.033453] wm1: Ethernet address 00:0d:b9:4e:88:11
[ 1.033453] wm1: Copper
[ 1.033453] wm1: 0xc614420<INVM,IOH_VALID,PCIE,NEWQUEUE,WOL,EEE,PLLWA,CLSEMWA>
[ 1.033453] makphy1 at wm1 phy 1: I210 10/100/1000 media interface, rev. 0
[ 1.033453] makphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
[ 1.033453] ppb2 at pci0 dev 2 function 3: vendor 1022 product 1439 (rev. 0x00)
[ 1.033453] ppb2: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x1 @ 5.0GT/s
[ 1.033453] ppb2: link is x1 @ 2.5GT/s
[ 1.033453] pci3 at ppb2 bus 3
[ 1.033453] pci3: i/o space, memory space enabled, rd/line, wr/inv ok
[ 1.033453] wm2 at pci3 dev 0 function 0: I211 Ethernet (COPPER) (rev. 0x03)
[ 1.033453] wm2: for TX and RX interrupting at msix2 vec 0 affinity to 1
[ 1.033453] wm2: for TX and RX interrupting at msix2 vec 1 affinity to 2
[ 1.033453] wm2: for LINK interrupting at msix2 vec 2
[ 1.033453] wm2: PCI-Express bus
[ 1.033453] wm2: 64 words iNVM, version 0.6
[ 1.033453] wm2: Ethernet address 00:0d:b9:4e:88:12
[ 1.033453] wm2: Copper
[ 1.033453] wm2: 0xc614420<INVM,IOH_VALID,PCIE,NEWQUEUE,WOL,EEE,PLLWA,CLSEMWA>
[ 1.033453] makphy2 at wm2 phy 1: I210 10/100/1000 media interface, rev. 0
[ 1.033453] makphy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
[ 1.033453] ppb3 at pci0 dev 2 function 4: vendor 1022 product 1439 (rev. 0x00)
[ 1.033453] ppb3: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x1 @ 5.0GT/s
[ 1.033453] ppb3: link is x1 @ 2.5GT/s
[ 1.033453] pci4 at ppb3 bus 4
[ 1.033453] pci4: i/o space, memory space enabled, rd/line, wr/inv ok
[ 1.033453] wm3 at pci4 dev 0 function 0: I211 Ethernet (COPPER) (rev. 0x03)
[ 1.033453] wm3: for TX and RX interrupting at msix3 vec 0 affinity to 1
[ 1.033453] wm3: for TX and RX interrupting at msix3 vec 1 affinity to 2
[ 1.033453] wm3: for LINK interrupting at msix3 vec 2
[ 1.033453] wm3: PCI-Express bus
[ 1.033453] wm3: 64 words iNVM, version 0.6
[ 1.033453] wm3: Ethernet address 00:0d:b9:4e:88:13
[ 1.033453] wm3: Copper
[ 1.033453] wm3: 0xc614420<INVM,IOH_VALID,PCIE,NEWQUEUE,WOL,EEE,PLLWA,CLSEMWA>
[ 1.033453] makphy3 at wm3 phy 1: I210 10/100/1000 media interface, rev. 0
[ 1.033453] makphy3: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
[ 1.033453] vendor 1022 product 1537 (miscellaneous crypto) at pci0 dev 8 function 0 not configured
[ 1.033453] xhci0 at pci0 dev 16 function 0: vendor 1022 product 7814 (rev. 0x11)
[ 1.033453] xhci0: interrupting at msix4 vec 0
[ 1.033453] xhci0: xHCI version 1.0
[ 1.033453] usb0 at xhci0: USB revision 3.0
[ 1.033453] usb1 at xhci0: USB revision 2.0
[ 1.033453] ahcisata0 at pci0 dev 17 function 0: vendor 1022 product 7800 (rev. 0x39)
[ 1.033453] ahcisata0: 64-bit DMA
[ 1.033453] ahcisata0: AHCI revision 1.30, 2 ports, 32 slots, CAP 0xf733ff81<CCCS,PSC,SSC,PMD,FBSS,SPM,ISS=0x3=Gen3,SCLO,SAL,SALP,SMPS,SSNTF,SNCQ,S64A>
[ 1.033453] ahcisata0: interrupting at msi5 vec 0
[ 1.033453] atabus0 at ahcisata0 channel 0
[ 1.033453] atabus1 at ahcisata0 channel 1
[ 1.033453] ehci0 at pci0 dev 19 function 0: vendor 1022 product 7808 (rev. 0x39)
[ 1.033453] ehci0: interrupting at ioapic0 pin 18
[ 1.033453] ehci0: EHCI version 1.0
[ 1.033453] usb2 at ehci0: USB revision 2.0
[ 1.033453] piixpm0 at pci0 dev 20 function 0: vendor 1022 product 780b (rev. 0x42)
[ 1.033453] piixpm0: polling
[ 1.033453] iic0 at piixpm0 port 0: I2C bus
[ 1.033453] iic1 at piixpm0 port 1: I2C bus
[ 1.033453] iic2 at piixpm0 port 2: I2C bus
[ 1.033453] iic3 at piixpm0 port 3: I2C bus
[ 1.033453] pcib0 at pci0 dev 20 function 3: vendor 1022 product 780e (rev. 0x11)
[ 1.033453] sdhc0 at pci0 dev 20 function 7: vendor 1022 product 7813 (rev. 0x01)
[ 1.033453] sdhc0: interrupting at ioapic0 pin 16
[ 1.033453] sdhc0: SDHC 2.0, rev 16, SDMA, 50000 kHz, HS 3.3V, 2048 byte blocks
[ 1.033453] sdmmc0 at sdhc0 slot 0
[ 1.033453] pchb2 at pci0 dev 24 function 0: vendor 1022 product 1580 (rev. 0x00)
[ 1.033453] pchb3 at pci0 dev 24 function 1: vendor 1022 product 1581 (rev. 0x00)
[ 1.033453] pchb4 at pci0 dev 24 function 2: vendor 1022 product 1582 (rev. 0x00)
[ 1.033453] amdnb_misc0 at pci0 dev 24 function 3: AMD NB Misc Configuration
[ 1.033453] amdtemp0 at amdnb_misc0: AMD CPU Temperature Sensors (Family16h)
[ 1.033453] pchb5 at pci0 dev 24 function 4: vendor 1022 product 1584 (rev. 0x00)
[ 1.033453] pchb6 at pci0 dev 24 function 5: vendor 1022 product 1585 (rev. 0x00)
[ 1.033453] isa0 at pcib0
[ 1.033453] lpt0 at isa0 port 0x378-0x37b irq 7
[ 1.033453] com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
[ 1.033453] com0: console
[ 1.033453] com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
[ 1.033453] acpicpu0 at cpu0: ACPI CPU
[ 1.033453] acpicpu0: C1: HLT, lat 0 us, pow 0 mW
[ 1.033453] acpicpu0: C2: I/O, lat 400 us, pow 0 mW
[ 1.033453] acpicpu0: P0: FFH, lat 4 us, pow 966 mW, 1000 MHz
[ 1.033453] acpicpu0: P1: FFH, lat 4 us, pow 795 mW, 800 MHz
[ 1.033453] acpicpu0: P2: FFH, lat 4 us, pow 600 mW, 600 MHz
[ 1.033453] acpicpu0: T0: I/O, lat 1 us, pow 0 mW, 100 %
[ 1.033453] acpicpu0: T1: I/O, lat 1 us, pow 0 mW, 88 %
[ 1.033453] acpicpu0: T2: I/O, lat 1 us, pow 0 mW, 76 %
[ 1.033453] acpicpu0: T3: I/O, lat 1 us, pow 0 mW, 64 %
[ 1.033453] acpicpu0: T4: I/O, lat 1 us, pow 0 mW, 52 %
[ 1.033453] acpicpu0: T5: I/O, lat 1 us, pow 0 mW, 40 %
[ 1.033453] acpicpu0: T6: I/O, lat 1 us, pow 0 mW, 28 %
[ 1.033453] acpicpu0: T7: I/O, lat 1 us, pow 0 mW, 16 %
[ 1.033453] acpicpu1 at cpu1: ACPI CPU
[ 1.033453] acpicpu2 at cpu2: ACPI CPU
[ 1.033453] acpicpu3 at cpu3: ACPI CPU
[ 1.033453] timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
[ 1.221444] timecounter: Timecounter "TSC" frequency 998167490 Hz quality 3000
[ 1.222621] uhub0 at usb0: NetBSD (0000) xHCI root hub (0000), class 9/0, rev 3.00/1.00, addr 0
[ 1.231646] uhub0: 2 ports with 2 removable, self powered
[ 1.231646] uhub1 at usb1: NetBSD (0000) xHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 0
[ 1.231646] uhub1: 2 ports with 2 removable, self powered
[ 1.341518] uhub2 at usb2: NetBSD (0000) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1
[ 1.351502] uhub2: 2 ports with 2 removable, self powered
[ 1.351502] sdhc0: cmd timeout error
[ 1.381515] IPsec: Initialized Security Association Processing.
[ 1.381515] sdmmc0: SD card status: 4-bit, C10, U3
[ 1.392503] ld0 at sdmmc0: <0x1b:0x534d:EC2QT:0x30:0x814961cd:0x134>
[ 1.392503] ahcisata0 port 0: device present, speed: 6.0Gb/s
[ 1.401525] ld0: 61056 MB, 7783 cyl, 255 head, 63 sec, 512 bytes/sect x 125042688 sectors
[ 1.411529] ld0: 4-bit width, High-Speed/SDR25, 50.000 MHz
[ 2.862180] umass0 at uhub1 port 1 configuration 1 interface 0
[ 2.872185] umass0: vendor 058f (0x58f) product 6387 (0x6387), rev 2.00/1.00, addr 1
[ 2.882217] umass0: using SCSI over Bulk-Only
[ 2.882217] scsibus0 at umass0: 2 targets, 1 lun per target
[ 2.882217] sd0 at scsibus0 target 0 lun 0: <, , 8.07> disk removable
[ 2.892194] sd0: fabricating a geometry
[ 2.902199] sd0: 14800 MB, 14800 cyl, 64 head, 32 sec, 512 bytes/sect x 30310400 sectors
[ 2.902199] sd0: fabricating a geometry
[ 2.912203] sd0: GPT GUID: 3a52e035-4567-4d0e-9770-4611ad1eb388
[ 2.912203] dk0 at sd0: "9232cac1-82f9-484a-bba0-1163147295de", 1024000 blocks at 34, type: ffs
[ 2.922207] dk1 at sd0: "11f1e91b-a1a5-4bd6-866b-ef731937dd51", 29286333 blocks at 1024034, type: <unknown>
[ 2.932241] wd0 at atabus0 drive 0
[ 2.942217] wd0: <Samsung SSD 860 EVO mSATA 500GB>
[ 2.942217] wd0: drive supports 1-sector PIO transfers, LBA48 addressing
[ 2.942217] wd0: 465 GB, 969021 cyl, 16 head, 63 sec, 512 bytes/sect x 976773168 sectors
[ 2.952221] wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133), WRITE DMA FUA, NCQ (32 tags)
[ 2.952221] wd0(ahcisata0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133) (using DMA), NCQ (31 tags)
[ 3.602513] uhub3 at uhub2 port 1: vendor 0438 (0x438) product 7900 (0x7900), class 9/0, rev 2.00/0.18, addr 2
[ 3.612547] uhub3: single transaction translator
[ 3.612547] uhub3: 4 ports with 4 removable, self powered
[ 3.902652] boot device: ld0
[ 3.902652] root on ld0a dumps on ld0b
[ 3.912824] /: replaying log to memory
[ 3.922663] root file system type: ffs
[ 3.922663] kern.module.path=/stand/amd64/9.0/modules
[ 4.332844] /: replaying log to disk
[ 5.983594] WARNING: ZFS on NetBSD is under development
[ 5.993633] ZFS filesystem version: 5
[ 34.487999] /DataExt: replaying log to disk
--
Home |
Main Index |
Thread Index |
Old Index