summaryrefslogtreecommitdiff
path: root/lib/lib_errors.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-08-22 20:59:46 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-08-23 09:23:46 -0400
commit6ed04aa2ebcb350046cbffa2e7452e8588aa7690 (patch)
tree7d81a09ab778aeff5aec54e5c89d15028bf621c5 /lib/lib_errors.c
parenta6f235f3416c3ecb635420033572d790b7db0ede (diff)
lib: Limit depth of unused thread list
The master->unused list was unbounded during normal operation. A full BGP feed on my machine left 11k threads on the unused list, taking up over 2mb of data. This seemed a bit excessive, reduce to a limit of 10. Also fix a crash that this exposed where we assumed that a thread structure was not deleted. Future committers can make this configurable? or modify the value to something better for their system. I am dubious of the value of this. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/lib_errors.c')
0 files changed, 0 insertions, 0 deletions