From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755975Ab2DJR2o (ORCPT ); Tue, 10 Apr 2012 13:28:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46625 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754155Ab2DJR2n (ORCPT ); Tue, 10 Apr 2012 13:28:43 -0400 Date: Tue, 10 Apr 2012 13:28:28 -0400 From: Vivek Goyal To: Mike Snitzer Cc: Jens Axboe , linux kernel mailing list , martin.petersen@oracle.com Subject: Re: [RFC PATCH] block: Change default IO scheduler to deadline except SATA Message-ID: <20120410172828.GI21801@redhat.com> References: <20120410133708.GE21801@redhat.com> <4F843C17.5050004@kernel.dk> <20120410142148.GG21801@redhat.com> <20120410151042.GH21801@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 10, 2012 at 12:13:07PM -0400, Mike Snitzer wrote: [..] > > So we are back to the question of can scsi devices find out if a Lun > > is backed by single disk or multiple disks. > > I'm not aware of any discrete attribute (comparable to 'rotational' > flag) that SCSI devices will advertise that indicates "I'm a raid > array". > > That said, we can have a _very_ good hint that a SCSI device is a raid array if: > > 1) optimal_io_size is not zero, minimum_io_size is not equal to > optimal_io_size, and optimal_io_size is a multiple of minimum_io_size > > 2) WCE=0 (higher-end arrays with a writeback cache) > > Determining 1 could be enough, we should probably ignore 2 as it isn't > an absolute indication that a device is composed of multiple devices > (especially not if considered independently of 1). Umm..., somehow relying on optimal_io_size != minimum_io_size sounds odd to me (assuming it works). I checked bunch of Luns exported to me and all of them have optimal_io_size=0. I have few FC Luns exported from two array vendors. I have few iscsi Luns exported from two separate vendors and all these luns have optimal_io_size=0. Thanks Vivek