Kristian Rooke wrote:
> Hi Alexander,
> 
> I was more than happy to dump the whole dmesg, but I just didn't want to put
> too much into my first message.

I have yet to see anyone complaining about too much information. ;-)

Nevertheless, AFAICS (which is rather limited), it seems your wd2 disk
(which I assume is the problematic one) is attached as an IDE device but
is missing the corresponding wd0/wd1 line:

   wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 5

My guess would be that the mainboard is using some (possibly crappy)
IDE/SATA converter that, at least from OpenBSD's point of view, does not
support anything but the basics, causing the bad result.

Regarding FTP/SMB differences, I guess that could come from differences
in the protocols and how they do their disk access etc.

As noted, my knowledge is not great at these kind of things, so ACK's,
NAK's and/or corrections would still be appreciated. :-)

/Alexander

> 
> Please find the full dmesg below:
> 
> OpenBSD 4.4 (GENERIC) #1021: Tue Aug 12 17:16:55 MDT 2008
>     dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
> cpu0: Intel(R) Core(TM)2 Duo CPU E7200 @ 2.53GHz ("GenuineIntel" 686-class)
> 2.54 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,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,CX16,xTPR
> cpu0: unknown i686 EBL_CR_POWERON value 3 (0x424c0000)
> real mem  = 2010673152 (1917MB)
> avail mem = 1935548416 (1845MB)
> mainbus0 at root
> bios0 at mainbus0: AT/286+ BIOS, date 09/02/08, BIOS32 rev. 0 @ 0xf1df0,
> SMBIOS rev. 2.5 @ 0xf0000 (50 entries)
> bios0: vendor Phoenix Technologies, LTD version "ASUS P5N-EM HDMI ACPI BIOS
> Revision 0401" date 09/02/2008
> bios0: ASUSTeK Computer INC. P5N-EM HDMI
> apm0 at bios0: Power Management spec V1.2 (slowidle)
> apm0: AC on, battery charge unknown
> acpi at bios0 function 0x0 not configured
> pcibios0 at bios0: rev 3.0 @ 0xf0000/0xde74
> pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfddb0/192 (10 entries)
> pcibios0: PCI Exclusive IRQs: 5 10 11
> pcibios0: no compatible PCI ICU found
> pcibios0: Warning, unable to fix up PCI interrupt routing
> pcibios0: PCI bus #4 is the last bus
> bios0: ROM list: 0xc0000/0xde00 0xd0000/0x4000! 0xd4000/0x1000
> cpu0 at mainbus0
> cpu0: EST: unknown system bus clock
> pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
> pchb0 at pci0 dev 0 function 0 vendor "NVIDIA", unknown product 0x07c1 rev
> 0xa2
> "NVIDIA MCP73 Memory" rev 0xa2 at pci0 dev 0 function 1 not configured
> "NVIDIA MCP73 Memory" rev 0xa1 at pci0 dev 1 function 0 not configured
> "NVIDIA MCP73 Memory" rev 0xa1 at pci0 dev 1 function 1 not configured
> "NVIDIA MCP73 Memory" rev 0xa1 at pci0 dev 1 function 2 not configured
> "NVIDIA MCP73 Memory" rev 0xa1 at pci0 dev 1 function 3 not configured
> "NVIDIA MCP73 Memory" rev 0xa1 at pci0 dev 1 function 4 not configured
> "NVIDIA MCP73 Memory" rev 0xa1 at pci0 dev 1 function 5 not configured
> "NVIDIA MCP73 Memory" rev 0xa1 at pci0 dev 1 function 6 not configured
> "NVIDIA MCP73 Memory" rev 0xa1 at pci0 dev 2 function 0 not configured
> pcib0 at pci0 dev 3 function 0 "NVIDIA MCP73 ISA" rev 0xa2
> nviic0 at pci0 dev 3 function 1 "NVIDIA MCP73 SMBus" rev 0xa1
> iic0 at nviic0
> spdmem0 at iic0 addr 0x50: 1GB DDR2 SDRAM non-parity PC2-6400CL5
> spdmem1 at iic0 addr 0x52: 1GB DDR2 SDRAM non-parity PC2-6400CL5
> iic1 at nviic0
> "NVIDIA MCP73 Memory" rev 0xa1 at pci0 dev 3 function 2 not configured
> "NVIDIA MCP73 Memory" rev 0xa1 at pci0 dev 3 function 4 not configured
> ohci0 at pci0 dev 4 function 0 "NVIDIA MCP73 USB" rev 0xa1: irq 10, version
> 1.0, legacy support
> ehci0 at pci0 dev 4 function 1 "NVIDIA MCP73 USB" rev 0xa1: irq 11
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 "NVIDIA EHCI root hub" rev 2.00/1.00 addr 1
> pciide0 at pci0 dev 8 function 0 "NVIDIA MCP73 IDE" rev 0xa1: DMA, channel 0
> configured to compatibility, channel 1 configured to compatibility
> wd0 at pciide0 channel 0 drive 0: <ST3320620A>
> wd0: 16-sector PIO, LBA48, 305245MB, 625142448 sectors
> wd1 at pciide0 channel 0 drive 1: <ST3750640A>
> wd1: 16-sector PIO, LBA48, 715404MB, 1465149168 sectors
> wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
> wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 5
> pciide0: channel 1 ignored (disabled)
> azalia0 at pci0 dev 9 function 0 "NVIDIA MCP73 HD Audio" rev 0xa1: irq 5
> azalia0: /usr/src/sys/dev/pci/azalia.c/1348 invalid PCM format: 0x00000000
> azalia0: codec[s]: Realtek ALC883, NVIDIA/0x8001, using Realtek ALC883
> audio0 at azalia0
> ppb0 at pci0 dev 10 function 0 "NVIDIA MCP73 PCIE" rev 0xa1
> pci1 at ppb0 bus 1
> rl0 at pci1 dev 5 function 0 "Realtek 8139" rev 0x10: irq 10, address
> 00:40:f4:1d:22:8c
> rlphy0 at rl0 phy 0: RTL internal PHY
> em0 at pci1 dev 6 function 0 "Intel PRO/1000GT (82541GI)" rev 0x05: irq 11,
> address 00:0e:0c:81:65:5a
> ppb1 at pci0 dev 11 function 0 "NVIDIA MCP73 PCIE" rev 0xa1
> pci2 at ppb1 bus 2
> ppb2 at pci0 dev 12 function 0 "NVIDIA MCP73 PCIE" rev 0xa1
> pci3 at ppb2 bus 3
> ppb3 at pci0 dev 13 function 0 "NVIDIA MCP73 PCIE" rev 0xa1
> pci4 at ppb3 bus 4
> pciide1 at pci0 dev 14 function 0 "NVIDIA MCP73 AHCI" rev 0xa2: DMA
> (unsupported), channel 0 wired to native-PCI, channel 1 wired to native-PCI
> pciide1: using irq 11 for native-PCI interrupt
> wd2 at pciide1 channel 0 drive 0: <ST31500341AS>
> wd2: 16-sector PIO, LBA48, 1430799MB, 2930277168 sectors
> atapiscsi0 at pciide1 channel 0 drive 1
> scsibus0 at atapiscsi0: 2 targets, initiator 7
> cd0 at scsibus0 targ 0 lun 0: <HL-DT-ST, DVD-RAM GH22NS30, 1.00> ATAPI
> 5/cdrom removable
> pciide1: channel 1 ignored (not responding; disabled or no drives?)
> nfe0 at pci0 dev 15 function 0 "NVIDIA MCP73 LAN" rev 0xa2: irq 15, address
> 00:1f:c6:dd:d3:64
> rgephy0 at nfe0 phy 1: RTL8169S/8110S PHY, rev. 2
> vga1 at pci0 dev 16 function 0 vendor "NVIDIA", unknown product 0x07e1 rev
> 0xa2
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> drm at vga1 unsupported
> isa0 at pcib0
> isadma0 at isa0
> com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> 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
> wbsio0 at isa0 port 0x2e/2: W83627DHG rev 0x23
> lm1 at wbsio0 port 0x290/8: W83627DHG
> npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
> fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
> usb1 at ohci0: USB revision 1.0
> uhub1 at usb1 "NVIDIA OHCI root hub" rev 1.00/1.00 addr 1
> biomask 7f4d netmask ff4d ttymask ffdf
> mtrr: Pentium Pro MTRR support
> softraid0 at root
> root on wd0a swap on wd0b dump on wd0b
> 
> 
> On Mon, Apr 20, 2009 at 4:49 PM, Alexander Hall <alexan...@beard.se> wrote:
> 
>> Syntic wrote:
>>> Hi there,
>>>
>>> I recently installed OpenBSD on one of my servers and I have noticed that
>> I
>>> am experiencing slow SATA write speeds when using SMB to copy files
>> across
>>> my network.
>>>
>>> I currently have 1xSATA disk & 2xPATA disks in my server.
>>> When I copy files across my network (GigE) to my PATA disk, I am seeing
>>> approx 600Mbps, however when I copy to the SATA disk I only see approx
>>> 125Mbps.
>>> I also noticed that the CPU utilization (for SMBd) is at about 90% when
>>> copying to the SATA disk, but only hovers around 10% when copying the
>> PATA
>>> disk.
>>> I thought this may have been a driver issue with SATA, therefore causing
>> the
>>> increased CPU when copying. But I copied some files across to the same
>> SATA
>>> disk using FTP instead and the CPU stayed quite low and the write speeds
>>> were approx 600Mbps.
>>>
>>> Does anybody have any ideas what may be causing the issues?
>>>
>>> I have provided some info from dmesg below which may be of use.
>> sata disks normally (if not always) show up as sd's. You have 3 wd's.
>> That makes me confused and lead to believe you might be running a very
>> old OpenBSD version, something I cannot conclude from the partial dmesg
>> you included. Since you obviously have some issues you do not know how
>> to handle,
>>
>>  ALWAYS INCLUDE THE ENTIRE DMESG
>>
>> and do not make any assumptions of what would be necessary or not.
>>
>> Cheers,
>> Alexander
>>
>>> cpu0: Intel(R) Core(TM)2 Duo CPU E7200 @ 2.53GHz ("GenuineIntel"
>> 686-class)
>>> 2.54 GHz
>>> bios0 at mainbus0: AT/286+ BIOS, date 09/02/08, BIOS32 rev. 0 @ 0xf1df0,
>>> SMBIOS rev. 2.5 @ 0xf0000 (50 entries)
>>> bios0: vendor Phoenix Technologies, LTD version "ASUS P5N-EM HDMI ACPI
>> BIOS
>>> Revision 0401" date 09/02/2008
>>> bios0: ASUSTeK Computer INC. P5N-EM HDMI
>>> spdmem0 at iic0 addr 0x50: 1GB DDR2 SDRAM non-parity PC2-6400CL5
>>> spdmem1 at iic0 addr 0x52: 1GB DDR2 SDRAM non-parity PC2-6400CL5
>>> pciide0 at pci0 dev 8 function 0 "NVIDIA MCP73 IDE" rev 0xa1: DMA,
>> channel 0
>>> configured to compatibility, channel 1 configured to compatibility
>>> pciide1 at pci0 dev 14 function 0 "NVIDIA MCP73 AHCI" rev 0xa2: DMA
>>> (unsupported), channel 0 wired to native-PCI, channel 1 wired to
>> native-PCI
>>> wd0 at pciide0 channel 0 drive 0: <ST3320620A>
>>> wd0: 16-sector PIO, LBA48, 305245MB, 625142448 sectors
>>> wd1 at pciide0 channel 0 drive 1: <ST3750640A>
>>> wd1: 16-sector PIO, LBA48, 715404MB, 1465149168 sectors
>>> wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
>>> wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 5
>>> wd2 at pciide1 channel 0 drive 0: <ST31500341AS>
>>> wd2: 16-sector PIO, LBA48, 1430799MB, 2930277168 sectors
>>>
>>> Thanks,
>>> Kristian

Reply via email to