From owner-freebsd-questions@FreeBSD.ORG Mon May 25 06:34:00 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 33A391065670 for ; Mon, 25 May 2009 06:34:00 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: from mail-qy0-f105.google.com (mail-qy0-f105.google.com [209.85.221.105]) by mx1.freebsd.org (Postfix) with ESMTP id DED0D8FC32 for ; Mon, 25 May 2009 06:33:59 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: by qyk3 with SMTP id 3so4402613qyk.3 for ; Sun, 24 May 2009 23:33:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=AHEgf4HydGYfq6Hel4c0J86PBV7ef+N9mxQ1pT9B6ww=; b=V40MTibN8bQB/tGyCNjf9Qp2fE5j8ZVHBZvWvw0n4FwgyKBc64b2nWRzXR+A/nm5yQ hWmWeah9RwMCLk//vuGfLO15+JmRJ/QirtTqrjpK0Xmo+IkQrP8XAc85iqyvvHoXweLs rSMju/Y7HYrI+foQI+Cwg7qIQwNZmR+3v/McU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=IXFSeEjB7MAMceRhD0pVgHPw5iHFpQ7XV9FLCIhHt7Fl0ErpRD3auIQanPzl/dW+R2 sobQWHYrjglaAC2Q6DNjOcAFZLwgcPbxA3Xqh+PMoQnKA86FViqSNWh3MIDbo3d4PiFk L8QD0qLadlclbKIi8GCFjDqmoEYoN+D/QTo+k= MIME-Version: 1.0 Received: by 10.220.97.210 with SMTP id m18mr5121073vcn.50.1243233239188; Sun, 24 May 2009 23:33:59 -0700 (PDT) In-Reply-To: <26face530905242259s75b94c92s19abf50933979a79@mail.gmail.com> References: <26face530905242259s75b94c92s19abf50933979a79@mail.gmail.com> From: Tim Judd Date: Mon, 25 May 2009 00:33:39 -0600 Message-ID: To: Kelly Jones Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: ps says process has been running for 49710 days X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 May 2009 06:34:00 -0000 On Sun, May 24, 2009 at 11:59 PM, Kelly Jones wrote: > I use "/bin/ps -www -ax -eo 'pid etime args'" to see how long a > process has been running. This usually works fine, but I sometimes see > things like: > > 17469 49710-06:28:15 /usr/bin/fly -q -i [...] > > indicating a process has been running for 49710+ days. > > I originally thought that was the time from the Unix epoch, but it's > actually near 13 Dec 1901. > > I can easily workaround this, but was curious if anyone knew more about it? > I use PC Engines ALIX boards who don't have a CMOS battery to keep hardware clock on times there is no power on the board. Because of that you have to set the clock on bootup by some means such as ntpd or ntpdate. If a shell is currently open when the time is set, you get some weird numbers too. So my question to you is if this is a board that has the same hardware problems? Is it a bad RTC that prevents accurate timekeeping? need to tune kern.clockrate? tune kern.timecounter.choice? Good luck.