oracle rac 性能影响参数 - MTU

前端之家收集整理的这篇文章主要介绍了oracle rac 性能影响参数 - MTU前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

在项目中遇到了数据导入特别缓慢的问题、或者是建立索引特别慢。

在优化数据库无果之后,主机方面找到了问题的原因。

  1. [root@rac1 ~]# netstat -nai
  2. Kernel Interface table
  3. Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
  4. eth0 1500 0 9202 0 0 0 7764 0 0 0 BMRU
  5. eth0:1 1500 0 - no statistics available - BMRU
  6. eth1 1500 0 414357 0 0 0 330398 0 0 0 BMRU
  7. eth1:1 1500 0 - no statistics available - BMRU
  8. lo 16436 0 99564 0 0 0 99564 0 0 0 LRU
  9. [root@rac1 ~]#
就是这个东西。

它控制了每个网络传输的最大的数据包的大小,如果这个值设置的不合理就会导致数据包频繁的拆包和发送,导致网络负载相当高,从而影响数据库性能

可以使用PING大包的方式去测试这个值。

  1. [root@rac2 ~]# ping -s 65507 rac1
  2. PING rac1 (192.168.137.128) 65507(65535) bytes of data.
  3. 65515 bytes from rac1 (192.168.137.128): icmp_seq=1 ttl=64 time=1.03 ms
  4. 65515 bytes from rac1 (192.168.137.128): icmp_seq=2 ttl=64 time=1.84 ms
  5. 65515 bytes from rac1 (192.168.137.128): icmp_seq=3 ttl=64 time=1.29 ms
  6. ^C
  7. --- rac1 ping statistics ---
  8. 3 packets transmitted,3 received,0% packet loss,time 2927ms
  9. rtt min/avg/max/mdev = 1.032/1.390/1.846/0.340 ms
  10. [root@rac2 ~]# ping -s 65508 rac1
  11. WARNING: packet size 65508 is too large. Maximum is 65507
  12. PING rac1 (192.168.137.128) 65508(65536) bytes of data.
  13. ping: local error: Message too long,mtu=1500
  14. ping: local error: Message too long,mtu=1500
  15. ^C
  16. --- rac1 ping statistics ---
  17. 2 packets transmitted,0 received,+2 errors,100% packet loss,time 1913ms
  18.  
  19. [root@rac2 ~]#

因为一般一个ORACLE RAC要和存储节点去通信,所以MTU值最好是对等状态,最优经验值是7000。

猜你在找的Oracle相关文章