Results 1 to 4 of 4

Thread: Performance Tuning Maximum Number Of Threads

  1. #1

    Default Performance Tuning Maximum Number Of Threads

    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.

    http://www.wowza.com/forums/content.php?46

    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
    Last edited by f.hernandez.b; 09-05-2013 at 02:45 AM.

  2. #2
    Join Date
    Dec 2007
    Posts
    21,962

    Default

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

    Richard

  3. #3

    Default

    ok thanks, rrlanham

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

  4. #4
    Join Date
    Sep 2011
    Posts
    1,933

    Default

    Quote Originally Posted by f.hernandez.b View Post
    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.

    http://www.wowza.com/forums/content.php?46

    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

Similar Threads

  1. What number of threads can be considered normal for wowza the 3.6.4
    By AKomarov in forum Wowza Streaming Engine functionality
    Replies: 0
    Last Post: 02-25-2014, 06:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •