Well you don't have dma on wd2. Include the output of pcidump -v and I'll try cook up a diff.
On Sun, Apr 19, 2009 at 11:16:55PM -0700, 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. > > 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 > > -- > View this message in context: > http://www.nabble.com/Slow-SATA-write-speeds-with-SMB-tp23130953p23130953.html > Sent from the openbsd user - misc mailing list archive at Nabble.com.