Net.TcpipHeapSize - 使用ESX NFS datastore的TCPIP堆栈内存参数推荐值

Q:什么是TcpipHeapSize
A:TcpipHeapSize 指的是分配给VMkernel TCP/IP栈的内存数量,ESX4默认是16MB,最大值是32MB。NetApp建议修改为30MB

TcpipHeapMax 指的是分配给VMkernel TCP/IP栈的内存可以增长到的上限值,ESX4默认是64MB,最大值是128MB。NetApp建议修改为120MB

如果你使用NFS作为datastore的存储协议,那么建议你修改上面2个值。

否则的话,你可能很快就会看见类似的警报:

  Heap: 1856: tcpip: heap below 9% -- 2965344 bytes free"
    或者
  Net: 2684: size = 17034 too large for slab allocator using heap
 
Q: 如何修改?
A: 选中host→Configuration → Advanced Settings → 左边选Net,右边向下拉到大概中间的位置,你就能找到这2个参数。 修改完以后需要重启Host才能生效
net.tcpipHeapSize
如果你用命令行,可以用以下命令:
# esxcfg-advcfg -s 30 /Net/TcpipHeapSize
# esxcfg-advcfg -s 120 /Net/TcpipHeapMax

参考讨论贴:
http://blog.core-it.com.au/?p=412
http://communities.vmware.com/thread/170499;jsessionid=29241F89CE85BEC392AC8A583EE47599

你可能感兴趣的:(内存,堆栈,nfs,tcpip,esx)