diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-08-22 20:59:46 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-08-23 09:23:46 -0400 |
| commit | 6ed04aa2ebcb350046cbffa2e7452e8588aa7690 (patch) | |
| tree | 7d81a09ab778aeff5aec54e5c89d15028bf621c5 /lib/lib_errors.c | |
| parent | a6f235f3416c3ecb635420033572d790b7db0ede (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
