From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [PATCH V2 2/2] scsi: avoid to hold host-wide counter of host_busy for scsi_mq To: Ming Lei , "linux-scsi@vger.kernel.org" Cc: Jens Axboe , "linux-block@vger.kernel.org" , Omar Sandoval , "Martin K. Petersen" , James Bottomley , Christoph Hellwig , Don Brace , Kashyap Desai , Mike Snitzer , Hannes Reinecke , Laurence Oberman References: <20180624140327.28146-1-ming.lei@redhat.com> <20180624140327.28146-3-ming.lei@redhat.com> From: Bart Van Assche Message-ID: <27a6f54a-49b5-460f-08fb-c7b9d2dc52ef@wdc.com> Date: Mon, 25 Jun 2018 08:38:08 -0700 MIME-Version: 1.0 In-Reply-To: <20180624140327.28146-3-ming.lei@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Sender: linux-scsi-owner@vger.kernel.org List-ID: On 06/24/18 07:04, Ming Lei wrote: > It isn't necessary to check the host depth in scsi_queue_rq() any more > since it has been respected by blk-mq before calling scsi_queue_rq() via > getting driver tag. > > Lots of LUNs may attach to same host, and per-host IOPS may reach millions > level, so we should avoid to this expensive atomic operations on the > hostwide counter in IO path. > > This patch implemens scsi_host_busy() via blk_mq_tagset_busy_iter() for > reading the count of busy IOs for scsi_mq. > > It is observed that IOPS is increased by 15% in IO test on scsi_debug > (32 LUNs, 32 submit queues, 1024 can_queue, libaio/dio) in one > dual-socket system. Reviewed-by: Bart Van Assche