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:
parent
8383f1b27a
commit
f0015a7cc1
3 changed files with 58 additions and 83 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue