Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Nov 1998 09:52:42 +0100
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        Kevin Day <toasty@home.dragondata.com>
Cc:        current@FreeBSD.ORG
Subject:   Re: MediaGX and calcru: negative time 
Message-ID:  <26036.911292762@critter.freebsd.dk>
In-Reply-To: Your message of "Mon, 16 Nov 1998 17:11:54 CST." <199811162311.RAA09337@home.dragondata.com> 

next in thread | previous in thread | raw e-mail | index | archive | help

>> FreeBSD 2.2.7-RELEASE #0: Wed Oct 21 16:22:35 CDT 1998
>>     devel@kevin1.touchmaster:/usr/src/sys/compile/DEVEL
>> CPU: Cyrix GXm (0.00-MHz 586-class CPU)
>>   Origin = "CyrixInstead"  Id = 0x540  DIR=0x3346  Stepping=3  Revision=3
>> real memory  = 63963136 (62464K bytes)
>> avail memory = 60252160 (58840K bytes)
>
>FreeBSD 3.0-RELEASE #0: Mon Nov 16 16:10:02 CST 1998
>    root@kevin1.touchmaster:/usr/src/sys/compile/DEVEL
>Timecounter "i8254"  frequency 1193182 Hz  cost 40336 ns
>Timecounter "TSC"  frequency 20172892 Hz  cost 180 ns
>CPU: Cyrix GXm (20.17-MHz 586-class CPU)
>  Origin = "CyrixInstead"  Id = 0x540  Stepping=0  DIR=0x3346
>  Features=0x808131<FPU,TSC,MSR,CX8,CMOV,MMX>
>real memory  = 63963136 (62464K bytes)
>avail memory = 60243968 (58832K bytes)

>According to date, i'm running about 15-30x the speed I should be.
>
>Has anyone else reported this for a GXm?

This is because the speed of your TSC counter is WAY wrong.

If you know what frequency it should be,
	sysctl -w kern.timecounter.frequency=XXXXXX
where XXXXXX is that frequency in Hz.

Even better yet, try to find out why the frequency is so wrong
in sys/isa/clock.c

--
Poul-Henning Kamp             FreeBSD coreteam member
phk@FreeBSD.ORG               "Real hackers run -current on their laptop."
"ttyv0" -- What UNIX calls a $20K state-of-the-art, 3D, hi-res color terminal

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?26036.911292762>