Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Dec 2014 17:32:11 +0600
From:      "IT Department, AkNet ISP" <info@aknet.kg>
To:        Luigi Rizzo <rizzo@iet.unipi.it>
Cc:        freebsd-net@freebsd.org, "Alexander V. Chernikov" <melifaro@freebsd.org>
Subject:   FIXED [Re: Netmap-ipfw, how to fill a table by 15K entries ?] - thanks and a question
Message-ID:  <20141224113211.41380.1057557340.swift@crm.aknet.kg>

next in thread | raw e-mail | index | archive | help
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: <owner-freebsd-net@FreeBSD.ORG>
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 <freebsd-net@freebsd.org>; 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 <freebsd-net@freebsd.org>; 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" <Martin.v.Blais@USherbrooke.ca>
To: <freebsd-net@freebsd.org>
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 <freebsd-net.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-net>,
 <mailto:freebsd-net-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-net/>;
List-Post: <mailto:freebsd-net@freebsd.org>
List-Help: <mailto:freebsd-net-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-net>,
 <mailto:freebsd-net-request@freebsd.org?subject=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

 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141224113211.41380.1057557340.swift>