[CONTROLLER-272] ODL uses large number of file descriptors Created: 03/Apr/14  Updated: 25/Jul/23  Resolved: 13/Nov/15

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

Type: Improvement
Reporter: Giles Heron Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: All


Attachments: Text File open_files.log    

 Description   

on startup in our lab OpenDaylight peaks at 1370 file descriptors in use before settling down to around 600.

we have four routers with NETCONF/YANG plus BGP-LS from one of them to the controller.

is this expected behaviour?



 Comments   
Comment by Giles Heron [ 03/Apr/14 ]

Attachment open_files.log has been added with description: list of open files

Comment by Tomas Olvecky [ 07/Apr/14 ]

The problem seems to be caused by large number of yang files downloaded from the router. Assigning to Tony who should decide whether it is fixable. (we might open the files one by one and copy them to memory?)

Comment by Giles Heron [ 07/Apr/14 ]

makes sense. Or is there a way to open each file once only? If you're connecting to a number of identical routers then you'll be opening the same set of files multiple times. In an SP-sized network that could even take you past 64K file descriptors

Comment by Tony Tkacik [ 14/Jul/14 ]

Filesystem caching adapter, should cache schemacontext / parsed ANTLR YANGContext
to minimize number of reads from filesystem for same YANG models.

Comment by Robert Varga [ 13/Nov/15 ]

Fixed with InMemorySchemaSourceCache.

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