Date: Sat, 27 Dec 2014 16:31:55 +0300 From: "Alexander V. Chernikov" <melifaro@ipfw.ru> To: Luigi Rizzo <rizzo@iet.unipi.it> Cc: "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>, "IT Department, AkNet ISP" <info@aknet.kg>, "Alexander V. Chernikov" <melifaro@freebsd.org> Subject: Re: FIXED [Re: Netmap-ipfw, how to fill a table by 15K entries ?] Message-ID: <4A917898-0659-4ECE-976F-241A989A4E77@ipfw.ru> In-Reply-To: <CA%2BhQ2%2BhmafX4L2b%2BWvhUUL9rKRc_4qrK7nFfR9Qo3PyqPqudaA@mail.gmail.com> References: <CA%2BhQ2%2BhmafX4L2b%2BWvhUUL9rKRc_4qrK7nFfR9Qo3PyqPqudaA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> On 23 Dec 2014, at 21:26, Luigi Rizzo <rizzo@iet.unipi.it> wrote: >=20 > 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. >=20 > 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. The only thing I can add here is that new table code is capable of = doing batch add/del operations via ipfw table AAA add cidr1 value1 [cidr2 value2] [cidr3 value3] ...=20 >=20 > Thanks for the bug report. >=20 > cheers > luigi >=20 > On Tue, Dec 23, 2014 at 2:02 PM, IT Department, AkNet ISP = <info@aknet.kg> wrote: >> Hello to All >>=20 >> Can anybody tell, how to fill a table with large number of entries ? >>=20 >> 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: >>=20 >> ./ipfw table 10 add 192.168.10.50 >> connected to 127.0.0.1:5555 >>=20 >> And takes many hours to do all job. >>=20 >> 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 >>=20 >> But it doesn't work as written above. >>=20 >> May be Senior Luigi can explane how to do such work as fast as it >> done by ordinary ipfw ? >>=20 >> Best regards >> Azamat >> AkNet ISP >>=20 >> _______________________________________________ >> freebsd-net@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-net >> To unsubscribe, send any mail to = "freebsd-net-unsubscribe@freebsd.org" >=20 >=20 >=20 > --=20 > = -----------------------------------------+------------------------------- > Prof. Luigi RIZZO, rizzo@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) > = -----------------------------------------+------------------------------- >=20
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A917898-0659-4ECE-976F-241A989A4E77>