public inbox for linux-ide@vger.kernel.org
 help / color / mirror / Atom feed
From: Damien Le Moal <dlemoal@kernel.org>
To: eyal@eyal.emu.id.au, Niklas Cassel <cassel@kernel.org>
Cc: list linux-ide <linux-ide@vger.kernel.org>
Subject: Re: ata timeout exceptions
Date: Wed, 19 Nov 2025 14:41:12 +0900	[thread overview]
Message-ID: <7cf8b035-c884-4691-a35b-ee8a2e149e03@kernel.org> (raw)
In-Reply-To: <f8eebba8-176b-44b8-877c-75de8b00db38@eyal.emu.id.au>

On 11/19/25 08:05, Eyal Lebedinsky wrote:
> I still suspect the disk itself it at fault (I have a replacement synced and
> ready). >> 12:15:14+11:00 kernel: ata2.00: failed command: WRITE DMA EXT
>>> 12:15:14+11:00 kernel: ata2.00: cmd 35/00:00:00:68:4e/00:20:77:00:00/e0
>>> tag 28 dma 4194304 out res 40/00:00:00:4f:c2/00:00:00:00:00/40 Emask 0x4
>>> (timeout) 12:15:14+11:00 kernel: ata2.00: status: { DRDY } 
>>> 12:15:14+11:00 kernel: ata2: hard resetting link 12:15:15+11:00 kernel:
>>> ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300) 12:15:15+11:00
>>> kernel: ata2.00: configured for UDMA/133 12:15:15+11:00 kernel: ata2: EH
>>> complete
>> 
>> It is a 4194304 byte write that is failing, i.e. 4 MiB write.
> 
> Yes, this is the size of almost all commands. With NCQ enabled the sizes are
> very variable and often less that 1 MiB.

Yes, because there will be more requests queued in the block layer, which
increases the chances of merging sequential requests. That's why the average
command size goes up.

> 
>> This sounds very much like a recent bug report we have received: https://
>> bugzilla.kernel.org/show_bug.cgi?id=220693
>> 
>> In fact, a lot of the failing commands in that bug report is also a read 
>> or write of size 4 MiB.
>> 
>> I guess you could try reverting 459779d04ae8 ("block: Improve read ahead 
>> size for rotational devices") and see if that improves things for you 
>> (while keeping NCQ enabled).I read it. I never had I/O errors reported for
>> this disk so it looks different to me.
> 
> Regardless, I am not set up to build a kernel (I used to), and being my main
> server I hesitate to fiddle with it. I will keep this disk active and
> observe the situation.

No, reverting this commit will not do anything to the max command size that a
disk can see. But you could try this:

echo 1280 > /sys/block/sdX/queue/max_sectors_kb

to reduce the maximum command size that the disk will receive.

On the other hand, if all drives in your RAID6 array are the same and only this
drive is misbehaving, then I would be tempted to say the same you are: that the
disk is turning bad and replacing it is the best solution.



-- 
Damien Le Moal
Western Digital Research

  reply	other threads:[~2025-11-19  5:41 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-03  4:13 ata timeout exceptions Eyal Lebedinsky
2025-11-09 20:40 ` Niklas Cassel
2025-11-09 22:41   ` Eyal Lebedinsky
2025-11-10 13:11     ` Niklas Cassel
2025-11-14  4:32 ` Eyal Lebedinsky
2025-11-18 15:17   ` Niklas Cassel
2025-11-18 23:05     ` Eyal Lebedinsky
2025-11-19  5:41       ` Damien Le Moal [this message]
2025-11-19 13:37         ` Eyal Lebedinsky
2025-11-20  3:34           ` Damien Le Moal
2025-11-20 11:38             ` Eyal Lebedinsky
2025-11-20 12:18               ` Damien Le Moal
2025-11-20 23:53                 ` Eyal Lebedinsky
2025-12-16 23:39 ` Eyal Lebedinsky
2025-12-17  1:35   ` Damien Le Moal
2025-12-17 11:56     ` Eyal Lebedinsky
2025-12-17 12:02       ` Niklas Cassel
2025-12-20  4:03         ` Eyal Lebedinsky
2025-12-21  8:34           ` Damien Le Moal
2025-12-21 12:12             ` Eyal Lebedinsky
2025-12-21 22:43               ` Eyal Lebedinsky
2025-12-21 23:14                 ` Damien Le Moal
2025-12-22  2:10                   ` Eyal Lebedinsky
2025-12-22  3:43                     ` Damien Le Moal
2025-12-22  5:57                       ` Eyal Lebedinsky
2025-12-30 22:43                         ` Eyal Lebedinsky
2026-01-02  1:21                           ` Damien Le Moal
2026-01-02  6:30                             ` Eyal Lebedinsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7cf8b035-c884-4691-a35b-ee8a2e149e03@kernel.org \
    --to=dlemoal@kernel.org \
    --cc=cassel@kernel.org \
    --cc=eyal@eyal.emu.id.au \
    --cc=linux-ide@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox