LinuxQuestions.org
Visit Jeremy's Blog.
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 01-22-2020, 08:38 AM   #1
Bobby9999
LQ Newbie
 
Registered: Dec 2019
Posts: 2

Rep: Reputation: Disabled
SCSI Multi-Queue (scsi-mq)


Hi all,

I have a question regarding multi-queue (MQ) in SCSI layer. Since Linux kernel 3.13 (2014), the linux block layer has multi-queue a.k.a mq-blk.

Post mq-blk in block layer, the SCSI IO submission path had to be updated. As a result, SCSI multi-queue a.k.a scsi-mq work has been functional since Linux kernel 3.17.

My question is: How actually multi-queuing is achieved in SCSI? Traditionally, the SCSI mid-level layer used to create queuecommand (). Now when there is multi-queuing implemented in SCSI, does multi-queuing actually means creating multi queuecommand ()?

Please help me understand it. Thanks.
 
Old 01-23-2020, 06:23 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,380

Rep: Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190
I saw a paper on this ages ago - spend some time searching the net, there will be plenty of performance papers out there by now.
But from memory, the simple answer is that a queue is established per core (per execution thread probably) so the I/O can be q'd on the same CPU as the application that issued the I/O request.
But go look for definitive answers - even the posts on lkml (the kernel mailing list) that submitted the patches will have a discussion of the internals methinks.
 
  


Reply

Tags
block device, drivers, kernel, scsi


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
best practice Multihead, multi-screen, multi-display or multi-monitor-Debian 8 lgtrean Linux - Software 1 10-14-2015 09:53 AM
LXer: Lock-Free Multi-Producer Multi-Consumer Queue on Ring Buffer LXer Syndicated Linux News 0 06-13-2013 01:01 AM
[SOLVED] what's the difference between a multi-cpu , multi-core and a multi-thread system ? entz Linux - Hardware 11 12-20-2011 04:49 PM
Is it possible for me to write in front of queue in case of message queue? hemanthv414 Linux - Newbie 1 11-17-2008 04:40 PM
Deleted qmail queue /var/qmail/queue tris Linux - Software 0 10-24-2003 11:52 PM

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

All times are GMT -5. The time now is 06:42 PM.

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