cvs commit: src/sys/amd64/amd64 cpu_switch.S machdep.c

Bruce Evans bde at zeta.org.au
Wed Oct 19 22:53:21 PDT 2005


On Tue, 18 Oct 2005, John Baldwin wrote:

> On Tuesday 18 October 2005 09:44 am, Andrew Gallatin wrote:
>> It is a shame we can't find a way to use the TSC as a timecounter on
>> SMP systems.  It seems that about 40% of the context switch time is
>> spent just waiting for the PIO read of the ACPI-fast or i8254 to
>> return.
>
> You can try it by just setting the kern.timecounter.smp_tsc=1 tunable on boot.

There is no need for this.  Just set the timecounter using sysctl after
booting (and quickly switch it back if it doesn't work).

This tuneable, like most, shouldn't exist.  It may be a relic from
when the TSC wasn't put in the list of available timecounters in the
SMP case.  It is now put in the list with a negative "quaility", but
the sysctl to set the timecounter correctly not restricted by the
quality.

Bruce


More information about the cvs-all mailing list