Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Jan 2006 03:40:59 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        Alexander Leidinger <netchild@FreeBSD.org>
Cc:        cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/i386/i386 identcpu.c src/sys/amd64/amd64  identcpu.c src/sys/alpha/alpha cpuconf.c src/sys/arm/arm         identcpu.c src/sys/ia64/ia64 machdep.c src/sys/powerpc/powerpc         machdep.c src/sys/sparc64/sparc64 identcpu.c src/sys/kern ...
Message-ID:  <20060101033654.B24703@maildrop.int.zabbadoz.net>
In-Reply-To: <200512311439.jBVEdLak061352@repoman.freebsd.org>
References:  <200512311439.jBVEdLak061352@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 31 Dec 2005, Alexander Leidinger wrote:

> netchild    2005-12-31 14:39:20 UTC
>
>  FreeBSD src repository
>
>  Note to AMD owners (IA32 and AMD64): please run "sysctl vm.stats.pagequeue"
>  and report if the cache* values are zero (= bug in the cache detection code)
>  or not.
...
>  Revision  Changes    Path
>  1.142     +32 -0     src/sys/amd64/amd64/identcpu.c


it's past 4:30am here so please review before committing:

Index: sys/amd64/amd64/identcpu.c
===================================================================
RCS file: /shared/mirror/FreeBSD/r/ncvs/src/sys/amd64/amd64/identcpu.c,v
retrieving revision 1.142
diff -u -p -r1.142 identcpu.c
--- sys/amd64/amd64/identcpu.c  31 Dec 2005 14:39:18 -0000      1.142
+++ sys/amd64/amd64/identcpu.c  1 Jan 2006 03:38:26 -0000
@@ -69,8 +69,8 @@ void panicifcpuunsupported(void);

  static void print_AMD_info(void);
  static void print_AMD_assoc(int i);
+static void setPQL2_AMD(int *const size, int *const ways);
  void setPQL2(int *const size, int *const ways);
-static void setPQL2_AMD(void);

  int    cpu_class;
  char machine[] = "amd64";
@@ -533,7 +533,7 @@ print_AMD_info(void)
  }

  static void 
-setPQL2_AMD(void)
+setPQL2_AMD(int *const size, int *const ways)
  {
         if (cpu_exthigh >= 0x80000006) {
                 u_int regs[4];
@@ -553,7 +553,7 @@ setPQL2_AMD(void)
  }

  void
-setPQL2(int *const size, int *const ways);
+setPQL2(int *const size, int *const ways)
  {
         if (strcmp(cpu_vendor, "AuthenticAMD") == 0)
                 setPQL2_AMD(size, ways);




> sysctl -a vm.stats.pagequeue
vm.stats.pagequeue.page_colors: 16
vm.stats.pagequeue.cachesize: 1024
vm.stats.pagequeue.cachenways: 16
vm.stats.pagequeue.prime1: 5
vm.stats.pagequeue.prime2: 3


-- 
Bjoern A. Zeeb				bzeeb at Zabbadoz dot NeT



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