From owner-cvs-src-old@FreeBSD.ORG Thu Oct 15 14:18:52 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C1E61065676 for ; Thu, 15 Oct 2009 14:18:52 +0000 (UTC) (envelope-from luigi@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 1A0C48FC36 for ; Thu, 15 Oct 2009 14:18:52 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n9FEIpn4026958 for ; Thu, 15 Oct 2009 14:18:51 GMT (envelope-from luigi@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n9FEIpqQ026957 for cvs-src-old@freebsd.org; Thu, 15 Oct 2009 14:18:51 GMT (envelope-from luigi@repoman.freebsd.org) Message-Id: <200910151418.n9FEIpqQ026957@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to luigi@repoman.freebsd.org using -f From: Luigi Rizzo Date: Thu, 15 Oct 2009 14:18:35 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/tools/tools/netrate/netsend netsend.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Oct 2009 14:18:52 -0000 luigi 2009-10-15 14:18:35 UTC FreeBSD src repository Modified files: tools/tools/netrate/netsend netsend.c Log: SVN rev 198132 on 2009-10-15 14:18:35Z by luigi A small change to avoid calling gettimeofday() too often (hardwired to once every 20us at most). I found out that on many machines round here, i could only get 300-400kpps with netsend even on loopback and a 'deny' rule in the firewall, while reducing the number of calls to gettimeofday() brings the value to 900kpps and more. This code is just a quick fix for the problem. Of course it could be done better, with proper getopt() parsing and the like, but since this applies to the entire program i'll postpone that to when i have more time. Reviewed by: rwatson MFC after: 1 month Revision Changes Path 1.10 +19 -4 src/tools/tools/netrate/netsend/netsend.c