• HEXUS
  • HEXUS.tv
  • channel
  • gaming
  • lifestyle
  • trust
  • community
  • ESReality
  • HEXUS.community discussion forums

    Welcome to the HEXUS.community discussion forums forums.

    You are currently viewing our boards as a guest which gives you limited access to view most discussions and other features. By joining our free community you will have access to post topics, respond to polls and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

    Go Back   HEXUS.community discussion forums > HEXUS.help - buying advice & technical queries > HEXUS.hardware

    HEXUS.hardware Discuss everything hardware. Need to chat tech stuff or want to tell us about the stuff in your rig? Here’s your best bet! Add RSS Feed

    Reply
     
    LinkBack Thread Tools
    Old 19-05-2008, 08:56 AM   #1 (permalink)
    Registered+
     
    Join Date: Mar 2008
    Posts: 18
    Thanks: 0
    Thanked 0 Times in 0 Posts
    Slower concurrent disk access with NCQ ?

    Hi!

    In theory NCQ should speed up things when multiple threads/taks/processes/programs are accessing the hard drive, right ?

    But I see the opposite.

    My mainboard (details below) can run its ICH9R SATA adapter in legacy or AHCI mode.
    I noticed, that in AHCI mode (it allows NCQ, as opposed to legacy mode) I get huge (reproducible) slowdowns.

    I did the following test procedure:

    Preparations
    - create a test directory , like : md C:\src
    - put two large (gigabyte) files in it ([1])
    - create a destination directory, like : md c:\dest

    Test run:
    - reboot (to make same conditions for each test run)
    - open a command prompt (cmd.exe)
    - run the command : copy c:\src c:\dest
    - while the copy is running, open the start menu and start Wordpad
    - after Wordpad starts, close it
    - from the start menu start (and again immediately close) also: Notepad, Calculator, Paint
    (They are all under "All Programs"/"Accessories")
    (note: do this while the copy is running)

    Measure the time it takes to start each program (no need for a clock, counting seconds in your head is more than enough).

    What happens on my system is this :
    - in legacy mode, each program starts in a seconds (Wordpad, being larger, takes 3-5 seconds)
    - in AHCI mode, it sometimes it takes 2 seconds, sometimes it takes a minute ! Often, it takes 10 seconds just for the Start submenus to open.


    I tried several operating systems: Windows 2003 Enterprise, Vista Enterprise, Windows XP Professional SP2, Windows 2008 x64
    In all cases: legacy mode works smooth, AHCI mode have the "minute to start wordpad" problem.

    Driver used:
    - for legacy mode : Windows builtin Standard IDE driver
    - for AHCI mode :
    -- Windows XP and 2003 : Intel Matrix Storage Manager v7.8
    -- Windows 2008 and Vista : msahci.sys (Windows builtin AHCI driver)
    -- Vista : also tried Intel Matrix Storage Manager v7.8

    There was only one exception to the "AHCI is much slower" result: Windows XP Pro SP2, updated to SP3, then cloned to another partition and finally changed from legacy mode to AHCI (by: force install the intel driver, reboot, change setting in BIOS, boot Windows)
    In this case, I did not see the problem.

    I contacted MS newsgroups, Asus support, Intel support. But no useful response. (Intel said : We have not replicated such issue nor have other customers reported it.) Talks with Asus are ongoing.

    Did anyone experience this ?
    Solution ? Just run in legacy mode ?


    Regards,
    David

    [1] - I used the two freely downloadable iso images from this page : Windows Server 2008 Trial Software

    My system details:
    mainboard : Asus P3K-E WiFi AP , BIOS version 1013, Intel P35 & ICH9R chipset
    CPU: Intel Q6600 (not overclocked)
    RAM: 4x2GB DDR2-800 (Transcend JM800QLU-2G)
    gfx: Gigabyte GV-NX88T512HP/typeA
    HD: Western Digital WD7500AAKS - connected to one of the ICH9R SATA ports
    optical: Samsung SH-S203P - connected to one of the ICH9R SATA ports
    (problem same even if I disconnect the optical unit)
    xerces8 is offline   Reply With Quote
    Old 19-05-2008, 09:07 AM   #2 (permalink)
    Senior Member
     
    kalniel's Avatar
     
    Join Date: Aug 2005
    Posts: 12,702
    Thanks: 173
    Thanked 501 Times in 437 Posts
    kalniel's system
    Re: Slower concurrent disk access with NCQ ?

    I don't think your test is really providing sufficient queue depth for NCQ to be useful. Where you don't have deep queueing then running without NCQ is usually quicker, depending on the drive and firmware used.
    kalniel is offline   Reply With Quote
    Old 19-05-2008, 11:28 AM   #3 (permalink)
    Gentoo Ricer
     
    Join Date: Jan 2005
    Location: /var/portage
    Posts: 5,722
    Thanks: 66
    Thanked 266 Times in 247 Posts
    aidanjt's system
    Re: Slower concurrent disk access with NCQ ?

    NCQ is only useful for stacking SATA commands in an order which is optimal for i/o across several sections of the disk surface in as little rotations as possible, so, great for 10 different processes doing i/o in different files... pointless for copying 2gb file from a to b. Your benchmark wouldn't make use of it.

    Originally Posted by Agent View Post
    ...every time Creative bring out a new card range their advertising makes it sound like they have discovered a way to insert a thousand Chuck Norris super dwarfs in your ears...
    Server Box -> Asus P5B-E Plus | C2D E6320 | 2x2GB GieL PC2-6400 | 6x500GB (md-raid5) | nVidia 7300LE | Ubuntu Server 9.10 (for now)
    Test Box -> P4E 3.2Ghz Rev. E0 | Asus P4C800-E Deluxe | 2x1GB PC3200 | 2x160Gb | nVidia TNT 2 | Gentoo (X86)

    Currently breaking: eINIT
    aidanjt is offline   Reply With Quote
    Old 19-05-2008, 11:39 AM   #4 (permalink)
    Nothing runs like a Deere
     
    cotswoldcs's Avatar
     
    Join Date: Mar 2004
    Location: Bang in the heart of the cotswolds
    Posts: 723
    Thanks: 38
    Thanked 17 Times in 17 Posts
    cotswoldcs's system
    Re: Slower concurrent disk access with NCQ ?

    Stupid question but how do you enable/disable NCQ?
    cotswoldcs is offline   Reply With Quote
    Old 19-05-2008, 11:49 AM   #5 (permalink)
    Gentoo Ricer
     
    Join Date: Jan 2005
    Location: /var/portage
    Posts: 5,722
    Thanks: 66
    Thanked 266 Times in 247 Posts
    aidanjt's system
    Re: Slower concurrent disk access with NCQ ?

    In the BIOS, or driver config, or disk jumper, or where none of the former are available, you can't.

    Originally Posted by Agent View Post
    ...every time Creative bring out a new card range their advertising makes it sound like they have discovered a way to insert a thousand Chuck Norris super dwarfs in your ears...
    Server Box -> Asus P5B-E Plus | C2D E6320 | 2x2GB GieL PC2-6400 | 6x500GB (md-raid5) | nVidia 7300LE | Ubuntu Server 9.10 (for now)
    Test Box -> P4E 3.2Ghz Rev. E0 | Asus P4C800-E Deluxe | 2x1GB PC3200 | 2x160Gb | nVidia TNT 2 | Gentoo (X86)

    Currently breaking: eINIT
    aidanjt is offline   Reply With Quote
    Old 19-05-2008, 12:27 PM   #6 (permalink)
    Registered+
     
    Join Date: Mar 2008
    Posts: 18
    Thanks: 0
    Thanked 0 Times in 0 Posts
    Re: Slower concurrent disk access with NCQ ?

    Well I don't really care about NCQ, but more about "Why is it 50 times slower in AHCI mode" ?
    And "Does it behave like that for others too or is there some defect in my equipment" ?
    xerces8 is offline   Reply With Quote
    Old 19-05-2008, 12:44 PM   #7 (permalink)
    Senior Member
     
    kalniel's Avatar
     
    Join Date: Aug 2005
    Posts: 12,702
    Thanks: 173
    Thanked 501 Times in 437 Posts
    kalniel's system
    Re: Slower concurrent disk access with NCQ ?

    AHCI is noted as being a pain in the bum for some systems. Out of my last three system builds it introduced some kind of system problem in two of the three (one cold boot problem, one warm boot).

    So yes, it behaves badly in other systems, and unless you need RAID I'd strongly advise running in IDE mode.
    kalniel is offline   Reply With Quote
    Old 19-05-2008, 07:20 PM   #8 (permalink)
    YUKIKAZE
     
    arthurleung's Avatar
     
    Join Date: Feb 2005
    Location: London, Imperial College
    Posts: 2,995
    Thanks: 5
    Thanked 65 Times in 60 Posts
    arthurleung's system
    Re: Slower concurrent disk access with NCQ ?

    Originally Posted by xerces8 View Post
    Well I don't really care about NCQ, but more about "Why is it 50 times slower in AHCI mode" ?
    And "Does it behave like that for others too or is there some defect in my equipment" ?
    The reason why it is much slower with NCQ is that it is prioritizing your copying, when it is busy copying it wouldn't response to your other request to open notepad. On the other hand, with NCQ off the harddrive treat your request to copy file and open notepad as equal, so notepad will open faster (since it is smaller).

    Without NCQ it may take 3 minutes to open notepad AND finish copying the file.
    With NCQ it may take 2 minutes 50 seconds to open notepad AND finish copying the file.
    In this example the overall speed was 6% faster, but the notepad could be 50 times slower.

    Workstation 1: Intel Core 2 Quad Q9550 3.6Ghz / 4GB DDR2-800 / HD4870 512MB / Antec P180
    Workstation 2: Intel Xeon X3350 3.2Ghz / 4GB DDR2-800 / HD4770 512MB / Shuttle SP35P2
    HTPC: AMD Athlon X4 620 / 4GB DDR2-1000
    Mobile Workstation: Intel Core2Duo T8300 2.4Ghz / 3GB DDR2-667 / (Dell Inspiron 1525)
    Display (Monitor): DELL Ultrasharp 2709W + DELL Ultrasharp 2001FP
    Display (Projector): Epson TW-3500 (Latest Model)
    Headphones: Etymotic hf2 / Ultimate Ears Triple.fi 10 Pro
    arthurleung is offline   Reply With Quote
    Old 20-05-2008, 04:40 PM   #9 (permalink)
    Registered+
     
    Join Date: Mar 2008
    Posts: 18
    Thanks: 0
    Thanked 0 Times in 0 Posts
    Re: Slower concurrent disk access with NCQ ?

    That does not explain why another PC does not have the mentioned slowdowns when also running in AHCI mode.

    For example a laptop with a "82801GBM/GHM (ICH7 Family) SATA AHCI Controller".
    xerces8 is offline   Reply With Quote
    Old 20-05-2008, 05:12 PM   #10 (permalink)
    Gentoo Ricer
     
    Join Date: Jan 2005
    Location: /var/portage
    Posts: 5,722
    Thanks: 66
    Thanked 266 Times in 247 Posts
    aidanjt's system
    Re: Slower concurrent disk access with NCQ ?

    Bad AHCI implementation perhaps?

    Originally Posted by Agent View Post
    ...every time Creative bring out a new card range their advertising makes it sound like they have discovered a way to insert a thousand Chuck Norris super dwarfs in your ears...
    Server Box -> Asus P5B-E Plus | C2D E6320 | 2x2GB GieL PC2-6400 | 6x500GB (md-raid5) | nVidia 7300LE | Ubuntu Server 9.10 (for now)
    Test Box -> P4E 3.2Ghz Rev. E0 | Asus P4C800-E Deluxe | 2x1GB PC3200 | 2x160Gb | nVidia TNT 2 | Gentoo (X86)

    Currently breaking: eINIT
    aidanjt is offline   Reply With Quote
    Old 21-05-2008, 08:34 AM   #11 (permalink)
    Registered+
     
    Join Date: Mar 2008
    Posts: 18
    Thanks: 0
    Thanked 0 Times in 0 Posts
    Re: Slower concurrent disk access with NCQ ?

    Originally Posted by aidanjt View Post
    Bad AHCI implementation perhaps?
    Can be, but it is Intel ICH9R , their flagship iplementation, so to speak.
    (and the software is also their latest, if you meant software)

    That leaves the BIOS and motherboard hardware of Asus ...
    xerces8 is offline   Reply With Quote
    Old 21-05-2008, 09:02 AM   #12 (permalink)
    Senior Member
     
    kalniel's Avatar
     
    Join Date: Aug 2005
    Posts: 12,702
    Thanks: 173
    Thanked 501 Times in 437 Posts
    kalniel's system
    Re: Slower concurrent disk access with NCQ ?

    Well of the two intel chipsets I built recently, the 945 based system with an ASRock m/board had no problems while the 965 based system with a gigabyte m/board did.

    You might want to check for presence of other SATA controllers - JMicron ones might well be getting in the way somehow.
    kalniel is offline   Reply With Quote
    Old 21-05-2008, 10:12 AM   #13 (permalink)
    Registered+
     
    Join Date: Mar 2008
    Posts: 18
    Thanks: 0
    Thanked 0 Times in 0 Posts
    Re: Slower concurrent disk access with NCQ ?

    Originally Posted by kalniel View Post
    Well of the two intel chipsets I built recently, the 945 based system with an ASRock m/board had no problems while the 965 based system with a gigabyte m/board did.

    You might want to check for presence of other SATA controllers - JMicron ones might well be getting in the way somehow.
    1.) Problems as per my test above ?

    2.) Yes, my board has a JMicron JB363 adapter. I will try if disabling it makes any difference.


    PS: The JB363 can not talk to my WD MyBook Studio 500GB ... I guess a known problem, because many are reporting it.
    xerces8 is offline   Reply With Quote
    Old 21-05-2008, 12:46 PM   #14 (permalink)
    Senior Member
     
    Join Date: Mar 2005
    Posts: 2,573
    Thanks: 42
    Thanked 61 Times in 46 Posts
    badass's system
    Re: Slower concurrent disk access with NCQ ?

    Originally Posted by arthurleung View Post
    The reason why it is much slower with NCQ is that it is prioritizing your copying, when it is busy copying it wouldn't response to your other request to open notepad. On the other hand, with NCQ off the harddrive treat your request to copy file and open notepad as equal, so notepad will open faster (since it is smaller).

    Without NCQ it may take 3 minutes to open notepad AND finish copying the file.
    With NCQ it may take 2 minutes 50 seconds to open notepad AND finish copying the file.
    In this example the overall speed was 6% faster, but the notepad could be 50 times slower.
    When posting theories like that, please state them as theories or opinion, not as accepted fact. Otherwise you may confuse whoever asked the question in the first place and they may end up believing this as fact.

    @xerces8
    I am using AHCI on my Asus P5k-E Wifi/AP which has an ICH9R
    I will see if I can reproduce your problem.

    "In a perfect world... spammers would get caught, go to jail, and share a cell with many men who have enlarged their penises, taken Viagra and are looking for a new relationship."
    badass is offline   Reply With Quote
    Old 21-05-2008, 01:10 PM   #15 (permalink)
    Senior Member
     
    Join Date: Jul 2007
    Posts: 522
    Thanks: 76
    Thanked 67 Times in 47 Posts
    Re: Slower concurrent disk access with NCQ ?

    Badass, arthurleung was close to what I understand to be the way that NCQ works, and I think we all understand that no matter how good Hexites might seem, this is internets.

    NCQ queues commands in order of least disk head movement. It has no idea about the priority of these commands aside from where they want to access on the disk. As such, it will place the contiguous file copy requests before the smaller, located elsewhere, read requests for launching programs.

    NCQ is a multi-user (process) server-grade technology, that comes into it's own when a large number of drive read/write requests are made in a highly scattered pattern, all over the platters. Unless you are using raid (which can benefit some, I believe), or running dozens of programs all wanting access to different areas of the drive, then you will not see any real benefit, and could well find that for practical usage, it orders commands in a manner which, although improving total response time, slows down the more time-critical requests, worsening performance.
    Rosaline is offline   Reply With Quote
    Old 21-05-2008, 09:23 PM   #16 (permalink)
    Senior Member
     
    Join Date: Mar 2005
    Posts: 2,573
    Thanks: 42
    Thanked 61 Times in 46 Posts
    badass's system
    Re: Slower concurrent disk access with NCQ ?

    Originally Posted by Rosaline View Post
    Badass, arthurleung was close to what I understand to be the way that NCQ works, and I think we all understand that no matter how good Hexites might seem, this is internets.

    NCQ queues commands in order of least disk head movement. It has no idea about the priority of these commands aside from where they want to access on the disk. As such, it will place the contiguous file copy requests before the smaller, located elsewhere, read requests for launching programs.

    NCQ is a multi-user (process) server-grade technology, that comes into it's own when a large number of drive read/write requests are made in a highly scattered pattern, all over the platters. Unless you are using raid (which can benefit some, I believe), or running dozens of programs all wanting access to different areas of the drive, then you will not see any real benefit, and could well find that for practical usage, it orders commands in a manner which, although improving total response time, slows down the more time-critical requests, worsening performance.
    The theory although relevant has been incorrectly applied. The cause of the OP's problem is most certainly not NCQ. NCQ can and does slow down accessing of data when there is only 1 program requesting data, however we are talking about small percentage differences here. I have seen direct comparisons.
    When more than 1 program is accessing the disk, NCQ compared to non NCQ will always speed up both programs.* Once again, I have seen the graphs - they were linked from this forum but I cant find them.

    I have been unable to reproduce the notepad problem on my PC running in AHCI mode.
    In fact, copying 2 very large files simultaneously on my machine made the HDD's thrash like buggery and the rate dropped from a sustained 75MB/sec to appx 45-60 MB/sec. Worst case scenario was 10MB/sec for the slowest transfer when transferring 3 files simultaneously. Word opened almost instantly in all cases.
    My test is not that scientific though since Vista was keeping the files in RAM after copying massively speedikng things up so I had to use several different large files to get around this.


    *i.e.
    Opening of wordpad when copying large file without NCQ may take 3 seconds, file copy takes 2 minutes. With NCQ, the file copy will take less than 2 minutes and wordpad will take less than 3 seconds to load.

    "In a perfect world... spammers would get caught, go to jail, and share a cell with many men who have enlarged their penises, taken Viagra and are looking for a new relationship."
    badass is offline   Reply With Quote
    Reply

    Breadcrumb
    Go Back   HEXUS.community discussion forums > HEXUS.help - buying advice & technical queries > HEXUS.hardware


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Trackbacks are On
    Pingbacks are On
    Refbacks are On


    Similar Threads
    Thread Thread Starter Forum Replies Last Post
    How to Speed up your Hard Disk :-) (Zak's Partition Theory) Zak33 HEXUS.hardware 123 13-09-2008 05:37 PM
    best disk cloning software? DsW Operating systems & applications 30 02-07-2008 08:01 PM
    n5200 - no access thedriver Thecus.care@HEXUS 6 09-11-2007 05:07 AM
    help in accessing readable data on damaged hard disk kulasa Help - technical & advisory 1 18-09-2006 11:53 PM
    Belkin F5D6130 802.11b Wireless Access Point Howard Reader reviews 4 10-12-2004 10:20 PM



    All times are GMT. The time now is 03:33 AM.

    Any representations/statements made on the HEXUS.community discussion forums are the representations/statements of the author i.e. the person/organisation making them. If any such representations/statements are disputed they are a matter between the parties concerned.
    HEXUS Limited accepts no responsibility for any misrepresentations, inaccurate or false statements made by any person/organisation other than HEXUS Limited employees.
    For more information please read HEXUS Limited's terms, conditions and privacy policy.

    Hosted Exchange

    Powered by vBulletin® Version 3.8.4
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
    Content Relevant URLs by vBSEO 3.3.2
    © Copyright 2009 HEXUS® Limited. All rights reserved. Unauthorised reproduction strictly prohibited.