From owner-freebsd-questions Thu Jun 27 22:40:53 2002 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 7E58937B40C for ; Thu, 27 Jun 2002 22:40:28 -0700 (PDT) Received: from www.kozubik.com (www.kozubik.com [198.78.70.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 164E043E09 for ; Thu, 27 Jun 2002 22:40:28 -0700 (PDT) (envelope-from john@kozubik.com) Received: from localhost (john@localhost) by www.kozubik.com (8.11.0/8.11.0) with ESMTP id g5S5Z9g39816; Thu, 27 Jun 2002 22:35:09 -0700 (PDT) (envelope-from john@kozubik.com) Date: Thu, 27 Jun 2002 22:35:09 -0700 (PDT) From: John Kozubik X-Sender: john@www To: Brian Astill Cc: "Greg 'groggy' Lehey" , freebsd-questions@FreeBSD.ORG Subject: Re: microuptime In-Reply-To: <200206280138.g5S1coL48161@tierzero.apana.org.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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