LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-10-2020, 09:54 AM   #1
NeroAngelo
LQ Newbie
 
Registered: Apr 2020
Posts: 3

Rep: Reputation: Disabled
Unhappy Does disabling NCQ cause any bad effects on the computer?


A few months ago, I started seeing these errors on my computer

Code:
[39441.061917] ata3.01: exception Emask 0x100 SAct 0xe SErr 0x0 action 0x6 frozen
What I did was replace the old SATA cables with new ones and the errors stopped popping up.

However today the exact same error messages were shown when my computer crashed while I was doing something important. I was able to see these errors when I switched to tty1.

Now I'm pretty sure, that it isn't my cable's fault as it is only 2-3 weeks old. What I did was to disable NCQ by typing
Code:
GRUB_CMDLINE_LINUX="libata.force=noncq
in my
Code:
/etc/default/grub
file and BOY it worked like a charm. However, I'm a little bit concerned that it might have a bad effect on my computer because Wikipedia states NCQ like this:

This(NCQ) can reduce the amount of unnecessary drive head movement, resulting in increased performance (and slightly decreased wear of the drive) for workloads where multiple simultaneous read/write requests are outstanding, most often occurring in server-type applications.

Will disabling NCQ have a bad effect on my computer overall?

Last edited by NeroAngelo; 04-10-2020 at 09:57 AM.
 
Old 04-10-2020, 11:11 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,316

Rep: Reputation: 1331Reputation: 1331Reputation: 1331Reputation: 1331Reputation: 1331Reputation: 1331Reputation: 1331Reputation: 1331Reputation: 1331Reputation: 1331
You probably did the right thing. The drive scheduler already reorders I/Os to minimize head motion. The net effect is slightly worse performance since you can't overlap commands. The problem is that drive manufacturers aren't testing on Linux (or at least not fixing bugs only found on Linux). Some drives work well with NCQ, but I've seen some with problems.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SATA NCQ benchamark application jasonhwang1 Linux - Software 2 07-16-2007 12:26 PM
SATA NCQ support in linux. Bogdan Linux - Hardware 4 04-13-2006 03:17 AM
About SATA II NCQ HD satimis Linux - Hardware 0 04-09-2006 09:46 AM
Is native SATA same as ncq SATA satimis Linux - Hardware 8 10-01-2004 08:25 PM
Question on NCQ and motherboard satimis Linux - Hardware 0 09-14-2004 12:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration