FIXED [Re: Netmap-ipfw, how to fill a table by 15K entries ?] - thanks and a question

IT Department, AkNet ISP info at aknet.kg
Wed Dec 24 11:32:14 UTC 2014


Dear Luigi
many thanks, we got new code from netmap codebase and see dramaticaly
improved perfomance !

We have a little question about working of netmap-ipfw.

It's very important for us to switch   net.inet.ip.fw.one_pass  
variable to 0 value:
net.inet.ip.fw.one_pass=0

How to use this variable in such matter with netmap-ipfw ? Or may be
it behaviour depends on global variable net.inet.ip.fw.one_pass which
we set while boot process of a server ?

Azamat
AkNet ISP

Тема: FIXED [Re: Netmap-ipfw, how to fill a table by 15K entries
?]
От:  Luigi Rizzo 
Кому: "IT Department, AkNet ISP" 
CC: "freebsd-net at freebsd.org" ,"Alexander V. Chernikov" 
Дата: 24-12-2014 0:26

Ok please pull the "next" branch from code.google.com/p/netmap-ipfw/
which has a fix applied (set TCP_NODELAY on the connection).
With that i can load a table with 64k entries in about 3 seconds.

The "master" branch also has the same fix, but loading a table
appears to be buggy when it comes to
tables,
I think it is pointless to debug the problem in that branch
since "next" contains more recent code from
Alexander Chernikov which is much more robust for tables.

Thanks for the bug report.

cheers
luigi

On Tue, Dec 23, 2014 at 2:02 PM, IT Department, AkNet ISP  wrote:
> Hello to All
>
> Can anybody tell, how to fill a table with large number of entries
?
>
> Sure, It can be done by standard method by ./ipfw table 10 add
> xxx.xxx.xxx.xxx in a script, but each entry takes couple of seconds
to
> be placed into a table:
>
> ./ipfw table 10 add 192.168.10.50
> connected to 127.0.0.1:5555
>
> And takes many hours to do all job.
>
> May be there is a way to open a socket and place a bulk commands,
for
> example:
> telnet localhost 5555
> table 10 add xxx.xxx.xxx.xxx
>
> But it doesn't work as written above.
>
> May be Senior Luigi can explane how to do such work as fast as it
> done by ordinary ipfw ?
>
> Best regards
> Azamat
> AkNet ISP
>
>
_______________________________________________
> freebsd-net at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to
"freebsd-net-unsubscribe at freebsd.org"

-- 
-----------------------------------------+-------------------------------
Prof. Luigi RIZZO, rizzo at iet.unipi.it . Dip. di Ing.
dell'Informazione
http://www.iet.unipi.it/~luigi/ . Universita` di Pisa
TEL +39-050-2211611 . via Diotisalvi 2
Mobile +39-338-6809875 . 56122 PISA (Italy)
-----------------------------------------+-------------------------------
_______________________________________________
freebsd-net at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to
"freebsd-net-unsubscribe at freebsd.org"


More information about the freebsd-net mailing list