From de80f521de79f44b428c16d9c602578987e4c8e6 Mon Sep 17 00:00:00 2001 From: Raja Subramanian Date: Wed, 29 Mar 2023 22:32:39 +0530 Subject: [PATCH] Increase sequence number cache to handle higb rate tracks. (#1560) Hopefully temporary while we can find a better solution. Adds 36 KB per SSRC. So, if a node can handle 10K SSRCs (roughly 10K tracks), that will be 360 MB of extra memory. --- pkg/sfu/buffer/rtpstats.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/sfu/buffer/rtpstats.go b/pkg/sfu/buffer/rtpstats.go index 49e4bda6b..ebd68f242 100644 --- a/pkg/sfu/buffer/rtpstats.go +++ b/pkg/sfu/buffer/rtpstats.go @@ -19,7 +19,7 @@ const ( GapHistogramNumBins = 101 NumSequenceNumbers = 65536 FirstSnapshotId = 1 - SnInfoSize = 2048 + SnInfoSize = 8192 SnInfoMask = SnInfoSize - 1 TooLargeOWDDelta = 400 * time.Millisecond )