Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 May 1999 02:16:40 +0300
From:      Maxim Sobolev <sobomax@altavista.net>
To:        current@FreeBSD.ORG
Subject:   Solved: NPX code reports negative i586_bzero() bandwidth
Message-ID:  <373CAED8.AC9377DA@altavista.net>
References:  <3735833E.1B1011B4@altavista.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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