From owner-freebsd-questions@FreeBSD.ORG Wed Feb 1 00:00:20 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F358316A420 for ; Wed, 1 Feb 2006 00:00:19 +0000 (GMT) (envelope-from hakmi@rogers.com) Received: from smtp100.rog.mail.re2.yahoo.com (smtp100.rog.mail.re2.yahoo.com [206.190.36.78]) by mx1.FreeBSD.org (Postfix) with SMTP id 7075343D48 for ; Wed, 1 Feb 2006 00:00:19 +0000 (GMT) (envelope-from hakmi@rogers.com) Received: (qmail 50422 invoked from network); 1 Feb 2006 00:00:18 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rogers.com; h=Received:From:To:Subject:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Mailer:In-Reply-To:X-MimeOLE:Thread-Index; b=w+egCEIXTCVxEmHkWT+cL8vF2JDnQp88S9bY2SvOZRX5BY8cbIzi1tiAgHtiLQUdfc/K0FXk/oWyHqFqr/65FIPF2bwJLUYmaeq4fdekn25Aq3AnRQEo5iHnGXwRbgvdgQSvbt8PvIgelMQOghGfzWsi+UOjcWXrBmA/8HiaHng= ; Received: from unknown (HELO tamouh) (hakmi@rogers.com@70.27.160.99 with login) by smtp100.rog.mail.re2.yahoo.com with SMTP; 1 Feb 2006 00:00:18 -0000 From: "Tamouh H." To: "'FreeBSD'" Date: Tue, 31 Jan 2006 19:03:23 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook, Build 11.0.6353 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Thread-Index: AcYmaCjSwv3F6SENS3mvm3YydrcYBQAWeWDQ Message-Id: <20060201000019.7075343D48@mx1.FreeBSD.org> Subject: RE: CPU Frequency on FreeBSD 5.4 and MSVS 2005 R2 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2006 00:00:20 -0000 =20 > > I've been able to run couple of successful tests installing=20 > FreeBSD 4.x and 5.x on Microsoft Virtual Server 2005 ,=20 > however, I've noticed for some reason FreeBSD is not=20 > detecting the actual CPU speed: > > > > ------------------- > > FreeBSD 5.4-STABLE #0: Mon Jan 30 22:32:31 EST 2006 > > msupport@freebsd.mssitename.com:/usr/obj/usr/src/sys/INTERNDC > > Timecounter "i8254" frequency 1193182 Hz quality 0 > > > > CPU: Intel Pentium III Xeon (593.19-MHz 686-class CPU) > > Origin =3D "GenuineIntel" Id =3D 0x6a4 Stepping =3D 4 > > =20 > >=20 > = Features=3D0x380a97b > SE> > > > > real memory =3D 824115200 (785 MB) > > avail memory =3D 796700672 (759 MB) > > npx0: on motherboard > > npx0: INT 16 interface > > acpi0: on motherboard > > acpi0: Power Button (fixed) > > Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000 > > ------------ > > > > The frequency should be 900MHz. The BIOS does not state CPU=20 > frequency, nor the boot sequence. > > > > In fact, if I reboot the FreeBSD virtual machine, the=20 > frequency would be different (sometimes 460MHz , others=20 > 550MHz...etc). I think this is causing a considerable=20 > degradation in the FreeBSD speed. > > > > Any suggestions in this regard ? MSFT doesn't officially=20 > support FreeBSD, but I'm aware they support Linux on their=20 > virtual server. > > >=20 > It's typical for the cpu speed to very inside a virtual=20 > machine, VMware does this all the time, typically it's 0 ~=20 > 100MHz off, but yours is way off... I did know the answer to=20 > this question but don't remember, sorry. try a google search=20 > for VMware and cpu speed or frequency. I have been able to fix issues with the time counter by adding disabling device apic and adding these lines: options SYSVSHM options SYSVMSG options CPU_DISABLE_CMPXCHG device cpufreq However, the issue with the CPU speed not picked up properly is still = there: freebsd# sysctl hw.clockrate hw.clockrate: 486 Any other options I can play with to change the CPU frequency ? Thanks Tamouh