[OPNFLWPLUG-281] Deleting of flows very slow with large number of flows in data store and controller connected to the network Created: 17/Sep/14 Updated: 27/Sep/21 Resolved: 09/Jun/15 |
|
| Status: | Resolved |
| Project: | OpenFlowPlugin |
| Component/s: | General |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Jan Medved | Assignee: | Martin Bobak |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Attachments: |
|
| External issue ID: | 1941 |
| Description |
|
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%. 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. 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. To reproduce: 2. Connect mininet, e.g.: 3. Use the attached script with the following parameters: 4. While the controller is pausing for 60 second before starting the delete cycle, 5. Observe that the delete goes very slowly. Check the commit stats (I observed |
| Comments |
| Comment by Jan Medved [ 17/Sep/14 ] |
|
Attachment flow_config_perf.py has been added with description: flow config script |
| Comment by Jan Medved [ 18/Sep/14 ] |
|
Note that the commit times are "normal" when the flows are only injected into the data store, i.e. no flows are programmed into the network. |
| Comment by Jan Medved [ 18/Sep/14 ] |
|
The delete rate is progressively slowing down: Thread 4: Thread 2: Thread 3: Thread 1: Thread 0: Overall success rate: 8.53, Overall rate: 8.53 Cycle 1: Thread 0: Thread 4: Thread 3: Thread 1: Overall success rate: 4.35, Overall rate: 4.35 Cycle 2: Thread 1: Thread 3: Thread 2: Thread 0: Thread 4: Overall success rate: 3.67, Overall rate: 3.67 |
| Comment by Jan Medved [ 18/Sep/14 ] |
|
Attachment Archive.zip has been added with description: log files |
| Comment by Jan Medved [ 18/Sep/14 ] |
|
Attachment Call-tree--all-threads-together,-CPU-usage-estimation.zip has been added with description: Profiler output |
| Comment by Abhijit Kumbhare [ 01/Jun/15 ] |
|
Fixed - need to retest. |