Performance Tuning Maximum Number Of Threads

Hi Guys,

My server has 4 CPU with 8 Cores (16 threads each core) each (Intel® Xeon® CPU E5-2470 0 @ 2.30GHz). In the performance tuning article it states that the formula for calculating the number of threads in VHost.xm is

2 (processor) x 4 (cores) x 2 (threads per core) = 16

But it also states in the example the maximum value of 24.

https://www.wowza.com/docs/how-to-do-performance-tuning

HostPort/ProcessorCount: 2x[total-core-count] (maximum of 24) Note: The HostPort/ProcessorCount field in the Admin HostPort (/Port "8086") should not be modified.
IdleWorkers/WorkerCount: 2x[total-core-count] (maximum of 24)
NetConnections/ProcessorCount: 2x[total-core-count]  (maximum of 24)
RTP/UnicastIncoming/ProcessorCount: [total-core-count]  (maximum of 12)
RTP/UnicastOutgoing/ProcessorCount: 2x[total-core-count]  (maximum of 24)
RTP/MulticastIncoming/ProcessorCount: [total-core-count]  (maximum of 12)
RTP/MulticastOutgoing/ProcessorCount: [total-core-count]  (maximum of 12)
HandlerThreadPool/PoolSize: (60x[total-core-count]) (maximum of 480)
TransportThreadPool/PoolSize: (40x[total-core-count]) (maximum of 320)

Is this some sort of a CAP in the settings, meaning I should NOT set them beyond the maximum? If I will disregards the maximum settings then my optimal should be

HostPort/ProcessorCount: 1024
IdleWorkers/WorkerCount: 1024
NetConnections/ProcessorCount: 1024
RTP/UnicastIncoming/ProcessorCount: 512
RTP/UnicastOutgoing/ProcessorCount: 1024
RTP/MulticastIncoming/ProcessorCount: 512
RTP/MulticastOutgoing/ProcessorCount: 512
HandlerThreadPool/PoolSize: 30720
TransportThreadPool/PoolSize: 20480

What will happen if I set them to this values, will I be able to transcode more streams or more profile per streams?

Regards

Yes, that’s right. Don’t exceed the maximum.

Richard

Hi Guys,

My server has 4 CPU with 8 Cores (16 threads each core) each (Intel(R) Xeon(R) CPU E5-2470 0 @ 2.30GHz). In the performance tuning article it states that the formula for calculating the number of threads in VHost.xm is

2 (processor) x 4 (cores) x 2 (threads per core) = 16

But it also states in the example the maximum value of 24.

https://www.wowza.com/docs/how-to-do-performance-tuning

HostPort/ProcessorCount: 2x[total-core-count] (maximum of 24) Note: The HostPort/ProcessorCount field in the Admin HostPort (/Port "8086") should not be modified.
IdleWorkers/WorkerCount: 2x[total-core-count] (maximum of 24)
NetConnections/ProcessorCount: 2x[total-core-count]  (maximum of 24)
RTP/UnicastIncoming/ProcessorCount: [total-core-count]  (maximum of 12)
RTP/UnicastOutgoing/ProcessorCount: 2x[total-core-count]  (maximum of 24)
RTP/MulticastIncoming/ProcessorCount: [total-core-count]  (maximum of 12)
RTP/MulticastOutgoing/ProcessorCount: [total-core-count]  (maximum of 12)
HandlerThreadPool/PoolSize: (60x[total-core-count]) (maximum of 480)
TransportThreadPool/PoolSize: (40x[total-core-count]) (maximum of 320)

Is this some sort of a CAP in the settings, meaning I should NOT set them beyond the maximum? If I will disregards the maximum settings then my optimal should be

HostPort/ProcessorCount: 1024
IdleWorkers/WorkerCount: 1024
NetConnections/ProcessorCount: 1024
RTP/UnicastIncoming/ProcessorCount: 512
RTP/UnicastOutgoing/ProcessorCount: 1024
RTP/MulticastIncoming/ProcessorCount: 512
RTP/MulticastOutgoing/ProcessorCount: 512
HandlerThreadPool/PoolSize: 30720
TransportThreadPool/PoolSize: 20480

What will happen if I set them to this values, will I be able to transcode more streams or more profile per streams?

Regards

Hi,

Just to be clear, the calculation you have above is incorrect.

You have:

4 (processor) x 8 (cores) x 2 (threads per core) = 64

The maximum as stated is still relevant and if you have not exceeded these numbers then the server will be tuned correctly but for others following this thread I’ve added the correct calculation to avoid confusion.

Wowza also prints the processor count in the log file when Wowza starts which can be used to calculate the [total-core-count].

For example

Hardware Available Processors: 8

Regards,

Jason

ok thanks, rrlanham

Then i guess this server is overkill for Wowza since It’s not being used to it’s full potential?