From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S268054AbUHQAt5 (ORCPT ); Mon, 16 Aug 2004 20:49:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S268056AbUHQAt5 (ORCPT ); Mon, 16 Aug 2004 20:49:57 -0400 Received: from e34.co.us.ibm.com ([32.97.110.132]:22418 "EHLO e34.co.us.ibm.com") by vger.kernel.org with ESMTP id S268054AbUHQAtw (ORCPT ); Mon, 16 Aug 2004 20:49:52 -0400 Subject: Re: boot time, process start time, and NOW time From: john stultz To: george anzinger Cc: Tim Schmielau , Andrew Morton , OGAWA Hirofumi , albert@users.sourceforge.net, lkml , voland@dmz.com.pl, nicolas.george@ens.fr, kaukasoi@elektroni.ee.tut.fi, david+powerix@blue-labs.org In-Reply-To: <41215334.7050203@mvista.com> References: <1087948634.9831.1154.camel@cube> <87smcf5zx7.fsf@devron.myhome.or.jp> <20040816124136.27646d14.akpm@osdl.org> <1092702077.2429.88.camel@cog.beaverton.ibm.com> <41215334.7050203@mvista.com> Content-Type: text/plain Message-Id: <1092703747.2429.111.camel@cog.beaverton.ibm.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-7) Date: Mon, 16 Aug 2004 17:49:08 -0700 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2004-08-16 at 17:37, George Anzinger wrote: > john stultz wrote: > > On Mon, 2004-08-16 at 16:08, Tim Schmielau wrote: > >>Simple fix: revert the patch below. > >>Complicated fix: correct process start times in fork.c (no patch provided, > >>too complicated for me to do). > > > > Hmm. While that patch fixed the uptime proc entry, I thought the issue > > was with process start times. I'm looking at fixing the start_time > > assignment in proc_pid_stat(). My suspicion is that we need to use ACTHZ > > in jiffies64_to_clock_t(). > > I really don't see how the start_time that proc_pid_stat() is producing could be > anything but a constant. The complaint is that it moves, not that it is > incorrect, right? My impression was that it was both. Regardless, your point stands, it would just be a constant. Good catch. I'll have to think about this some more. Let me look at procps to see how exactly it comes up w/ STIME. thanks -john