Re: boot time, process start time, and NOW time

From: john stultz
Date: Mon Aug 16 2004 - 19:52:31 EST


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


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/