[ovs-dev] [PATCH] ovs-ofctl: Fix memory exhaustion failures in corner cases.

Jarno Rajahalme jrajahalme at nicira.com
Thu Nov 6 19:34:41 UTC 2014


On Nov 6, 2014, at 10:50 AM, Jarno Rajahalme <jrajahalme at nicira.com> wrote:

>> +for i in `seq 1 50000`; do echo "reg0=$i/$i actions=drop"; done > flows

Running this test case alone with ‘time’ added to the preceding line:

real	1m12.531s
user	0m2.492s
sys	0m6.928s

>> +AT_CHECK([ovs-ofctl diff-flows flows flows])

And ‘time’ing this:

real	0m8.875s
user	0m3.900s
sys	0m4.952s

Running the same ovs-ofctl command on a shell:

real	0m3.041s
user	0m2.520s
sys	0m0.512s

>> +AT_CLEANUP
>> +
> 
> Just a note: This test is pretty slow on my VM, I’ll look if we can make this run faster.

I wonder what makes the shell loop so slow on my VM? Any ideas?

As it is, this new tests keeps running for ages after all the other tests have already finished.

  Jarno




More information about the dev mailing list