Re: [ovs-discuss] Port counter update frequency

2013-03-16 Thread Ben Pfaff
That's the behavior I would expect. On Mar 16, 2013 6:58 AM, "Tmusic" wrote: > Thanks for verifying the behavior. > I did some further testing and found a bug in my openflow controller. > Sorry for bothering you with this... > > The flow counters are now updated every second. The port counters se

Re: [ovs-discuss] Port counter update frequency

2013-03-16 Thread Tmusic
Thanks for verifying the behavior. I did some further testing and found a bug in my openflow controller. Sorry for bothering you with this... The flow counters are now updated every second. The port counters seem to update almost instantaneous (now ping -i 0.01) and measuring every 10ms and it's u

Re: [ovs-discuss] Port counter update frequency

2013-03-15 Thread Ben Pfaff
I ran a test. I set up an Open vSwitch switch (from current Git "master") between two nodes, connected to "ovs-controller" as an OpenFlow controller. I ran "ping -i.1" between them, to transmit 10 ICMP echo requests and replies per second. On the switch, I ran "watch -n1 ovs-ofctl dump-flows br0

Re: [ovs-discuss] Port counter update frequency

2013-03-15 Thread Tmusic
2 hosts directly connected to a machine running ovs. The openflow controller (POX) runs on yet another machine. All bare metal, no VMs. The goal is to measure the traffic passing through the switch using the openflow protocol. Versions: Open vSwitch 1.7.3 Ubuntu 11.04 Kernel 2.6.38-11-generic-pae

Re: [ovs-discuss] Port counter update frequency

2013-03-15 Thread Ben Pfaff
Open vSwitch determines the interval. What is your test case? On Fri, Mar 15, 2013 at 09:57:22PM +0100, Tmusic wrote: > I checked it multiple times and it seems to be 2.5-2.6s on average > openvswitch is polled for its counters using the openflow protocol > > Is this interval determined by openv

Re: [ovs-discuss] Port counter update frequency

2013-03-15 Thread Tmusic
I checked it multiple times and it seems to be 2.5-2.6s on average openvswitch is polled for its counters using the openflow protocol Is this interval determined by openvswitch or by the linux kernel? Thanks! 2013/3/15 Ben Pfaff > On Fri, Mar 15, 2013 at 09:24:05PM +0100, Tmusic wrote: > > I'

Re: [ovs-discuss] Port counter update frequency

2013-03-15 Thread Ben Pfaff
On Fri, Mar 15, 2013 at 09:24:05PM +0100, Tmusic wrote: > I'm polling the port the stat counters of openvswitch (with kernel module) > and noticed that they are only updated about every 2.5s. They should be updated about once a second. I'm surprised that you see anything different. __

[ovs-discuss] Port counter update frequency

2013-03-15 Thread Tmusic
Hi, I'm polling the port the stat counters of openvswitch (with kernel module) and noticed that they are only updated about every 2.5s. Is this normal behavior? Is there any way to change this (make it update more often)? Thanks in advance! Tim ___ di