It seems you are not the first with that question, please look here: http://openvswitch.org/pipermail/discuss/2014-August/014819.html
On 01/12/2015 01:23 AM, discuss-requ...@openvswitch.org wrote:
-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://openvswitch.org/pipermail/discuss/attachments/20150111/5a8ba208/attachment-0001.html> ------------------------------ Message: 2 Date: Mon, 12 Jan 2015 11:23:40 +1100 From: Troy Lea <troy_...@hotmail.com> To: "discuss@openvswitch.org" <discuss@openvswitch.org> Subject: [ovs-discuss] 2000 Ports - things aren't working as expected Message-ID: <snt153-w92ba2dcecc338e2e99da20e8...@phx.gbl> Content-Type: text/plain; charset="iso-8859-1" Not sure if this is the right place to post but I need to start somewhere. Back story: I have been using Nagios for a while now and with that I have used MRTG for switch monitoring. I've been wanting to push the limits of MRTG in relation to the amount of ports that can be monitored and the affect this has on disk I/O on the Nagios host running MRTG. I am wanting to test in the region of 10,000+ ports. As you can imagine I don't have that many switches sitting around to perform that sort of testing. Hence I started to look if virtual switches existed and if so would they work. Then I found Open vSwitch. Current State: I've installed Open vSwitch on Ubuntu 14.04.1 and have tested it successfully. I've been able to create switches with up to 1000 ports and I can poll them via SNMP using MRTG. I've been creating these ports with a simple "for 1..1000 bash script". However it does seem though once I start creating more than 800 ports there is an impact on the Ubuntu system. This is noticeable in the time it takes to create each port when the script runs. It's like every port causes the system to take a little longer, kind of exponential. Creating 500 ports takes about 5 minutes. When creating 2000 ports it takes about 3 hours. When it is finished the system is still accessible (I can ping it from another server). However once I reboot it it doesn't respond to pings or SSH. Once I reboot the system is horribly slow. I've included all the information below which demonstrates how I am doing all of this. What am I asking? Is what I am doing realistic, creating 2000 ports? Are there limitations in Open vSwitch or am I hitting limitations in Ubuntu? MRTG creates lots of files for the data it collects from switches and it is the impact these small files has on the Nagios system which I am interested in. I am only using vSwitch as a mechanism to create these small files. I know I could run up 10 Ubuntu servers with each one having 1000 ports each and I would have the 10,000 ports I am after, I was just seeing how many ports I Open vSwitch would handle. Thanks I've you've kept reading this far. Thanks in advance if you send a reponse :) How am I doing it: Build a Ubuntu 14.04.1 server, minimal install. snmpd installed and configured Install Open vSwitch apt-get install openvswitch-switch ovs-vsctl add-br ovsbr0 ovs-vsctl add-port ovsbr0 eth0 ovs-vsctl add-port ovsbr0 ovsbr0p1 -- set interface ovsbr0p1 type=internal edit /etc/network/interfaces. assign an IP to ovsbr0. Reboot Everything is working peachy with this setup. Then I create the 2000 ports using this script: #!/bin/bash start_time=$(date +%s) for f in {2..2000} do ovs-vsctl add-port ovsbr0 ovsbr0p$f -- set interface ovsbr0p$f type=internal end_time=$(date +%s) run_time=$((end_time - start_time)) echo "Last command for ovsbr0p$f took $run_time" seconds start_time="$end_time" done Which generates this output: Last command for ovsbr0p2 took 0 seconds ... -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://openvswitch.org/pipermail/discuss/attachments/20150112/12c0409c/attachment.html> ------------------------------ Subject: Digest Footer _______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss ------------------------------ End of discuss Digest, Vol 67, Issue 28 ***************************************
-- Tigran Avanesov Interdisciplinary Centre for Security, Reliability and Trust UNIVERSITE DU LUXEMBOURG BÂTIMENT WEICKER 4, rue Alphonse Weicker L-2721 Luxembourg Office C021 T +352 46 66 44 5617 tigran.avane...@uni.lu www.uni.lu www.securityandtrust.lu _______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss