Yes I am referring to the first statement "multi-thread on Python is not
effective enough"...

Please let me give another example to make my question more clear
Lets say the routing algorithm wants to update the paths on switch S1, S2,
S3. One way is to update all the switches at time 0 (in parallel), and the
other way is to update s1 at time 0, s2 at time 1, and s3 at time 3
(serial).

Because of GIL in python a thread has to finish its task before moving to
another thread; with this in mind I believe using threads will update the
switches in serial; because the first thread has to finish installing the
rules on s1, then it moves to the next thread to install the rules on s2
and so on....

So my question is in Ryu what mechanism I can use to update s1, s2, s3  at
time 0 (in one go)?
I hope my question is more clear now.


Thank you all for your time,
Corry





On Mon, Jun 19, 2017 at 5:26 AM, Iwase Yusuke <iwase.yusu...@gmail.com>
wrote:

> Hi,
>
>
> On 2017年06月17日 20:47, corey ross wrote:
> > Hey there,
> > I was wondering if it is possible to install multiple flows in parallel,
> if yes how?
> >
> > for e.g if I have a topology of three switches (s1, s2, s3), I want to
> install flow-rules f1 on s1, f2 on s2 and f3 on s3. How can I install this
> three flow rules in parallel instead of doing so in serial fashion?
> >
> > I have searched around and It seems that using threads is not an
> effective way.
>
> Please let me make your question more clear.
> What does "in parallel" and "in serial" exactly mean?
>
> You mean; you currently uses multi-thread (using "ryu.lib.hub" or
> "eventlet"),
> but some post you read says "multi-thread on Python is not effective
> enough",
> right?
> If so, are you facing the performance limit, for example?
>
> Or, you want to get "Datapath" instance for s2 and s3, when you get event
> from
> s1?
>
> Thanks,
> Iwase
>
> >
> >
> >
> > ------------------------------------------------------------
> ------------------
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> >
> >
> >
> > _______________________________________________
> > Ryu-devel mailing list
> > Ryu-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/ryu-devel
> >
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to