Date: Fri, 28 Dec 2007 03:21:38 -0500 From: "G. Stanley" <gary@vsnx.net> To: Mike Silbersack <silby@silby.com>,current@freebsd.org Subject: Re: [patch] Auto-setting hz to 100 inside QEMU/VMWare Message-ID: <20071228083918.CDB9813C442@mx1.freebsd.org> In-Reply-To: <20071228015651.X1565@odysseus.silby.com> References: <20071228015651.X1565@odysseus.silby.com>
next in thread | previous in thread | raw e-mail | index | archive | help
At 03:03 AM 12/28/2007, Mike Silbersack wrote: >When running FreeBSD inside QEMU / VMWare, one of my pet peeves is >that time is completely inaccurate. This seems to be cured by >setting kern.hz=100 (down from the default of 1000) in >/boot/loader.conf, but I'm getting sick of doing that every time I >set up a virtual box. > >So, here's a patch to have the kernel auto-detect that it's running >inside one of those two environments and automatically make that adjustment. > >If you're running FreeBSD inside any other virtual environments >(Parallels? Microsoft Virtual PC?) and can detect them via data in >kenv, I'll be happy to add them to the patch as well. > >I have only tested this patch in QEMU so far, I will test inside >VMWare tomorrow. > >If anyone could review and/or test this, it would be appreciated. I had a diff, but I lost it due to hardware crash... Anyways, I've tested your patch with VMWare and it works perfectly.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071228083918.CDB9813C442>