tl_open should handle id_space exhaustion
This is uptreaming of OS-5957 from SmartOS:
Reported as illumos-joynet#137
The reporter has supplied 3 crash dumps that I've put into thoth.
I think this should be tackled on two fronts. First and foremost
tl_openshould switch to using
id_alloc_nosleepin order to fail gracefully when the id space is exhausted. This will prevent threads from becoming uninterruptibly blocked, should the limit of tl streams be reached.
Further in the future, we should evaluate possibilities for splitting the
tlminor space across more granular units. Perhaps per-zone or per-netstack scoping for
tlminor numbers might be acceptable? Further research is required to understand the possible effects of emitting minor numbers which are used by multiple socket instances.
Updated by Electric Monk 6 months ago
- Status changed from In Progress to Closed
commit 1c8449e95a93a750df972545379490366b392934 Author: Patrick Mooney <firstname.lastname@example.org> Date: 2020-09-01T17:28:57.000Z 13084 tl_open should handle id_space exhaustion Reviewed by: Robert Mustacchi <email@example.com> Reviewed by: Ryan Zezeski <firstname.lastname@example.org> Reviewed by: Jerry Jelinek <email@example.com> Reviewed by: Toomas Soome <firstname.lastname@example.org> Reviewed by: Andrew Stormont <email@example.com> Approved by: Robert Mustacchi <firstname.lastname@example.org>