From owner-freebsd-questions@FreeBSD.ORG Fri Jun 29 19:58:37 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 527C916A46D for ; Fri, 29 Jun 2007 19:58:37 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp01.sth.basefarm.net (ch-smtp01.sth.basefarm.net [80.76.149.212]) by mx1.freebsd.org (Postfix) with ESMTP id D2C5813C45E for ; Fri, 29 Jun 2007 19:58:36 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from c83-253-10-135.bredband.comhem.se ([83.253.10.135]:64838 helo=falcon.midgard.homeip.net) by ch-smtp01.sth.basefarm.net with smtp (Exim 4.66) (envelope-from ) id 1I4Mbz-0004hA-5N for freebsd-questions@freebsd.org; Fri, 29 Jun 2007 21:58:36 +0200 Received: (qmail 3554 invoked from network); 29 Jun 2007 21:58:33 +0200 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with SMTP; 29 Jun 2007 21:58:33 +0200 Received: (qmail 63171 invoked by uid 1001); 29 Jun 2007 21:58:33 +0200 Date: Fri, 29 Jun 2007 21:58:33 +0200 From: Erik Trulsson To: Alin Tuhut Message-ID: <20070629195833.GA63129@owl.midgard.homeip.net> Mail-Followup-To: Alin Tuhut , freebsd-questions@freebsd.org References: <425904.35798.qm@web27111.mail.ukl.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <425904.35798.qm@web27111.mail.ukl.yahoo.com> User-Agent: Mutt/1.5.14 (2007-02-12) X-Originating-IP: 83.253.10.135 X-ACL-Warn: Too high rate of unknown addresses received from you X-Scan-Result: No virus found in message 1I4Mbz-0004hA-5N. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1I4Mbz-0004hA-5N ba4e33e25a83dd5cb80074df3a5ac77e Cc: freebsd-questions@freebsd.org Subject: Re: SATA HDD seen at UDMA33 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jun 2007 19:58:37 -0000 On Fri, Jun 29, 2007 at 05:10:27PM +0000, Alin Tuhut wrote: > Update > OS is a 6.2-RELEASE on AMD64. > Here is the output of the "diskinfo -t ad4" command. > > ad4 > 512 # sectorsize > 250059350016 # mediasize in bytes (233G) > 488397168 # mediasize in sectors > 484521 # Cylinders according to firmware. > 16 # Heads according to firmware. > 63 # Sectors according to firmware. > > Seek times: > Full stroke: 250 iter in 5.432801 sec = 21.731 msec > Half stroke: 250 iter in 3.877507 sec = 15.510 msec > Quarter stroke: 500 iter in 5.912781 sec = 11.826 msec > Short forward: 400 iter in 3.795284 sec = 9.488 msec > Short backward: 400 iter in 2.920622 sec = 7.302 msec > Seq outer: 2048 iter in 0.285495 sec = 0.139 msec > Seq inner: 2048 iter in 0.333242 sec = 0.163 msec > Transfer rates: > outside: 102400 kbytes in 1.454757 sec = 70390 kbytes/sec > middle: 102400 kbytes in 1.708399 sec = 59939 kbytes/sec > inside: 102400 kbytes in 2.725383 sec = 37573 kbytes/sec > > ----- Original Message ---- > From: Alin Tuhut > To: freebsd-questions@freebsd.org > Sent: Friday, 29 June, 2007 7:36:40 PM > Subject: SATA HDD seen at UDMA33 > > Hello, > > I have a SATA HDD (http://www.samsung.com/Products/HardDiskDrive/SpinpointPSeries/HardDiskDrive_SpinpointPSeries_SP2504C.asp) in my server but it shows: > > ad4: 238475MB at ata2-master UDMA33 > > I've seen here http://monkey.org/freebsd/archive/freebsd-stable/200705/msg00393.html that it's detected at ata2-master SATA150 > > Can anyone please tell me why it's seen at UDMA33 and how can I fix this so it's detected correctly? I'm running FreeBSD 6.2. > Short answer: Don't worry that it says 'UDMA33' - your disk runs at full speed anyway. Longer answer: This looks like a problem with the disk controller rather than with the disk itself - it would not matter if you changed the HDD to a different model. FreeBSD does apparently not fully support your disk controller and therefore treats it as a 'generic' ATA controller - which limits the detected speed to UDMA33. If it had been a PATA controller it would indeed also have run at a max treansfer speed of 33 MB/s. A SATA controller however will run at 150 (or 300 for newer disks/controllers) MB/s regardless of what FreeBSD shows. The transfer rates that diskinfo reports that you quote above shows that the disk does indeed run at faster than UDMA33 speed. The numbers quoted are indeed almost exactly what I would expect from that particular HDD running at full speed. To fix this so that FreeBSD detects your controller correctly you would need to update the ata(4) driver so that it gets support for your controller. This support might already exist in some newer version of FreeBSD, or it might not - you haven't said what controller you are using so I have no way of knowing the status of its support in FreeBSD. -- Erik Trulsson ertr1013@student.uu.se