Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754148AbXLFJli (ORCPT ); Thu, 6 Dec 2007 04:41:38 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751894AbXLFJl2 (ORCPT ); Thu, 6 Dec 2007 04:41:28 -0500 Received: from mtagate6.uk.ibm.com ([195.212.29.139]:61470 "EHLO mtagate6.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751625AbXLFJlZ (ORCPT ); Thu, 6 Dec 2007 04:41:25 -0500 From: Swen Schillig To: James Bottomley Subject: Re: [PATCH] zfcp: add some internal zfcp adapter statistics Date: Thu, 6 Dec 2007 10:40:34 +0100 User-Agent: KMail/1.9.5 Cc: Christof Schmitt , linux-scsi@vger.kernel.org, linux-s390@vger.kernel.org, linux-kernel References: <200710311133.52090.swen@vnet.ibm.com> <1195989419.3427.11.camel@localhost.localdomain> <200711261123.05253.swen@vnet.ibm.com> In-Reply-To: <200711261123.05253.swen@vnet.ibm.com> Organization: IBM MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200712061040.35297.swen@vnet.ibm.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2800 Lines: 69 On Monday 26 November 2007 11:23, Swen Schillig wrote: > On Sunday 25 November 2007 12:16, James Bottomley wrote: > > > > On Wed, 2007-10-31 at 11:33 +0100, Swen Schillig wrote: > > > From: Swen Schillig > > > > > > add some statistics provided by the zFCP adapter to the sysfs > > > > > > The new zFCP adapter statistics provide a variety of information > > > about the virtual adapter (subchannel). In order to collect this information > > > the zFCP driver is extended on one side to query the adapter and > > > on the other side summarize certain values which can then be fetched on demand. > > > This information is made available via files(attributes) in the sysfs filesystem. > > > > > > The information provided by the new zFCP adapter statistics can be fetched > > > by reading from the following files in the sysfs filesystem > > > > > > /sys/class/scsi_host/host/seconds_active > > > /sys/class/scsi_host/host/requests > > > /sys/class/scsi_host/host/megabytes > > > /sys/class/scsi_host/host/utilization > > > > This lot all look like they belong in the FC transport class statistics > > (some even already exist there). > > They might look alike but they are not the same. The values provided through the FC transport > class always refer to the physical port whereas the new values here refer to a virtual adapter or subchannel. > The attributes provided here are all new and not covered or displayed anywhere else ! > > > > > > These are the statistics on a virtual adapter (subchannel) level. > > > In addition latency information is provided on a SCSI device level (LUN) which > > > can be found at the following location > > > > > > /sys/class/scsi_device//device/cmd_latency > > > /sys/class/scsi_device//device/read_latency > > > /sys/class/scsi_device//device/write_latency > > > > These look to duplicate to some degree the figures > > in /sys/block//stat. Isn't the block device the best place to > > gather these, if they're useful? Since user latencies should probably > > include elevator times. > > Actually no, the latencies covered here are channel- and fabric-latencies grouped by scsi-devices > and not device-, scsi- or block-latencies. In contrast to the stats provided by the block-layer structure, > tape devices will be covered here as well . > > > > > James > > > > > > > > Cheers Swen > James were my answers, comments sufficient enough to apply my patch or is there still something missing required ? Thanks Cheers Swen -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/