Tuning performance 設定 RRS feed

  • 問題

  • 各位大大想請問一下,設定MaxHashTabSize 及NumTcbTablePartitions及MaxFreeTcbs有什麼好處,針對網站的部份。

    2010年6月25日 上午 01:39


  • 沒有實務經驗 , 只能提供下面查到的資訊給你參考

    MaxHashTableSize - &

    This value determines the size of the hash table holding the state of TCP connections. The default value is 128 multiplied by the square of the number of processors in the system. When a large concurrent connection load is expected on the system, set the following registry entry to a high value to improve the performance of the hash table:

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip \Parameters\MaxHashTableSize (REG_DWORD)

    The maximum value is 0x10000 (65,536). It is recommended that you consider using the maximum value for large servers that you expect to carry high connection load. Keep in mind that the table uses nonpaged pool, so do not set too high a value for the parameter if the server does not have much available nonpaged pool or if you do not anticipate a high-connection load.


    Value Name: NumTcbTablePartitions
    Type: reg_dword
    Setting: 16
    Registry Key: HKLM\System\CurrentControlSet\Services\Tcpip\Parameters

    For Windows Server 2003 SP1, we recommend that you set the NumTcbTablePartitions value to 4 (the actual number of CPU cores in the system). Each core counts as one CPU. Therefore, a system that has two dual-core processors would have a total of four CPUs. The default value for NumTcbTablePartitions is <var>x</var> × <var>x</var>, where <var>x</var> represents the number of processors on the system. If you leave the NumTcbTablePartitions value set to the default for computers that have more than 16 processors, you will adversely affect performance.


    MaxFreeTcbs -

    Key: Tcpip\Parameters
    Value Type: REG_DWORD—number

    Valid Range: 0–0xFFFFFFFF

    Default: The following default values are used (note that small is defined as a computer with less than 19 MB of RAM, medium is 19–63 MB of RAM, and large is 64 MB or more of RAM. Although this code still exists, nearly all computers are large now).

    For Windows Server 2003:

    Small system—500
    Medium system—1000
    Large system—2000

    Description: This parameter controls the number of cached (pre-allocated) Transport Control Blocks (TCBs) that are available. A TCB is a data structure that is maintained for each TCP connection.


    • 已標示為解答 Vincent Lin 2010年7月2日 上午 01:59
    2010年6月28日 上午 08:19