Hi, Since all media access commands take a 5 bit groupnumber for this specific purpose we should make sure that the stats are collected into 32 different buckets depending of the group number in the CDB regards ronnie sahlberg On Wed, Jul 18, 2012 at 8:04 AM, FUJITA Tomonori <fujita.tomonori@xxxxxxxxxxxxx> wrote: > On Wed, 18 Jul 2012 00:55:43 +0300 > nezhinsky@xxxxxxxxx wrote: > >> From: Alexander Nezhinsky <alexandern@xxxxxxxxxxxx> >> >> Add statistics on SCSI cmd execution. Reads and writes are counted separately. >> Total transfer in bytes and total number of commands are accummulated. >> Number of commands submitted for execution to backing-store are counted >> separately from the number of commands completed. This may provide some clues >> on the i/o queues length, as well as some debugging information. >> >> Stat info is retrieved using a new --op stat applicable to various modes. >> When relevant, iscsi conn statistics (currently existing counters) is shown. >> iser connections accumulate statistics just as plain iscsi ones, >> counting rdma transfers as data-in and data-out depending on the direction. >> >> Alexander Nezhinsky (3): >> Add infrastructure for statistics on SCSI device level >> Show new statistics in various modes; integrate scsi and iscsi stats >> where relevant >> collect isci conn stats for iser connections >> >> usr/driver.h | 1 + >> usr/iscsi/conn.c | 26 ++++++++ >> usr/iscsi/iscsid.c | 33 +++------ >> usr/iscsi/iscsid.h | 4 ++ >> usr/iscsi/iser.c | 16 +++-- >> usr/iscsi/target.c | 165 ++++++++++++++++++++++++++++++++++++--------- >> usr/mgmt.c | 64 ++++++++++++++++++ >> usr/scsi.c | 18 ++++- >> usr/target.c | 188 +++++++++++++++++++++++++++++++++++++++++++--------- >> usr/target.h | 2 +- >> usr/tgtadm.c | 7 +- >> usr/tgtadm.h | 2 +- >> usr/tgtd.h | 36 +++++++++- >> 13 files changed, 464 insertions(+), 98 deletions(-) > > I got many checkpatch errors on them. Please fix them. > -- > To unsubscribe from this list: send the line "unsubscribe stgt" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe stgt" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html