[Click] click optimize efficiency

Dennis D.J. dennis_d at yahoo.cn
Fri Dec 18 00:14:34 EST 2009



we are planning to run roofnet in x86 with atom cpu. I think run click only in mips router it can't be more efficient. 
2009-12-18 



Dennis D.J. 



发件人: click-request 
发送时间: 2009-11-21  01:02:20 
收件人: click 
抄送: 
主题: click Digest, Vol 77, Issue 19 
 
Send click mailing list submissions to
click at amsterdam.lcs.mit.edu
To subscribe or unsubscribe via the World Wide Web, visit
https://amsterdam.lcs.mit.edu/mailman/listinfo/click
or, via email, send a message with subject or body 'help' to
click-request at amsterdam.lcs.mit.edu
You can reach the person managing the list at
click-owner at amsterdam.lcs.mit.edu
When replying, please edit your Subject line so it is more specific
than "Re: Contents of click digest..."
Today's Topics:
   1. click optimize efficiency (Yongheng Qi)
   2. click optimize efficiency (Yongheng Qi)
   3. Mac OS X assert failed when trying to use KernelTun
      (Pekka Nikander)
----------------------------------------------------------------------
Message: 1
Date: Fri, 20 Nov 2009 10:31:27 +0800
From: Yongheng Qi <jetever at gmail.com>
Subject: [Click] click optimize efficiency
To: click <click at pdos.csail.mit.edu>, click <click at pdos.csail.mit.edu>
Message-ID:
<3958ac680911191831g752caea5laf413427f9dcdf1e at mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
Dear everyone.
I use click roofnet process the 802.11n packet. test it use IxChariot. find
about 90Mbps, click use 100% cpu.
I use routeros 433AH boardband.the cpu is MIPS 680Mhz.
I don't know how to make click have more eiffciency.
please help me, Thanks very much.
-- 
Yongheng Qi
Mobile: +86 1390 119 7481
------------------------------
Message: 2
Date: Fri, 20 Nov 2009 10:31:27 +0800
From: Yongheng Qi <jetever at gmail.com>
Subject: [Click] click optimize efficiency
To: click <click at pdos.csail.mit.edu>, click <click at pdos.csail.mit.edu>
Message-ID:
<3958ac680911191831g752caea5laf413427f9dcdf1e at mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
Dear everyone.
I use click roofnet process the 802.11n packet. test it use IxChariot. find
about 90Mbps, click use 100% cpu.
I use routeros 433AH boardband.the cpu is MIPS 680Mhz.
I don't know how to make click have more eiffciency.
please help me, Thanks very much.
-- 
Yongheng Qi
Mobile: +86 1390 119 7481
------------------------------
Message: 3
Date: Fri, 20 Nov 2009 17:14:10 +0200
From: Pekka Nikander <pekka.nikander at nomadiclab.com>
Subject: [Click] Mac OS X assert failed when trying to use KernelTun
To: click at pdos.csail.mit.edu
Message-ID: <4E605F96-3282-466D-8B33-EB38DF315298 at nomadiclab.com>
Content-Type: text/plain; charset=us-ascii
I'm a relative newbie to Click, and trying to use KernelTun on Mac OS X, with the latest GIT version.  Unfortunately it looks like that there is a bug, apparently related to the interactions between kevents and select/poll.  
The OS X tun/tap devices don't currently support kevents, and therefore click tries to back off to use select/poll.  However, once it gets to the actual poll in master.cc, something has gone wrong and I get a an assertion failure on line 850 in master.cc:
Element *read_elt = (p->revents & ~POLLOUT ? _read_elements[fd] : 0);
This results in an assertion failure, with this trivial script:
click -e "KernelTun(192.168.15.1/24) -> Discard"
Assertion failed: (i>=0 && i<_n), function operator[], file ../include/click/vector.hh, line 184.
Abort trap
My gut feeling is that the bug may line somewhere in master.cc Master:add_select, in the code that tries to make sure that one can fall back to select/poll in the case of kqueue error.  But I may be wrong.
In any case, when tracing the execution in opening the tun/tap device, the kevent system call at line 602 of master.cc fails, causing the _kqueue socket to be closed and made unused.   However, much before that I can see with ifconfig that the tun/tap interface is indeed open and correctly ifconfig'ed.
Anyone an idea where to continue debugging?  Or would it be easier to add KEVENT support to the Mac tun/tap kexts?
--Pekka Nikander
------------------------------
_______________________________________________
click mailing list
click at amsterdam.lcs.mit.edu
https://amsterdam.lcs.mit.edu/mailman/listinfo/click
End of click Digest, Vol 77, Issue 19
*************************************


More information about the click mailing list