Question
0: segment_manager_alloc_session_
0: tcp46_listen_inline:2788: session accept fail
DBGvpp# show session
Thread 0: 2031 active sessions
What is tunning parameter or codes to increase number of tcp session?
Answer
When apps attach to the session layer they request a given size for the shared memory segment out of which fifos are allocated and also the sizes of the rx/tx fifos for each connection. If the segment is filled, more shared memory segments are allocated. However, if you’re running the builtin test client/servers, segments are allocated out of vpp’s private heap. You can circumvent this through config parameters:
- private-segment-size <size up to 4G>
- preallocate-fifos <your desired number>
DBGvpp# show segment-manager segments
1 segment managers allocated
1 svm fifo segments allocated
Name HeapSize (M) ActiveFifos FreeFifos Address
private heap 127 0 32 7ffedbbff000