mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Remove dead macros
This commit is contained in:
parent
01f05f920f
commit
9199e40fc1
1 changed files with 0 additions and 20 deletions
|
@ -193,25 +193,5 @@
|
|||
#define SRS_PERF_GLIBC_MEMORY_CHECK
|
||||
#undef SRS_PERF_GLIBC_MEMORY_CHECK
|
||||
|
||||
// For RTC, how many iovs we alloc for each mmsghdr for GSO.
|
||||
// Assume that there are 3300 clients, say, 10000 msgs in queue to send, the memory is:
|
||||
// 2 # We have two queue, cache and hotspot.
|
||||
// * 4 # We have reuseport, each have msg cache queue.
|
||||
// * (64 + 16*SRS_PERF_RTC_GSO_MAX + SRS_PERF_RTC_GSO_IOVS * 1500) # Each message size.
|
||||
// * 10000 # Total messages.
|
||||
// = 197MB # For SRS_PERF_RTC_GSO_IOVS = 1
|
||||
// = 311MB # For SRS_PERF_RTC_GSO_IOVS = 2
|
||||
// = 540MB # For SRS_PERF_RTC_GSO_IOVS = 4
|
||||
// = 998MB # For SRS_PERF_RTC_GSO_IOVS = 8
|
||||
#if defined(__linux__)
|
||||
#define SRS_PERF_RTC_GSO_IOVS 4
|
||||
#else
|
||||
#define SRS_PERF_RTC_GSO_IOVS 1
|
||||
#endif
|
||||
|
||||
// For RTC, the max count of RTP packets we process in one loop.
|
||||
// TODO: FIXME: Remove it.
|
||||
#define SRS_PERF_RTC_RTP_PACKETS 1024
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue