<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:32:03 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>OpenDaylight JIRA</title>
    <link>https://jira.opendaylight.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.20.10</version>
        <build-number>820010</build-number>
        <build-date>22-06-2022</build-date>
    </build-info>


<item>
            <title>[OPNFLWPLUG-281] Deleting of flows very slow with large number of flows in data store and controller connected to the network</title>
                <link>https://jira.opendaylight.org/browse/OPNFLWPLUG-281</link>
                <project id="10155" key="OPNFLWPLUG">OpenFlowPlugin</project>
                    <description>&lt;p&gt;When a large number of flows is inserted into the data store, individual flow delete operations become very slow (rate: 3-5 flows/sec). Flow commit statistics indicate average commit time of 200 ms, the longest commit time is about 17.5 seconds. No commits other than flow deletes are going to the data store. The CPU utilization is 10-13%. &lt;/p&gt;

&lt;p&gt;This problem only occurs when the controller is connected to the mininet network. The size of the mininet network does not seem to matter, it occurs the same with 3 and 7 node network.&lt;/p&gt;

&lt;p&gt;The reason this issue is raised against md-sal is that it seems to be a system issue (livelock?) that manifests itself in drastically prolonged IMDS commit times.&lt;/p&gt;

&lt;p&gt;To reproduce:&lt;br/&gt;
1. Start the controller (karaf edition).Attach jconsole a&lt;/p&gt;

&lt;p&gt;2. Connect mininet, e.g.:&lt;br/&gt;
   &amp;gt; sudo mn --controller=remote,ip=192.168.162.1:6653 --topo tree,3 --switch ovsk,protocols=OpenFlow13&lt;/p&gt;

&lt;p&gt;3. Use the attached script with the following parameters:&lt;br/&gt;
   &amp;gt;python flow_config_perf.py --nflows 1000 --nthreads=5 --ncycles 10 --delay=60&lt;br/&gt;
   This will insert 50k flows into the controller, wait for 60 seconds and then &lt;br/&gt;
   start deleting the inserting flows. &lt;/p&gt;

&lt;p&gt;4. While the controller is pausing for 60 second before starting the delete cycle, &lt;br/&gt;
   clear the commit stats in jconsole and check with mininet that all flows have&lt;br/&gt;
   been inserted into the network.&lt;/p&gt;

&lt;p&gt;5. Observe that the delete goes very slowly. Check the commit stats (I observed &lt;br/&gt;
  average commit rate of ~200 ms, which corresponds to 5 transactions per second.&lt;br/&gt;
  I could see that flows were being deleted at a rate of about 5 flows per second)&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="27549">OPNFLWPLUG-281</key>
            <summary>Deleting of flows very slow with large number of flows in data store and controller connected to the network</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                                <status id="5" iconUrl="https://jira.opendaylight.org/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="mbobak@cisco.com">Martin Bobak</assignee>
                                    <reporter username="jmedved@cisco.com">Jan Medved</reporter>
                        <labels>
                    </labels>
                <created>Wed, 17 Sep 2014 23:58:42 +0000</created>
                <updated>Mon, 27 Sep 2021 09:01:20 +0000</updated>
                            <resolved>Tue, 9 Jun 2015 11:02:38 +0000</resolved>
                                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="56165" author="jmedved@cisco.com" created="Wed, 17 Sep 2014 23:58:42 +0000"  >&lt;p&gt;Attachment flow_config_perf.py has been added with description: flow config script&lt;/p&gt;</comment>
                            <comment id="56162" author="jmedved@cisco.com" created="Thu, 18 Sep 2014 00:00:11 +0000"  >&lt;p&gt;Note that the commit times are &quot;normal&quot; when the flows are only injected into the data store, i.e. no flows are programmed into the network.&lt;/p&gt;</comment>
                            <comment id="56163" author="jmedved@cisco.com" created="Thu, 18 Sep 2014 00:22:52 +0000"  >&lt;p&gt;The delete rate is progressively slowing down:&lt;br/&gt;
Cycle 0:&lt;br/&gt;
Thread 2: Deleting 1000 flows on 7 nodes&lt;br/&gt;
Thread 4: Deleting 1000 flows on 7 nodes&lt;br/&gt;
Thread 1: Deleting 1000 flows on 7 nodes&lt;br/&gt;
Thread 0: Deleting 1000 flows on 7 nodes&lt;br/&gt;
Thread 3: Deleting 1000 flows on 7 nodes&lt;/p&gt;



&lt;p&gt;    Thread 4: &lt;br/&gt;
        Delete time: 580.74,&lt;br/&gt;
        Delete success rate:  1.72, Delete total rate: 1.72&lt;br/&gt;
        Delete Results:  &lt;/p&gt;
{200: 1000}
&lt;p&gt;    Thread 2: &lt;br/&gt;
        Delete time: 583.39,&lt;br/&gt;
        Delete success rate:  1.71, Delete total rate: 1.71&lt;br/&gt;
        Delete Results:  &lt;/p&gt;
{200: 1000}
&lt;p&gt;    Thread 3: &lt;br/&gt;
        Delete time: 588.14,&lt;br/&gt;
        Delete success rate:  1.70, Delete total rate: 1.70&lt;br/&gt;
        Delete Results:  &lt;/p&gt;
{200: 1000}
&lt;p&gt;    Thread 1: &lt;br/&gt;
        Delete time: 589.78,&lt;br/&gt;
        Delete success rate:  1.70, Delete total rate: 1.70&lt;br/&gt;
        Delete Results:  &lt;/p&gt;
{200: 1000}
&lt;p&gt;    Thread 0: &lt;br/&gt;
        Delete time: 589.40,&lt;br/&gt;
        Delete success rate:  1.70, Delete total rate: 1.70&lt;br/&gt;
        Delete Results:  &lt;/p&gt;
{200: 1000}
&lt;p&gt;    Overall success rate:  8.53, Overall rate: 8.53&lt;/p&gt;

&lt;p&gt;Cycle 1:&lt;br/&gt;
Thread 0: Deleting 1000 flows on 7 nodes&lt;br/&gt;
Thread 3: Deleting 1000 flows on 7 nodes&lt;br/&gt;
Thread 1: Deleting 1000 flows on 7 nodes&lt;br/&gt;
Thread 2: Deleting 1000 flows on 7 nodes&lt;br/&gt;
Thread 4: Deleting 1000 flows on 7 nodes&lt;br/&gt;
    Thread 2: &lt;br/&gt;
        Delete time: 1145.62,&lt;br/&gt;
        Delete success rate:  0.87, Delete total rate: 0.87&lt;br/&gt;
        Delete Results:  &lt;/p&gt;
{200: 1000}
&lt;p&gt;    Thread 0: &lt;br/&gt;
        Delete time: 1147.30,&lt;br/&gt;
        Delete success rate:  0.87, Delete total rate: 0.87&lt;br/&gt;
        Delete Results:  &lt;/p&gt;
{200: 1000}
&lt;p&gt;    Thread 4: &lt;br/&gt;
        Delete time: 1148.48,&lt;br/&gt;
        Delete success rate:  0.87, Delete total rate: 0.87&lt;br/&gt;
        Delete Results:  &lt;/p&gt;
{200: 1000}
&lt;p&gt;    Thread 3: &lt;br/&gt;
        Delete time: 1149.67,&lt;br/&gt;
        Delete success rate:  0.87, Delete total rate: 0.87&lt;br/&gt;
        Delete Results:  &lt;/p&gt;
{200: 1000}
&lt;p&gt;    Thread 1: &lt;br/&gt;
        Delete time: 1149.85,&lt;br/&gt;
        Delete success rate:  0.87, Delete total rate: 0.87&lt;br/&gt;
        Delete Results:  &lt;/p&gt;
{200: 1000}
&lt;p&gt;    Overall success rate:  4.35, Overall rate: 4.35&lt;/p&gt;

&lt;p&gt;Cycle 2:&lt;br/&gt;
Thread 3: Deleting 1000 flows on 7 nodes&lt;br/&gt;
Thread 1: Deleting 1000 flows on 7 nodes&lt;br/&gt;
Thread 2: Deleting 1000 flows on 7 nodes&lt;br/&gt;
Thread 0: Deleting 1000 flows on 7 nodes&lt;br/&gt;
Thread 4: Deleting 1000 flows on 7 nodes&lt;/p&gt;

&lt;p&gt;    Thread 1: &lt;br/&gt;
        Delete time: 1363.80,&lt;br/&gt;
        Delete success rate:  0.73, Delete total rate: 0.73&lt;br/&gt;
        Delete Results:  &lt;/p&gt;
{200: 1000}
&lt;p&gt;    Thread 3: &lt;br/&gt;
        Delete time: 1363.81,&lt;br/&gt;
        Delete success rate:  0.73, Delete total rate: 0.73&lt;br/&gt;
        Delete Results:  &lt;/p&gt;
{200: 1000}
&lt;p&gt;    Thread 2: &lt;br/&gt;
        Delete time: 1363.92,&lt;br/&gt;
        Delete success rate:  0.73, Delete total rate: 0.73&lt;br/&gt;
        Delete Results:  &lt;/p&gt;
{200: 1000}
&lt;p&gt;    Thread 0: &lt;br/&gt;
        Delete time: 1364.04,&lt;br/&gt;
        Delete success rate:  0.73, Delete total rate: 0.73&lt;br/&gt;
        Delete Results:  &lt;/p&gt;
{200: 1000}
&lt;p&gt;    Thread 4: &lt;br/&gt;
        Delete time: 1364.04,&lt;br/&gt;
        Delete success rate:  0.73, Delete total rate: 0.73&lt;br/&gt;
        Delete Results:  &lt;/p&gt;
{200: 1000}
&lt;p&gt;    Overall success rate:  3.67, Overall rate: 3.67&lt;/p&gt;</comment>
                            <comment id="56166" author="jmedved@cisco.com" created="Thu, 18 Sep 2014 00:36:30 +0000"  >&lt;p&gt;Attachment Archive.zip has been added with description: log files&lt;/p&gt;</comment>
                            <comment id="56167" author="jmedved@cisco.com" created="Thu, 18 Sep 2014 00:38:18 +0000"  >&lt;p&gt;Attachment Call-tree--all-threads-together,-CPU-usage-estimation.zip has been added with description: Profiler output&lt;/p&gt;</comment>
                            <comment id="56164" author="abhijit2511" created="Mon, 1 Jun 2015 16:53:48 +0000"  >&lt;p&gt;Fixed - need to retest.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="13918" name="Archive.zip" size="187597" author="jmedved@cisco.com" created="Thu, 18 Sep 2014 00:36:30 +0000"/>
                            <attachment id="13919" name="Call-tree--all-threads-together,-CPU-usage-estimation.zip" size="9220" author="jmedved@cisco.com" created="Thu, 18 Sep 2014 00:38:18 +0000"/>
                            <attachment id="13917" name="flow_config_perf.py" size="11572" author="jmedved@cisco.com" created="Wed, 17 Sep 2014 23:58:42 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                            <customfield id="customfield_11400" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1941</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10201" key="com.atlassian.jira.plugin.system.customfieldtypes:url">
                        <customfieldname>External issue URL</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[https://bugs.opendaylight.org/show_bug.cgi?id=1941]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10204" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>ODL SR Target Milestone</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10315"><![CDATA[Lithium]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i0306n:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>