From owner-freebsd-net@FreeBSD.ORG Wed Dec 24 11:32:14 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3966C2E6; Wed, 24 Dec 2014 11:32:14 +0000 (UTC) Received: from mx.aknet.kg (mx.aknet.kg [212.112.96.8]) by mx1.freebsd.org (Postfix) with ESMTP id 447BE64F29; Wed, 24 Dec 2014 11:32:13 +0000 (UTC) Received: from [192.168.0.218] (office.aknet.kg [212.112.96.6]) by mx.aknet.kg (Postfix) with ESMTP id B82F01CDE4; Wed, 24 Dec 2014 17:32:11 +0600 (KGT) To: Luigi Rizzo From: "IT Department, AkNet ISP" Reply-To: "IT Department, AkNet ISP" Subject: FIXED [Re: Netmap-ipfw, how to fill a table by 15K entries ?] - thanks and a question Date: Wed, 24 Dec 2014 17:32:11 +0600 X-LibVersion: 3.3.2 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced by Group-Office 3.01-stable-5 X-Mailer: Group-Office 3.01-stable-5 Message-ID: <20141224113211.41380.1057557340.swift@crm.aknet.kg> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-net@freebsd.org, "Alexander V. Chernikov" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Dec 2014 11:32:14 -0000 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@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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" -- -----------------------------------------+------------------------------- 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) -----------------------------------------+------------------------------- _______________________________________________ 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" From owner-freebsd-net@FreeBSD.ORG Wed Dec 24 13:59:12 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7D172A7C for ; Wed, 24 Dec 2014 13:59:12 +0000 (UTC) Received: from fipqcsb01.cogeco.net (smtp6.cogeco.ca [216.221.81.96]) by mx1.freebsd.org (Postfix) with ESMTP id 44FB338BA for ; Wed, 24 Dec 2014 13:59:10 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgEJAEvFmlQYelQW/2dsb2JhbABbgkNDUohdvlGFcASBFBcBAQEBAX2EEwglKQknBQYHC1AgHwEEHoghBQimXqUpBJAPhBMFiUuESk2CcoZBjQqDOSKEDCCCdAEBAQ X-IPAS-Result: AgEJAEvFmlQYelQW/2dsb2JhbABbgkNDUohdvlGFcASBFBcBAQEBAX2EEwglKQknBQYHC1AgHwEEHoghBQimXqUpBJAPhBMFiUuESk2CcoZBjQqDOSKEDCCCdAEBAQ X-IronPort-AV: E=Sophos;i="5.07,638,1413259200"; d="scan'208,217";a="274041075" Received: from 24-122-84-22.dr.cgocable.ca (HELO MartinDesktop) ([24.122.84.22]) by fipqcsb01.cogeco.net with ESMTP; 24 Dec 2014 08:58:02 -0500 From: "Martin Blais" To: Subject: Network Interface going up and down. Date: Wed, 24 Dec 2014 08:58:00 -0500 Message-ID: <004301d01f81$a153a480$e3faed80$@v.Blais@USherbrooke.ca> MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AdAfgaEkc7iGFvUoS/iAVPjodbX6Vw== Content-Language: fr-ca Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Dec 2014 13:59:12 -0000 Hi there, Someone in the following thread suggests to bring the bug up to your ears: https://bugs.freenas.org/issues/7227 If you decide that it is worth investigating and if you need any thing to help you, I'm available. Thanks Martin