noxrepo / nox

The NOX Controller
Other
139 stars 85 forks source link

Boost exception thrown in nox causing very low throughput #10

Closed monasinha194 closed 11 years ago

monasinha194 commented 11 years ago

228026|openflow-datapath|DBG:received ofp_packet_in 228027|openflow-datapath|DBG:sending ofp_flow_mod 228028|event-dispatcher|ERR:Event ofp_packet_in processing leaked an exception: boost::asio::streambuf too long 228029|event-dispatcher|ERR:Extra information: Throw location unknown (consider using BOOST_THROW_EXCEPTION) Dynamic exception type: boost::exception_detail::clone_implboost::exception_detail::error_info_injector std::exception::what: boost::asio::streambuf too long 228030|openflow-datapath|DBG:received ofp_packet_in 228031|openflow-datapath|DBG:sending ofp_flow_mod 228032|event-dispatcher|ERR:Event ofp_packet_in processing leaked an exception: boost::asio::streambuf too long 228033|event-dispatcher|ERR:Extra information: Throw location unknown (consider using BOOST_THROW_EXCEPTION) Dynamic exception type: boost::exception_detail::clone_implboost::exception_detail::error_info_injector std::exception::what: boost::asio::streambuf too long 228034|openflow-datapath|DBG:received ofp_packet_in 228035|openflow-datapath|DBG:sending ofp_flow_mod 228036|event-dispatcher|ERR:Event ofp_packet_in processing leaked an exception: boost::asio::streambuf too long 228037|event-dispatcher|ERR:Extra information: Throw location unknown (consider using BOOST_THROW_EXCEPTION) Dynamic exception type: boost::exception_detail::clone_implboost::exception_detail::error_info_injector

Output:

17:39:15.109 1 switches: flows/sec: 3995 total = 2.240731 per ms 17:39:16.959 1 switches: flows/sec: 1843 total = 1.053301 per ms 17:39:18.062 1 switches: flows/sec: 1843 total = 1.838457 per ms 17:39:19.783 1 switches: flows/sec: 1851 total = 1.141512 per ms 17:39:21.668 1 switches: flows/sec: 1844 total = 1.033481 per ms 17:39:22.786 1 switches: flows/sec: 1843 total = 1.810375 per ms 17:39:24.701 1 switches: flows/sec: 2458 total = 1.354281 per ms 17:39:25.802 1 switches: flows/sec: 1844 total = 1.843766 per ms 17:39:27.700 1 switches: flows/sec: 2458 total = 1.366717 per ms 17:39:28.819 1 switches: flows/sec: 0 total = 0.000000 per ms RESULT: 1 switches 9 tests min/max/avg/stdev = 0.00/1843.77/1271.32/547.02 responses/s

tootoonchian commented 11 years ago

Is the setting different than what you sent to the mailing list? If not, I'll reopen the issue.

monasinha194 commented 11 years ago

Hi amin, the setting was same.Also, I am using an x86_64 architecture, dual core processor.I tried with single thread too results were not appropriate.

tootoonchian commented 11 years ago

With a dual-core processor, go with 1 or 2 threads.

Amin

On Thu, Mar 7, 2013 at 8:52 PM, monasinha194 notifications@github.comwrote:

Hi amin, the setting was same.Also, I am using an x86_64 architecture, dual core processor.I tried with single thread too results were not appropriate.

— Reply to this email directly or view it on GitHubhttps://github.com/noxrepo/nox/issues/10#issuecomment-14602710 .

monasinha194 commented 11 years ago

Yes , I did that too. But all in vain :(

tootoonchian commented 11 years ago

Can you show the commands you used in your last run?

monasinha194 commented 11 years ago

sudo apt-get update

wget -c 'http://sourceforge.net/projects/boost/files/boost/1.50.0/boost_1_50_0.tar.bz2/download'

tar xf download

cd boost_1_50_0

./bootstrap.sh

./b2 install

./configure --prefix=/usr --with-boost-libdir=/usr/local/lib --enable-ndebug

make clean

make -j

Run nox through

taskset -c 0 ./nox_core -i ptcp:0.0.0.0:6633 -v switch -t 1

Cbench installtion:

Downloaded cbench

./configure make make install

Run through :

cbench -c localhost -M 10000 -m 1000 -s 16 -l 10 -t

monasinha194 commented 11 years ago

sudo apt-get update

wget -c ' http://sourceforge.net/projects/boost/files/boost/1.50.0/boost_1_50_0.tar.bz2/download '

tar xf download

cd boost_1_50_0

./bootstrap.sh

./b2 install

./configure --prefix=/usr --with-boost-libdir=/usr/local/lib --enable-ndebug

make clean

make -j

Run nox through

taskset -c 0 ./nox_core -i ptcp:0.0.0.0:6633 -v switch -t 1

Cbench installtion:

Downloaded cbench

./configure make make install

Run through :

cbench -c localhost -M 10000 -m 1000 -s 16 -l 10 -t

On Fri, Mar 8, 2013 at 1:30 PM, Amin Tootoonchian notifications@github.comwrote:

Can you show the commands you used in your last run?

— Reply to this email directly or view it on GitHubhttps://github.com/noxrepo/nox/issues/10#issuecomment-14608414 .