From owner-freebsd-current@FreeBSD.ORG Wed Jun 16 09:26:42 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 896C616A4CE for ; Wed, 16 Jun 2004 09:26:42 +0000 (GMT) Received: from mailout01.sul.t-online.com (mailout01.sul.t-online.com [194.25.134.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2BB3443D39 for ; Wed, 16 Jun 2004 09:26:42 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from fwd03.aul.t-online.de by mailout01.sul.t-online.com with smtp id 1BaWgP-0001bF-02; Wed, 16 Jun 2004 11:26:13 +0200 Received: from Andro-Beta.Leidinger.net (E1VNeMZ6YetXAZrORB5Ji1KSRdpCuLNWSnW9WpfW7KFVhpXVGXsK8T@[217.229.221.168]) by fmrl03.sul.t-online.com with esmtp id 1BaWgH-0iYCH20; Wed, 16 Jun 2004 11:26:05 +0200 Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) i5G9QJBv042046 for ; Wed, 16 Jun 2004 11:26:19 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Wed, 16 Jun 2004 11:27:58 +0200 From: Alexander Leidinger To: current@freebsd.org Message-Id: <20040616112758.46677e25@Magellan.Leidinger.net> X-Mailer: Sylpheed version 0.9.11claws (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Seen: false X-ID: E1VNeMZ6YetXAZrORB5Ji1KSRdpCuLNWSnW9WpfW7KFVhpXVGXsK8T@t-dialin.net Subject: How to determine the L2 cache size on non-AMD CPUs (automatic page queue color tuning)? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jun 2004 09:26:42 -0000 Hi, I'm working with Alan and Chad David on automatic tuning of the number of colors for the page queue. For AMD CPUs (including amd64, but not tested) we already have code in identcpu.c to determine the size of the L2 cache and its associativity. Now I need to know how to determine those properties on at least some Intel CPUs (e.g. P3 & P4). Since Intel has a lot of manuals and everyone contains a lot of pages, I decided to first ask here if someone can give me a pointer please (or working code). For those interested to try the actual version, it's at http://www.leidinger.net/FreeBSD/current-patches/pq.diff I'm already using this patch on my desktop system since some days, so it's not very likely it will start WW3 or something like this if you give it a try. Patches for our other architectures are welcome too offcourse. Bye, Alexander. -- I'm available to get hired (preferred in .lu). http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7