From: joystick <joystick@shiftmail.org>
To: "linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>
Subject: Question on TCQ/NCQ and write cache
Date: Sun, 27 Oct 2013 02:33:10 +0200 [thread overview]
Message-ID: <526C5F46.2080100@shiftmail.org> (raw)
Hello list,
did I understand correctly that the writes are acknowledged by the
HDDs/SSDs when the data is on the write cache, and not on the platters,
and this is independent from the current setting of NCQ (enabled /
disabled)?
So the NCQ being enabled only allows to save the latency of the trip of
the write commands on the wire up to the DRAM cache on the HDD plus the
reception of an ack in the opposite direction (analogous to one round
trip ping time in networking), by issuing multiple of them before
receiving the first ack (analogous to the window of TCP)?
So NCQ has nothing to do on write performance of the disk per-se?
I'm asking because browsing around I found this:
http://en.wikipedia.org/wiki/Native_Command_Queuing
see the image
http://upload.wikimedia.org/wikipedia/commons/thumb/4/4a/NCQ.svg/300px-NCQ.svg.png
This apparently tells that the write order is strictly sequential in
non-NCQ mode while it can be nonsequential with NCQ, but I'm starting to
think this is wrong otherwise what would be the role of the drive's
write cache?
(I am restricting the question to writes only for now)
Thank you
J.
reply other threads:[~2013-10-27 0:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=526C5F46.2080100@shiftmail.org \
--to=joystick@shiftmail.org \
--cc=linux-scsi@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;
as well as URLs for NNTP newsgroup(s).