1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

For #307, refine GSO performance, alloc iovs

This commit is contained in:
winlin 2020-04-17 07:10:16 +08:00
parent 8383f1b27a
commit f0015a7cc1
3 changed files with 58 additions and 83 deletions

View file

@ -201,7 +201,14 @@
// = 715MB # For SRS_PERF_RTC_GSO_IOVS = 1
// = 1402MB # For SRS_PERF_RTC_GSO_IOVS = 2
// = 2775MB # For SRS_PERF_RTC_GSO_IOVS = 4
#define SRS_PERF_RTC_GSO_IOVS 2
#if defined(__linux__)
#define SRS_PERF_RTC_GSO_IOVS 2
#else
#define SRS_PERF_RTC_GSO_IOVS 1
#endif
// For RTC, the max iovs in msghdr, the max packets sent in a msghdr.
#define SRS_PERF_RTC_GSO_MAX 64
#endif