From owner-freebsd-current Fri May 14 16:15:21 1999 Delivered-To: freebsd-current@freebsd.org Received: from ipt2.iptelecom.net.ua (ipt2.iptelecom.net.ua [212.42.68.2]) by hub.freebsd.org (Postfix) with ESMTP id 49D4514FFF for ; Fri, 14 May 1999 16:15:14 -0700 (PDT) (envelope-from sobomax@altavista.net) Received: from altavista.net (dialup3-12.iptelecom.net.ua [212.42.69.203]) by ipt2.iptelecom.net.ua (8.9.3/8.9.3) with ESMTP id CAA09441 for ; Sat, 15 May 1999 02:16:56 +0300 (EEST) Message-ID: <373CAED8.AC9377DA@altavista.net> Date: Sat, 15 May 1999 02:16:40 +0300 From: Maxim Sobolev X-Mailer: Mozilla 4.51 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: current@FreeBSD.ORG Subject: Solved: NPX code reports negative i586_bzero() bandwidth References: <3735833E.1B1011B4@altavista.net> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Maxim Sobolev wrote: > i586_bzero() bandwidth = -2082577916 bytes/sec > bzero() bandwidth = 184877056 bytes/sec It seems that on a fast machines with a lot of cache long type is not sufficient to print i586_bzero bandwith values in bytes/s (in my case it was slightly overruned). Following is the patch: --- 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); } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message