From nobody@FreeBSD.org  Sun May 30 18:04:01 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 714EE1065675
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 30 May 2010 18:04:01 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 60B328FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 30 May 2010 18:04:01 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o4UI40Nf052554
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 30 May 2010 18:04:00 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o4UI40FG052550;
	Sun, 30 May 2010 18:04:00 GMT
	(envelope-from nobody)
Message-Id: <201005301804.o4UI40FG052550@www.freebsd.org>
Date: Sun, 30 May 2010 18:04:00 GMT
From: Brandon Falk <falkman@gamozo.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: SSD preformance issues
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         147227
>Category:       kern
>Synopsis:       [ata] SSD preformance issues
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 30 18:10:06 UTC 2010
>Closed-Date:    
>Last-Modified:  Wed Aug 04 03:20:33 UTC 2010
>Originator:     Brandon Falk
>Release:        8.0-RELEASE
>Organization:
Gamozo
>Environment:
FreeBSD localhost 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:02:08 UTC 2009     root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
I have an SSD that is rated at 285MB/s read, 275MB/s write, and 250MB/s
sustained write. On Linux, I easily sustain all these speeds, but on
FreeBSD I happen to only get about 108 MB/s write, and 116MB/s read.
Another thing I noticed is that my drive is only running at SATA 150, even
though my drive is SATA 300 and my controller is also detected as SATA 300.

*snip from dmesg*

atapci1: <Intel ICH7 SATA300 controller> port 0xc400-0xc407,0xc080-0xc083,0xc000-0xc007,0xbc00-0xbc03,0xb880-0xb88f irq 19 at device 31.2 on pci0
ad4: 47703MB <OCZ VERTEX2 1.00> at ata2-master SATA150

*snip from dmesg*

I do not have an AHCI setting in my BIOS, so that is not something that
I can change, but still Linux happens to preform perfectly fine with the
drive, so it has to be something to do with FreeBSD.
>How-To-Repeat:
Always occurs.
>Fix:
Unknown.

>Release-Note:
>Audit-Trail:

From: Garrett Cooper <yanefbsd@gmail.com>
To: Brandon Falk <falkman@gamozo.org>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: misc/147227: SSD preformance issues
Date: Sun, 30 May 2010 16:25:59 -0700

 This has been discussed at least once on the lists and in the forums.
 
 You might want to read through some really quickly google results I
 came up with: http://old.nabble.com/ATA-4K-sector-issues-td27929909i20.html
 , http://forums.freebsd.org/showthread.php?t=3D12594 .
 
 HTH,
 -Garrett
>Unformatted:
