-
Type: Story
-
Status: To Do (View Workflow)
-
Priority: High
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: openonu-adapter
-
Labels:None
-
Story Points:1
A memory profiling of the open onu adapter go version is done during the scale test runs and identified the below are the areas contributing significantly to reserve heap memory.
The getMibFromTemplate function creates json unmarshalling of the template fetched and uses json.Unquote() which loads the template completely into memory , this is cause of memory consumption.
The buffered channels created to handle reboot, MIB upload, MIB download , software download are preallocated a size of 2048 and it is allocating a huge amount of memory.
Every ONT being managed is having a copy of ME even though the template is same . This is predominantly having huge allocations on heap.
# | Subject | Branch | Project | Status | CR | V |
---|---|---|---|---|---|---|
35413,3 | VOL-5367: Optimize the memory and cpu utilization of openonu adapter | master | voltha-openonu-adapter-go | Status: NEW | 0 | -1 |