From owner-freebsd-scsi@FreeBSD.ORG Mon Jan 21 16:43:49 2013 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id CCE06D5D; Mon, 21 Jan 2013 16:43:49 +0000 (UTC) (envelope-from jim.harris@gmail.com) Received: from mail-wg0-x22a.google.com (mail-wg0-x22a.google.com [IPv6:2a00:1450:400c:c00::22a]) by mx1.freebsd.org (Postfix) with ESMTP id 0B979E58; Mon, 21 Jan 2013 16:43:48 +0000 (UTC) Received: by mail-wg0-f42.google.com with SMTP id 12so1194829wgh.1 for ; Mon, 21 Jan 2013 08:43:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=hDGxrA3IiUWB8nLPPsD9JQU+6nVqR2PUyt3jys4ag9I=; b=PsTIafk3oVc3JbEsXXKJ4/dQAVtnP6PDPSE7L3ZvkAJAHLDNyejOPFeU672uzoOVL+ vTObpTlLanrnj1LLC/lssM/uzGg39A8W/G/und0dD+tZygWCYQYVGzil9MqDfwHIUGwS sekLR7CP2Hwr+qNdkkFzxJEMajXO++KlUP0ztRMXfnOe+46iXAPgP5iakX9l8oSasOGm 0Om7Y4R+PD1gQ2qj+3Be8JVJSRBYk+Al3PwoSHwfHDt4ubacnx00lFKAZqsHpmSlQpS/ TkkMzNrQZiC0ovYtUTsobvAqlleMPNihh5SqEEuq4ZZAMWdIBIGZo4X4YyYm3VmGS/Nc 9ThA== MIME-Version: 1.0 X-Received: by 10.180.80.170 with SMTP id s10mr16402966wix.27.1358786628156; Mon, 21 Jan 2013 08:43:48 -0800 (PST) Sender: jim.harris@gmail.com Received: by 10.217.57.4 with HTTP; Mon, 21 Jan 2013 08:43:48 -0800 (PST) In-Reply-To: References: Date: Mon, 21 Jan 2013 09:43:48 -0700 X-Google-Sender-Auth: fAZNJp0lNk_n0cfU5XrqA2GECmU Message-ID: Subject: Re: Max Queue depth of HBA limited to 256 ? From: Jim Harris To: "Desai, Kashyap" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-scsi@freebsd.org" , "Kenneth D. Merry" , "McConnell, Stephen" , "jhb@freebsd.org" X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jan 2013 16:43:49 -0000 On Mon, Jan 21, 2013 at 7:45 AM, Desai, Kashyap wrote: > Hi, > > I was trying to check few things on LSI controller, where we have more > than 256 queue depth support. > I added default maxtags in scsi/scsi_xpt.c as below. (Because I don't want > mattags to restrict any outstanding commands the LSI HBA. > > { > /* Default tagged queuing parameters for all devices */ > { > T_ANY, SIP_MEDIA_REMOVABLE|SIP_MEDIA_FIXED, > /*vendor*/"*", /*product*/"*", /*revision*/"*" > }, > /*quirks*/0, /*mintags*/2, /*maxtags*/1024 <--- Default > maxtags were 256. I increase it to 10234 > }, > > > LSI's SAS-HBA and MR-HBA can support more than 256 outstanding commands in > Firmware. But due to some reason, I am not able to pump more than 256 > outstanding commands to the HBA. > > I used "rawio -p 256 /dev/da1" and more /dev/dax in loop. I have sysctl > parameter in Driver to display outstanding "FW commands". Max value for FW > outstanding only goes up to 256. > > Also from some other mail thread Subject "mfi driver performance", I found > that folks talk about tuning queue depth _but_ nobody discussed to increase > it beyond 256. Is there any limitation in FreeBSD ? > > What is your driver passing to cam_simq_alloc()? This is where you specify the controller's queue depth. -Jim