From owner-freebsd-stable Wed Sep 27 5:25:57 2000 Delivered-To: freebsd-stable@freebsd.org Received: from lucifer.ninth-circle.org (lucifer.bart.nl [194.158.168.74]) by hub.freebsd.org (Postfix) with ESMTP id 5082937B43E for ; Wed, 27 Sep 2000 05:25:54 -0700 (PDT) Received: (from asmodai@localhost) by lucifer.ninth-circle.org (8.11.0/8.9.3) id e8RCPbK14836; Wed, 27 Sep 2000 14:25:37 +0200 (CEST) (envelope-from asmodai) Date: Wed, 27 Sep 2000 14:25:37 +0200 From: Jeroen Ruigrok van der Werven To: Roman Shterenzon Cc: freebsd-stable@FreeBSD.ORG Subject: Re: negative bytes/sec? Message-ID: <20000927142537.L10657@lucifer.bart.nl> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from roman@xpert.com on Wed, Sep 27, 2000 at 02:36:35AM +0200 Organisation: VIA Net.Works The Netherlands Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG -On [20000927 01:40], Roman Shterenzon (roman@xpert.com) wrote: >i586_bzero() bandwidth = -1704293721 bytes/sec >bzero() bandwidth = 132802124 bytes/sec Try this, it worked for Maxim Sobolev, apparantly the data type is too small to adequately store the calculation on newer systems: --- npx.c.orig Sat May 15 01:14:13 1999 +++ npx.c Sat May 15 02:01:51 1999 @@ -696,8 +696,8 @@ if (usec <= 0) usec = 1; if (bootverbose) - printf("%s bandwidth = %ld bytes/sec\n", - funcname, (long)(BUFSIZE * (int64_t)1000000 / usec)); + printf("%s bandwidth = %ld Kbytes/sec\n", + funcname, (long)(BUFSIZE * (int64_t)1000000 / (1024*usec))); free(buf, M_TEMP); return (usec); } -- Jeroen Ruigrok van der Werven Network- and systemadministrator VIA Net.Works The Netherlands BSD: Technical excellence at its best http://www.via-net-works.nl Grant me the serenity to accept the things I cannot change, courage to change the things I can, and wisdom to know the difference... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message