Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Apr 2002 18:11:33 +0100
From:      Scott Mitchell <scott.mitchell@mail.com>
To:        atk2@arctic.org
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: checking hard disk -- hdparm like tool?
Message-ID:  <20020427181133.C296@fishballoon.dyndns.org>
In-Reply-To: <20020427144716.14334.qmail@twinlark.arctic.org>; from atk2@arctic.org on Sat, Apr 27, 2002 at 02:47:16PM -0000
References:  <20020427152617.B296@fishballoon.dyndns.org> <20020427144716.14334.qmail@twinlark.arctic.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Apr 27, 2002 at 02:47:16PM -0000, atk2@arctic.org wrote:
> I did that -- and it does say dma -- but I think it is dma 2 (ata33). The
> drive is ata 133 and I was hoping for ata 100 (which freebsd supports). There
> is nothing in the var log messages or otherwise to indicate which dma mode it
> is in.
> 
> I'm hoping to get ppp working tomorrow and then will do a cvs-update to get
> atacontrol (I'm running off of the 4.5 release cd's).
> 
> Wish the info sysctrl/boot messages had more details. 

Here's the ATA-related stuff I get at boot time:

atapci0: <VIA 82C686 ATA100 controller> port 0xd400-0xd40f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
...
ad0: 57241MB <ST360021A> [116301/16/63] at ata0-master UDMA100
acd0: DVD-ROM <Pioneer DVD-ROM ATAPIModel DVD-106S 0122> at ata1-master using UDMA66

I've also got 'hw.ata.atapi_dma=1' on /boot/loader.conf to make sure the
DVD uses DMA, since it does seem to work properly with this drive.

There should be similar stuff in your boot messages telling you what modes
the drives are using.

> There is a dvd drive as slave -- and I was able to set it from the default
> pio mode to dma mode. I get about 2.5MB/S off the dvd and 10MB/S off the hard
> drive. However, if the dvd plays while the hard disk is active hard disk 
> drops to about 200KB/S (thought as master it would stay near peak). Oh
> well...

If those are the only two ATA devices in the system, put the DVD on a
separate cable -- performance will suck if you try to access two devices on
the same cable no matter what DMA mode they're in.  Speaking of cables,
make sure you've got the disk on a proper 80-way UDMA100 cable.

	Scott

-- 
===========================================================================
Scott Mitchell          | PGP Key ID | "Eagles may soar, but weasels
Cambridge, England      | 0x54B171B9 |  don't get sucked into jet engines"
scott.mitchell@mail.com | 0xAA775B8B |      -- Anon

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020427181133.C296>