[CONTROLLER-9] Better threading model for SwitchHandler implementation Created: 17/Apr/13  Updated: 19/Oct/17  Resolved: 04/May/15

Status: Resolved
Project: controller
Component/s: adsal
Affects Version/s: 0.4.0
Fix Version/s: None

Type: Improvement
Reporter: Muthukumaran Kothandaraman Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Windows
Platform: PC


Issue Links:
Duplicate
duplicates INFRAUTILS-1 Add support for a better cooperative ... Resolved

 Description   

Current ISwitch implementation viz. SwitchHandler encapsulates the
ExecutorService for being used by outgoing packets (syncsend uses this). Mapping
each switch to corresponding ISwitch and starting ExecutorService with
fixed-threadpool-size of 4 for each switch.

This could result in following impacts

1. Upfront allocation of threads - could potentially lead to extensive
context-switching if north to south message-traffic (proactive flow pushes)
become quiet extensive
2. No central thread-pool from which switches could steal from based on demand.

It would be better if a common threadpool with which tasks could be multiplexed for all switches could be used for better resource management



 Comments   
Comment by Carol Sanders [ 04/May/15 ]

This bug is part of the project to Move all ADSAL associated component bugs to ADSAL

Generated at Wed Feb 07 19:51:57 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.