Hi Iwase,
Thanks for your answers.
I find that the Ryu controller will disconnect with the switches on Mininet
when they are connected after some time.
All I can do is to restart the Ryu application.
Do you know how to avoid the disconnections between Ryu and switches?
------------------ Original ------------------
From: "Iwase Yusuke";<iwase.yusu...@gmail.com>;
Send time: Thursday, Mar 8, 2018 12:13 PM
To: "Zhang Yifan"<zhang*****@qq.com>;
Cc: "ryu-devel"<ryu-devel@lists.sourceforge.net>;
Subject: Re: [Ryu-devel] Too many open files
Hi,
Hmmm... I can't say further because I don't know the details of your
environment...
FYI, on my environment, my PC might reach the performance limit for such (80
switches) topology on a single machine.
$ sudo mn --controller remote --topo linear,80
...(snip)...
*** Starting controller
c0
*** Starting 80 switches
s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22
s23 s24 s25 s26 s27 s28 s29 s30 s31 s32 s33 s34 s35 s36 s37 s38 s39 s40 s41 s42
s43 s44 s45 s46 s47 s48 s49 s50 s51 s52 s53 s54 s55 s56 s57 s58 s59 s60 s61 s62
s63 s64 s65 s66 s67 s68 s69 s70 s71 s72 s73 s74 s75 s76 s77 s78 s79 s80 ...
*** Starting CLI:
mininet>
My PC got very slow after 80 switches started up, then I guess Ryu can not
handle these switches due to the performance limit (shortage of resource) on the
same machine.
Thanks,
Iwase
On 2018??03??08?? 11:10, Zhang Yifan wrote:
> Hi Iwase,
>
> Thanks for your reminding.
>
> My Ryu version is 4.23, and Open vSwitch on Mininet is 2.5.2.
>
> I think the connections between Ryu and Mininet Switch often disconnected and
> sometimes it cannot reconnect.
>
> How can I solve the problem?
>
> Thanks,
> YF
>
>
> ------------------ Original ------------------
> *From: * "Iwase Yusuke";<iwase.yusu...@gmail.com>;
> *Send time:* Thursday, Mar 8, 2018 8:23 AM
> *To:* "Zhang Yifan"<zhang*****@qq.com>;
> *Cc:* "ryu-devel"<ryu-devel@lists.sourceforge.net>;
> *Subject: * Re: [Ryu-devel] Too many open files
>
> Hi,
>
> Well, which version of Ryu (also OVS on Mininet?) are you using?
>
> And please check whether re-connections between Ryu and your switches occur or
> not. If re-connections occurs too frequently, your switches might try to
> establish new connections regardless of Ryu could close socket successfully,
> then Ryu unexpectedly eats up file descriptors and reaches its limit.
>
> Thanks,
> Iwase
>
>
> On 2018??03??07?? 17:11, Zhang Yifan wrote:
> > Hi,
> >
> > I have modified /etc/security/limits.conf to max, but the error still
> appears.
> >
> >
> > ------------------ Original ------------------
> >
> >
> > Hi,
> >
> > I seem the number of "file descriptors" hits the limit of its max.
> > In most case, 1024 is the max per process and "/proc/sys/fs/file-max"
> contains
> > the max of whole of OS.
> >
> > e.g.)
> > $ ulimit -n
> > 1024
> >
> > $ cat /proc/sys/fs/file-max
> > 800471
> >
> > Thanks,
> > Iwase
> >
> >
> > On 2018??03??05?? 18:33, Zhang Yifan wrote:
> > > Hi everyone,
> > > I have written a ryu application, it works well with small
> topology, but
> > > when I create a topology which has 80 switches, I obtain the following
> error:
> > >
> > >
> > > hub: uncaught exception: Traceback (most recent call last):
> > > File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", line
> 59, in
> > _launch
> > > File
> "/usr/local/lib/python2.7/dist-packages/ryu/controller/controller.py",
> > > line 151, in __call__
> > > File
> "/usr/local/lib/python2.7/dist-packages/ryu/controller/controller.py",
> > > line 188, in server_loop
> > > File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", line
> 139, in
> > > serve_forever
> > > File
> "/usr/local/lib/python2.7/dist-packages/eventlet/greenio/base.py",
> line
> > > 214, in accept
> > > File
> "/usr/local/lib/python2.7/dist-packages/eventlet/greenio/base.py",
> line
> > > 56, in socket_accept
> > > File "/usr/lib/python2.7/socket.py", line 206, in accept
> > > error: [Errno 24] Too many open files
> > >
> > > I want to know how I can fix the error?
> > >
> > > Thanks,
> > > YF
> > >
> > >
> > >
> > >
> ------------------------------------------------------------------------------
> > > 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
> >
>
> ------------------------------------------------------------------------------
> 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
>
------------------------------------------------------------------------------
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