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


------------------?0?2Original?0?2------------------
*From: *?0?2"Iwase Yusuke";<iwase.yusu...@gmail.com>;
*Send time:*?0?2Thursday, Mar 8, 2018 8:23 AM
*To:*?0?2"Zhang Yifan"<zhang*****@qq.com>;
*Cc:*?0?2"ryu-devel"<ryu-devel@lists.sourceforge.net>;
*Subject: *?0?2Re: [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?0?2/etc/security/limits.conf to max, but the error still 
appears.
 >
 >
 > ------------------?0?2Original?0?2------------------
 >
 >
 > 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:
 >?0?2 > Hi everyone,
 >?0?2 >?0?2 ?0?2 ?0?2I have written a ryu application, it works well with 
small topology, but
 >?0?2 > when I create a topology which has 80 switches,?0?2I obtain the 
following error:
 >?0?2 >
 >?0?2 >
 >?0?2 > hub: uncaught exception: Traceback (most recent call last):
 >?0?2 >?0?2 ?0?2 File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", 
line 59, in
 > _launch
 >?0?2 >?0?2 ?0?2 File 
"/usr/local/lib/python2.7/dist-packages/ryu/controller/controller.py",
 >?0?2 > line 151, in __call__
 >?0?2 >?0?2 ?0?2 File 
"/usr/local/lib/python2.7/dist-packages/ryu/controller/controller.py",
 >?0?2 > line 188, in server_loop
 >?0?2 >?0?2 ?0?2 File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", 
line 139, in
 >?0?2 > serve_forever
>?0?2 >?0?2 ?0?2 File "/usr/local/lib/python2.7/dist-packages/eventlet/greenio/base.py", line
 >?0?2 > 214, in accept
>?0?2 >?0?2 ?0?2 File "/usr/local/lib/python2.7/dist-packages/eventlet/greenio/base.py", line
 >?0?2 > 56, in socket_accept
 >?0?2 >?0?2 ?0?2 File "/usr/lib/python2.7/socket.py", line 206, in accept
 >?0?2 > error: [Errno 24] Too many open files
 >?0?2 >
 >?0?2 > I want to know how I can fix the error?
 >?0?2 >
 >?0?2 > Thanks,
 >?0?2 > YF
 >?0?2 >
 >?0?2 >
 >?0?2 >
 >?0?2 > 
------------------------------------------------------------------------------
 >?0?2 > Check out the vibrant tech community on one of the world's most
 >?0?2 > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
 >?0?2 >
 >?0?2 >
 >?0?2 >
 >?0?2 > _______________________________________________
 >?0?2 > Ryu-devel mailing list
 >?0?2 > Ryu-devel@lists.sourceforge.net
 >?0?2 > https://lists.sourceforge.net/lists/listinfo/ryu-devel
 >?0?2 >
 >
 >
 > 
------------------------------------------------------------------------------
 > 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

Reply via email to