Win7: Why does AHCI greatly improve SSD but not regular hard drives?

JEDI

Lifer
Sep 25, 2001
30,160
3,300
126
I know ahci enables ncq.

but I still don't understand how ahci greatly improves ssd performance but not a regular hard drive?
 

Ketchup

Elite Member
Sep 1, 2002
14,545
236
106
I think the main reason for using AHCI is so that the TRIM feature will work correctly. If you did a test on a bare drive, AHCI and IDE modes would probably have similar scores (assuming you are using a good controller).
 

JEDI

Lifer
Sep 25, 2001
30,160
3,300
126
I think the main reason for using AHCI is so that the TRIM feature will work correctly. If you did a test on a bare drive, AHCI and IDE modes would probably have similar scores (assuming you are using a good controller).

ahh it enables hardware on the ssd that a regular hard drive doesn't have?

thx!
 

Elixer

Lifer
May 7, 2002
10,376
762
126
I know ahci enables ncq.

but I still don't understand how ahci greatly improves ssd performance but not a regular hard drive?

NCQ is the big gun for SSDs, without it, SSDs get very slow.

The main reason is, HDs are still gosh darn slow compared to the SSD, so, even with NCQ enabled, HDs still must wait a long, long time compared to SSDs.

Oh, and you can use TRIM on IDE as well, assuming the driver supports it, this isn't a AHCI feature.
AHCI also enables hotplug support.
 

Elixer

Lifer
May 7, 2002
10,376
762
126
Most "consumer" workloads don't push more than QD==1, except when booting.

I dunno, more and more people are doing multiple things at the same time these days, and while they don't have the same I/O workloads as say a business environment, you would still notice a dramatic drop in speeds with NCQ disabled after booting up.
 

VirtualLarry

No Lifer
Aug 25, 2001
56,343
10,046
126
I dunno, more and more people are doing multiple things at the same time these days, and while they don't have the same I/O workloads as say a business environment, you would still notice a dramatic drop in speeds with NCQ disabled after booting up.

*shrug*. I can't even tell the difference from AHCI and IDE mode with an SSD. (Without doing synthetic benchmarks.)
 

Cerb

Elite Member
Aug 26, 2000
17,484
33
86
I know ahci enables ncq.

but I still don't understand how ahci greatly improves ssd performance but not a regular hard drive?
It does, IME. I can't stand it off. But, even if the benchmark is a 100% full Phison or SMI SSD (IE, <1K IOPS), you may as well be adding a turbo to a riding lawnmower, and asking why it can't reach highway speeds. With NCQ, HDDs can do more work quicker than without it, but often at the cost of average request time, if too much seeking is needed (it optimizes what gets written where in part by how far away it is, and your preferred order doesn't matter). If enough random seeking is required (IE, not seeking slightly ahead or behind where it already is), the HDD will hit a wall well before 200 IOPS, typically.

http://www.storagereview.com/wd_black_4tb_desktop_hard_drive_review_wd4003fzex
http://www.storagereview.com/micron_m600_ssd_review
The tests aren't identical, but notice how the latency figures are off by a factor of 1000-5000, and HDDs can get into taking many seconds to complete IOs, as the queue fills, while the SSDs mostly stay at or under a couple milliseconds.

And, TRIM works fine in IDE mode.
 

Puffnstuff

Lifer
Mar 9, 2005
16,030
4,798
136
I find this thread amusing because there's no magic speed up for a spinner. This is why people install ssd's in the first place. I tried a clean install of windows 7 on my fastest spinner recently, a wd veloraptor, and it was horribly slow compared to the slowest ssd I've ever owned.
 

JEDI

Lifer
Sep 25, 2001
30,160
3,300
126
let me rephrase this.

How much faster is a SSD w/ncq than without?
 

Cerb

Elite Member
Aug 26, 2000
17,484
33
86
let me rephrase this.

How much faster is a SSD w/ncq than without?
Varies. NCQ allows up to 32 queued reads or writes. If the SSD is fast enough that the queue can't start filling up, no faster at all. If it can, faster, the amount varying by SSD, controller, and interface speed.

http://www.guru3d.com/articles-pages/samsung-850-pro-ssd-review,16.html

Here, for example, this new SSD can do random reads up to 10x faster, and random writes up to 3x faster, on a new Intel 6Gps port w/ Iastor.
 

JEDI

Lifer
Sep 25, 2001
30,160
3,300
126
Varies. NCQ allows up to 32 queued reads or writes. If the SSD is fast enough that the queue can't start filling up, no faster at all. If it can, faster, the amount varying by SSD, controller, and interface speed.

http://www.guru3d.com/articles-pages/samsung-850-pro-ssd-review,16.html

Here, for example, this new SSD can do random reads up to 10x faster, and random writes up to 3x faster, on a new Intel 6Gps port w/ Iastor.

so ncq/ahci actually helps platters more than ssd's?
 

Cerb

Elite Member
Aug 26, 2000
17,484
33
86
so ncq/ahci actually helps platters more than ssd's?
It helps anything that supports it reasonably well (basically any HDD or SSD that came out later than 2009). If you have a read or write going to an ATA device without it, you must wait until that device completes that action to send the next one. With NCQ, you just need to wait until it acknowledges the action, and then can send more commands (up to a maximum of 32 at any point in time). If there aren't more reads or writes to be sent, before the current one completes, it will not yield any improvement at all, whether on an HDD or SSD.
 

SimMike2

Platinum Member
Aug 15, 2000
2,577
1
81
*shrug*. I can't even tell the difference from AHCI and IDE mode with an SSD. (Without doing synthetic benchmarks.)
To me it is a big difference. AHCI is the only way to go. Too bad with many computers the default is still IDE emulation mode.
 

Watwatwat

Member
Nov 10, 2014
67
0
0
I know ahci enables ncq.

but I still don't understand how ahci greatly improves ssd performance but not a regular hard drive?

But it does, as far as I remember it allows the drive to reorder requests so it can more efficiently read from the platter, it even sounds different supposedly.
Visual makes this easier to understand
300px-NCQ.svg.png
 
Last edited: