[ovs-discuss] OVS 2.3 udp flood - vswitchd OOM

Adam Mazur adam.mazur at tiktalik.com
Mon Dec 1 10:43:46 UTC 2014


Hi,

We are testing on kernel 3.18, ovs current master, gre tunnels / xen 
server. Following python script leads to fast ovs-vswitchd memory grow 
(1GB / minute) and finally OOM kill:


import random, socket, struct, time
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
while True:
     ip_raw = struct.pack('>I', random.randint(1, 0xffffffff))
     ip = socket.inet_ntoa(ip_raw)
     try:
         sock.sendto("123", (ip, 12345))
     except:
         pass
     #time.sleep(0.001)


During this test ovs did not show growing flow number, but memory still 
grows.

If packets are sent too slow, then memory never grows - uncomment 
time.sleep line above.

Best,
Adam



More information about the discuss mailing list