From owner-freebsd-current@FreeBSD.ORG Fri Apr 9 06:57:34 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 023BE106564A for ; Fri, 9 Apr 2010 06:57:34 +0000 (UTC) (envelope-from admin@lissyara.su) Received: from hosting.lissyara.su (hosting.lissyara.su [77.221.149.162]) by mx1.freebsd.org (Postfix) with ESMTP id A8CFA8FC12 for ; Fri, 9 Apr 2010 06:57:33 +0000 (UTC) Received: from [195.93.240.104] (port=28453 helo=lissyara.moskb.local) by hosting.lissyara.su with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.71 (FreeBSD)) (envelope-from ) id 1O089j-000FLe-LM for freebsd-current@freebsd.org; Fri, 09 Apr 2010 10:57:31 +0400 Message-ID: <4BBECFDB.6080001@lissyara.su> Date: Fri, 09 Apr 2010 10:57:31 +0400 From: Alex Keda User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; ru-RU; rv:1.8.1.23) Gecko/20091202 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 MIME-Version: 1.0 To: freebsd-current@freebsd.org X-White-List: YES X-Spam-Description: if spam count > 60 - this is spam X-Spam-Count: 0 X-Descriptions: powered by www.lissyara.su X-Bounce-ID: hosting.lissyara.su Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: load ipfw table addresses from file X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Apr 2010 06:57:34 -0000 hi! is there any plans to implement such opportunities? for large files (we have 60k lines) it's very slow work srv1# sh -E # wc -l /root/scripts/db/table.25.txt 61073 /root/scripts/db/table.25.txt # date && for i in `cat /root/scripts/db/table.25.txt`; do ipfw table 25 add $i; done && date пятница, 9 апреля 2010 г. 10:42:01 (MSD) пятница, 9 апреля 2010 г. 10:52:43 (MSD) # it took more than 10 minutes on busy server =(