Date: Thu, 27 Jun 2002 22:35:09 -0700 (PDT) From: John Kozubik <john@kozubik.com> To: Brian Astill <bastill@sa.apana.org.au> Cc: "Greg 'groggy' Lehey" <grog@lemis.com>, freebsd-questions@FreeBSD.ORG Subject: Re: microuptime Message-ID: <Pine.BSF.4.21.0206272228470.20228-100000@www> In-Reply-To: <200206280138.g5S1coL48161@tierzero.apana.org.au>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello, You can see all of your existing sysctl variables by executing this command: `sysctl -a | more` Further, you can set a specific sysctl variable with a command like this: `sysctl -w kern.timecounter.method=1` The appropriate place to set a sysctl variable so that it occurs every time you boot your system is /etc/sysctl.conf - simply enter one sysctl per line, in the format of: kern.timecounter.method=1 kern.timecounter.hardware=TSC and so on. By placing these definitions in /etc/sysctl.conf, not only do you ensure that they will be set every time you boot your system, but further you ensure that they are set early on during the boot process - just as the system goes into multi-user mode. This is important because the desired results of some sysctl tunings will not be achieved unless their setting precedes other events that occur during system boot. ----- John Kozubik - john@kozubik.com - http://www.kozubik.com On Fri, 28 Jun 2002, Brian Astill wrote: > The "microuptime going backwards" problem seems to be fixed by: > > > fire% sysctl kern.timecounter > > kern.timecounter.method: 0 > > kern.timecounter.hardware: i8254 > > (that's what I get, too) > > >I set it to the following and it stopped : > > > %sysctl kern.timecounter > > kern.timecounter.method: 1 > > kern.timecounter.hardware: TSC > > However, I cannot find out how to set those desirable parameters. > How is this done, please? > > > -- > Regards, > Brian > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0206272228470.20228-100000>