Date: Tue, 31 Jan 2006 19:03:23 -0500 From: "Tamouh H." <hakmi@rogers.com> To: "'FreeBSD'" <freebsd-questions@freebsd.org> Subject: RE: CPU Frequency on FreeBSD 5.4 and MSVS 2005 R2 Message-ID: <20060201000019.7075343D48@mx1.FreeBSD.org> In-Reply-To: <ef10de9a0601310511j11f40cads7db7a1a819d6b344@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
=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<FPU,VME,PSE,TSC,MSR,PAE,CX8,SEP,PGE,CMOV,MMX,FXSR,S > > SE> > > > > real memory =3D 824115200 (785 MB) > > avail memory =3D 796700672 (759 MB) > > npx0: <math processor> on motherboard > > npx0: INT 16 interface > > acpi0: <A M I OEMRSDT> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060201000019.7075343D48>