RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1214568 - [RFE][virtio-win] Add WMI facility to check the virito-scsi mq enabled
Summary: [RFE][virtio-win] Add WMI facility to check the virito-scsi mq enabled
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: virtio-win
Version: 7.2
Hardware: x86_64
OS: Windows
medium
medium
Target Milestone: rc
: ---
Assignee: Vadim Rozenfeld
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 1288337
TreeView+ depends on / blocked
 
Reported: 2015-04-23 06:07 UTC by Xiaomei Gao
Modified: 2016-11-04 08:45 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
NO_DOCS
Clone Of:
Environment:
Last Closed: 2016-11-04 08:45:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
vbs script for reading vioscsi WMI data (1.48 KB, text/plain)
2015-05-23 11:59 UTC, Vadim Rozenfeld
no flags Details
results (115.27 KB, image/png)
2015-06-03 08:08 UTC, Min Deng
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:2609 0 normal SHIPPED_LIVE virtio-win bug fix and enhancement update 2016-11-03 15:27:12 UTC

Description Xiaomei Gao 2015-04-23 06:07:59 UTC
Description of problem:

Currently, vioscsi driver can be able to crate a number of queues to submit concurrent requests simultaneously, but we can't check if multiqueue is really enabled in guest, so open the bug to track the issue.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Vadim Rozenfeld 2015-05-23 11:59:38 UTC
Created attachment 1029023 [details]
vbs script for reading vioscsi WMI data

Run with elevated (Administrator) privileges, then open vioscsi.log file to see
vioscsi WMI data.

Comment 2 Vadim Rozenfeld 2015-05-24 06:18:21 UTC
please check with vioscsi driver from the latest build, available at
http://download.devel.redhat.com/brewroot/packages/virtio-win-prewhql/0.1/104/win/virtio-win-prewhql-0.1.zip

Thanks,
Vadim.

Comment 4 lijin 2015-05-28 02:39:47 UTC
mdeng,pls verify this bug with build104

Comment 5 Min Deng 2015-06-02 06:54:00 UTC
(In reply to Vadim Rozenfeld from comment #1)
> Created attachment 1029023 [details]
> vbs script for reading vioscsi WMI data
> 
> Run with elevated (Administrator) privileges, then open vioscsi.log file to
> see
> vioscsi WMI data.

Hi Vadim,
   I can not find the log named vioscsi.log within C:\ (windows2012 OS).Could you give me a piece of advice where I can find it.Besides,I also find other files titled with "vioscsi" but I still could not find the "WMI",many thanks !
Best Regards,
Min

Comment 7 Vadim Rozenfeld 2015-06-02 07:35:06 UTC
(In reply to dengmin from comment #5)
> (In reply to Vadim Rozenfeld from comment #1)
> > Created attachment 1029023 [details]
> > vbs script for reading vioscsi WMI data
> > 
> > Run with elevated (Administrator) privileges, then open vioscsi.log file to
> > see
> > vioscsi WMI data.
> 
> Hi Vadim,
>    I can not find the log named vioscsi.log within C:\ (windows2012
> OS).Could you give me a piece of advice where I can find it.Besides,I also
> find other files titled with "vioscsi" but I still could not find the
> "WMI",many thanks !
> Best Regards,
> Min

Hi Min,
The log file should be created in the same directory where vioscsi.vbs file located. Bust make to sure that you are executing the VB script file with elevated (Admin) privileges, otherwise the file will not be created.

Comment 8 Min Deng 2015-06-03 08:07:45 UTC
(In reply to Vadim Rozenfeld from comment #7)
> (In reply to dengmin from comment #5)
> > (In reply to Vadim Rozenfeld from comment #1)
> > > Created attachment 1029023 [details]
> > > vbs script for reading vioscsi WMI data
> > > 
> > > Run with elevated (Administrator) privileges, then open vioscsi.log file to
> > > see
> > > vioscsi WMI data.
> > 
> > Hi Vadim,
> >    I can not find the log named vioscsi.log within C:\ (windows2012
> > OS).Could you give me a piece of advice where I can find it.Besides,I also
> > find other files titled with "vioscsi" but I still could not find the
> > "WMI",many thanks !
> > Best Regards,
> > Min
> 
> Hi Min,
> The log file should be created in the same directory where vioscsi.vbs file
> located. Bust make to sure that you are executing the VB script file with
> elevated (Admin) privileges, otherwise the file will not be created.

Hi Vadim,
   How to execute VB scripts ? I just install the driver from device manager manually.Does it work ? And also upload the search results from my computer,many thanks.Can you give some advices ?

Best Regards,
Min

Comment 9 Min Deng 2015-06-03 08:08:48 UTC
Created attachment 1034153 [details]
results

Comment 10 Min Deng 2015-06-03 08:12:16 UTC
(In reply to dengmin from comment #8)
> (In reply to Vadim Rozenfeld from comment #7)
> > (In reply to dengmin from comment #5)
> > > (In reply to Vadim Rozenfeld from comment #1)
> > > > Created attachment 1029023 [details]
> > > > vbs script for reading vioscsi WMI data
> > > > 
> > > > Run with elevated (Administrator) privileges, then open vioscsi.log file to
> > > > see
> > > > vioscsi WMI data.
> > > 
> > > Hi Vadim,
> > >    I can not find the log named vioscsi.log within C:\ (windows2012
> > > OS).Could you give me a piece of advice where I can find it.Besides,I also
> > > find other files titled with "vioscsi" but I still could not find the
> > > "WMI",many thanks !
> > > Best Regards,
> > > Min
> > 
> > Hi Min,
> > The log file should be created in the same directory where vioscsi.vbs file
> > located. Bust make to sure that you are executing the VB script file with
> > elevated (Admin) privileges, otherwise the file will not be created.
> 
> Hi Vadim,
>    How to execute VB scripts ? I just install the driver from device manager
> manually.Does it work ? And also upload the search results from my
> computer,many thanks.Can you give some advices ?
> 
> Best Regards,
> Min

  Found the script from the bug.Please ignore the comment.Thanks!

Comment 11 Min Deng 2015-06-03 08:24:40 UTC
Run the VB scripts within guest with build 104 on win2012 guest,as a result,get vioscsi.log from the same dir.The log is following as below,

VioScsiExtendedInfoGuid

    InstanceName=PCI\VEN_1AF4&DEV_1004&SUBSYS_00081AF4&REV_00\3&13c0b0c5&0&18_0

        instance.QueueDepth=32

        instance.QueuesCount=1

        instance.Indirect=True

        instance.EventIndex=True

        instance.DpcRedirection=False

        instance.ConcurentChannels=False

        instance.InterruptMsgRanges=False

        instance.CompletionDuringStartIo=False
 Hi Vadim,
    Is it the expected results ? Many thanks ! 
 Best Regards,
 Min

Comment 12 Mike Cao 2015-06-03 08:41:19 UTC
(In reply to dengmin from comment #11)
> Run the VB scripts within guest with build 104 on win2012 guest,as a
> result,get vioscsi.log from the same dir.The log is following as below,
> 
> VioScsiExtendedInfoGuid
> 
>    
> InstanceName=PCI\VEN_1AF4&DEV_1004&SUBSYS_00081AF4&REV_00\3&13c0b0c5&0&18_0
> 
>         instance.QueueDepth=32
> 
>         instance.QueuesCount=1
> 
>         instance.Indirect=True
> 
>         instance.EventIndex=True
> 
>         instance.DpcRedirection=False
> 
>         instance.ConcurentChannels=False
> 
>         instance.InterruptMsgRanges=False
> 
>         instance.CompletionDuringStartIo=False
>  Hi Vadim,
>     Is it the expected results ? Many thanks ! 
>  Best Regards,
>  Min

pls enable multi-queue in cli to check whether related info will be shown as well.

Comment 13 Vadim Rozenfeld 2015-06-03 09:20:07 UTC
(In reply to Mike Cao from comment #12)
> (In reply to dengmin from comment #11)
> > Run the VB scripts within guest with build 104 on win2012 guest,as a
> > result,get vioscsi.log from the same dir.The log is following as below,
> > 
> > VioScsiExtendedInfoGuid
> > 
> >    
> > InstanceName=PCI\VEN_1AF4&DEV_1004&SUBSYS_00081AF4&REV_00\3&13c0b0c5&0&18_0
> > 
> >         instance.QueueDepth=32
> > 
> >         instance.QueuesCount=1
> > 
> >         instance.Indirect=True
> > 
> >         instance.EventIndex=True
> > 
> >         instance.DpcRedirection=False
> > 
> >         instance.ConcurentChannels=False
> > 
> >         instance.InterruptMsgRanges=False
> > 
> >         instance.CompletionDuringStartIo=False
> >  Hi Vadim,
> >     Is it the expected results ? Many thanks ! 
> >  Best Regards,
> >  Min
> 
> pls enable multi-queue in cli to check whether related info will be shown as
> well.

Right, to activate MQ, we need to specify ",num_queues=" equal or greater than number of CPUs.

Comment 14 Min Deng 2015-06-08 02:55:52 UTC
(In reply to Vadim Rozenfeld from comment #13)
> (In reply to Mike Cao from comment #12)
> > (In reply to dengmin from comment #11)
> > > Run the VB scripts within guest with build 104 on win2012 guest,as a
> > > result,get vioscsi.log from the same dir.The log is following as below,
> > > 
> > > VioScsiExtendedInfoGuid
> > > 
> > >    
> > > InstanceName=PCI\VEN_1AF4&DEV_1004&SUBSYS_00081AF4&REV_00\3&13c0b0c5&0&18_0
> > > 
> > >         instance.QueueDepth=32
> > > 
> > >         instance.QueuesCount=1
> > > 
> > >         instance.Indirect=True
> > > 
> > >         instance.EventIndex=True
> > > 
> > >         instance.DpcRedirection=False
> > > 
> > >         instance.ConcurentChannels=False
> > > 
> > >         instance.InterruptMsgRanges=False
> > > 
> > >         instance.CompletionDuringStartIo=False
> > >  Hi Vadim,
> > >     Is it the expected results ? Many thanks ! 
> > >  Best Regards,
> > >  Min
> > 
> > pls enable multi-queue in cli to check whether related info will be shown as
> > well.
> 
> Right, to activate MQ, we need to specify ",num_queues=" equal or greater
> than number of CPUs.

 Summarized all comments and did the following tests
 1.set num_queues = 4,which is equal to smp (comments 6)
   Get the following test results,
   VioScsiExtendedInfoGuid

    InstanceName=PCI\VEN_1AF4&DEV_1004&SUBSYS_00081AF4&REV_00\3&13c0b0c5&0&18_0

        instance.QueueDepth=32

        instance.QueuesCount=4

        instance.Indirect=True

        instance.EventIndex=True

        instance.DpcRedirection=True

        instance.ConcurentChannels=True

        instance.InterruptMsgRanges=False

        instance.CompletionDuringStartIo=True 
 2.set num_queues = 6,which is greater than smp
   Get the following results,
   VioScsiExtendedInfoGuid

    InstanceName=PCI\VEN_1AF4&DEV_1004&SUBSYS_00081AF4&REV_00\3&13c0b0c5&0&18_0

        instance.QueueDepth=32

        instance.QueuesCount=4

        instance.Indirect=True

        instance.EventIndex=True

        instance.DpcRedirection=True

        instance.ConcurentChannels=True

        instance.InterruptMsgRanges=False

        instance.CompletionDuringStartIo=True

  At last,it seems the results are same when set num_queues is equal or greater than smp from cli.Any mistakes please feel free to tell me.

Comment 15 Vadim Rozenfeld 2015-06-08 03:20:49 UTC
(In reply to dengmin from comment #14)
> (In reply to Vadim Rozenfeld from comment #13)
> > (In reply to Mike Cao from comment #12)
> > > (In reply to dengmin from comment #11)
> > > > Run the VB scripts within guest with build 104 on win2012 guest,as a
> > > > result,get vioscsi.log from the same dir.The log is following as below,
> > > > 
> > > > VioScsiExtendedInfoGuid
> > > > 
> > > >    
> > > > InstanceName=PCI\VEN_1AF4&DEV_1004&SUBSYS_00081AF4&REV_00\3&13c0b0c5&0&18_0
> > > > 
> > > >         instance.QueueDepth=32
> > > > 
> > > >         instance.QueuesCount=1
> > > > 
> > > >         instance.Indirect=True
> > > > 
> > > >         instance.EventIndex=True
> > > > 
> > > >         instance.DpcRedirection=False
> > > > 
> > > >         instance.ConcurentChannels=False
> > > > 
> > > >         instance.InterruptMsgRanges=False
> > > > 
> > > >         instance.CompletionDuringStartIo=False
> > > >  Hi Vadim,
> > > >     Is it the expected results ? Many thanks ! 
> > > >  Best Regards,
> > > >  Min
> > > 
> > > pls enable multi-queue in cli to check whether related info will be shown as
> > > well.
> > 
> > Right, to activate MQ, we need to specify ",num_queues=" equal or greater
> > than number of CPUs.
> 
>  Summarized all comments and did the following tests
>  1.set num_queues = 4,which is equal to smp (comments 6)
>    Get the following test results,
>    VioScsiExtendedInfoGuid
> 
>    
> InstanceName=PCI\VEN_1AF4&DEV_1004&SUBSYS_00081AF4&REV_00\3&13c0b0c5&0&18_0
> 
>         instance.QueueDepth=32
> 
>         instance.QueuesCount=4
> 
>         instance.Indirect=True
> 
>         instance.EventIndex=True
> 
>         instance.DpcRedirection=True
> 
>         instance.ConcurentChannels=True
> 
>         instance.InterruptMsgRanges=False
> 
>         instance.CompletionDuringStartIo=True 
>  2.set num_queues = 6,which is greater than smp
>    Get the following results,
>    VioScsiExtendedInfoGuid
> 
>    
> InstanceName=PCI\VEN_1AF4&DEV_1004&SUBSYS_00081AF4&REV_00\3&13c0b0c5&0&18_0
> 
>         instance.QueueDepth=32
> 
>         instance.QueuesCount=4
> 
>         instance.Indirect=True
> 
>         instance.EventIndex=True
> 
>         instance.DpcRedirection=True
> 
>         instance.ConcurentChannels=True
> 
>         instance.InterruptMsgRanges=False
> 
>         instance.CompletionDuringStartIo=True
> 
>   At last,it seems the results are same when set num_queues is equal or
> greater than smp from cli.Any mistakes please feel free to tell me.

Right, it how it works. If the number of queues, specified in qemu command line is less than number of CPUs, the MQ feature will not be activated and instance.QueuesCount will be reported as 1. Otherwise, vioscsi driver will trim 
the number of queues to the number of of CPUs.

Vadim.

Comment 16 lijin 2015-07-17 07:45:57 UTC
change status to verified according to comment#14 and comment#15

Comment 21 Vadim Rozenfeld 2015-09-30 05:55:04 UTC
This bug is tightly coupled with https://bugzilla.redhat.com/show_bug.cgi?id=1210166 
Moving it to 7.3 as well.

Comment 25 Yu Wang 2016-07-07 03:46:38 UTC
Hi,

Retest this with virtio-win-prewhql-121, 

Steps as comment#1 and instance.QueuesCount=4 is expected
this bug has been fixed

Thanks
Yu Wang

Comment 26 Yu Wang 2016-07-07 03:48:08 UTC
according comment25, change status to verified

Comment 28 errata-xmlrpc 2016-11-04 08:45:07 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-2609.html


Note You need to log in before you can comment on or make changes to this bug.