Re: Question about /proc/uptime

2014-01-02 Thread Martin Schwidefsky
On Wed, 01 Jan 2014 15:21:00 -0600 Rob Landley wrote: > On 01/01/14 06:41, Martin Schwidefsky wrote: > > On Tue, 31 Dec 2013 22:17:39 -0600 > > Rob Landley wrote: > > > >> On 12/30/13 09:26, Martin Schwidefsky wrote: > >>> On Mon, 30 Dec 2013 16:11:10 +0100 > >>> Oleg Nesterov wrote: >

Re: Question about /proc/uptime

2014-01-02 Thread Martin Schwidefsky
On Wed, 01 Jan 2014 15:21:00 -0600 Rob Landley r...@landley.net wrote: On 01/01/14 06:41, Martin Schwidefsky wrote: On Tue, 31 Dec 2013 22:17:39 -0600 Rob Landley r...@landley.net wrote: On 12/30/13 09:26, Martin Schwidefsky wrote: On Mon, 30 Dec 2013 16:11:10 +0100 Oleg Nesterov

Re: Question about /proc/uptime

2014-01-01 Thread Rob Landley
On 01/01/14 06:41, Martin Schwidefsky wrote: On Tue, 31 Dec 2013 22:17:39 -0600 Rob Landley wrote: On 12/30/13 09:26, Martin Schwidefsky wrote: On Mon, 30 Dec 2013 16:11:10 +0100 Oleg Nesterov wrote: Not sure I understand... except that timekeeping_resume() does

Re: Question about /proc/uptime

2014-01-01 Thread Martin Schwidefsky
On Tue, 31 Dec 2013 22:17:39 -0600 Rob Landley wrote: > On 12/30/13 09:26, Martin Schwidefsky wrote: > > On Mon, 30 Dec 2013 16:11:10 +0100 > > Oleg Nesterov wrote: > >> Not sure I understand... except that timekeeping_resume() does > >> __timekeeping_inject_sleeptime(). > > > > Hmm, you are

Re: Question about /proc/uptime

2014-01-01 Thread Martin Schwidefsky
On Tue, 31 Dec 2013 22:17:39 -0600 Rob Landley r...@landley.net wrote: On 12/30/13 09:26, Martin Schwidefsky wrote: On Mon, 30 Dec 2013 16:11:10 +0100 Oleg Nesterov o...@redhat.com wrote: Not sure I understand... except that timekeeping_resume() does __timekeeping_inject_sleeptime().

Re: Question about /proc/uptime

2014-01-01 Thread Rob Landley
On 01/01/14 06:41, Martin Schwidefsky wrote: On Tue, 31 Dec 2013 22:17:39 -0600 Rob Landley r...@landley.net wrote: On 12/30/13 09:26, Martin Schwidefsky wrote: On Mon, 30 Dec 2013 16:11:10 +0100 Oleg Nesterov o...@redhat.com wrote: Not sure I understand... except that timekeeping_resume()

Re: Question about /proc/uptime

2013-12-31 Thread Rob Landley
On 12/30/13 09:26, Martin Schwidefsky wrote: On Mon, 30 Dec 2013 16:11:10 +0100 Oleg Nesterov wrote: Not sure I understand... except that timekeeping_resume() does __timekeeping_inject_sleeptime(). Hmm, you are right. The sleeptime is added to the monotonic boottime. So the first value of

Re: Question about /proc/uptime

2013-12-31 Thread Rob Landley
On 12/30/13 09:26, Martin Schwidefsky wrote: On Mon, 30 Dec 2013 16:11:10 +0100 Oleg Nesterov o...@redhat.com wrote: Not sure I understand... except that timekeeping_resume() does __timekeeping_inject_sleeptime(). Hmm, you are right. The sleeptime is added to the monotonic boottime. So the

Re: Question about /proc/uptime

2013-12-30 Thread Martin Schwidefsky
On Mon, 30 Dec 2013 16:11:10 +0100 Oleg Nesterov wrote: > On 12/30, Martin Schwidefsky wrote: > < > > On Fri, 27 Dec 2013 15:45:04 +0100 > > Oleg Nesterov wrote: > > > > > Add Frederic, I am not sure I understand this correctly. > > > > > > On 12/25, Rob Landley wrote: > > > > > > > > There are

Re: Question about /proc/uptime

2013-12-30 Thread Oleg Nesterov
On 12/30, Martin Schwidefsky wrote: < > On Fri, 27 Dec 2013 15:45:04 +0100 > Oleg Nesterov wrote: > > > Add Frederic, I am not sure I understand this correctly. > > > > On 12/25, Rob Landley wrote: > > > > > > There are two values here, the first is seconds since boot time (which > > > is just

Re: Question about /proc/uptime

2013-12-30 Thread Martin Schwidefsky
On Fri, 27 Dec 2013 15:45:04 +0100 Oleg Nesterov wrote: > Add Frederic, I am not sure I understand this correctly. > > On 12/25, Rob Landley wrote: > > > > There are two values here, the first is seconds since boot time (which > > is just elapsed time; at one point it was ajusted for suspend

Re: Question about /proc/uptime

2013-12-30 Thread Martin Schwidefsky
On Fri, 27 Dec 2013 15:45:04 +0100 Oleg Nesterov o...@redhat.com wrote: Add Frederic, I am not sure I understand this correctly. On 12/25, Rob Landley wrote: There are two values here, the first is seconds since boot time (which is just elapsed time; at one point it was ajusted for

Re: Question about /proc/uptime

2013-12-30 Thread Oleg Nesterov
On 12/30, Martin Schwidefsky wrote: On Fri, 27 Dec 2013 15:45:04 +0100 Oleg Nesterov o...@redhat.com wrote: Add Frederic, I am not sure I understand this correctly. On 12/25, Rob Landley wrote: There are two values here, the first is seconds since boot time (which is just

Re: Question about /proc/uptime

2013-12-30 Thread Martin Schwidefsky
On Mon, 30 Dec 2013 16:11:10 +0100 Oleg Nesterov o...@redhat.com wrote: On 12/30, Martin Schwidefsky wrote: On Fri, 27 Dec 2013 15:45:04 +0100 Oleg Nesterov o...@redhat.com wrote: Add Frederic, I am not sure I understand this correctly. On 12/25, Rob Landley wrote: There

Re: Question about /proc/uptime

2013-12-27 Thread Oleg Nesterov
Add Frederic, I am not sure I understand this correctly. On 12/25, Rob Landley wrote: > > There are two values here, the first is seconds since boot time (which > is just elapsed time; at one point it was ajusted for suspend and that > was revered as confusing). Hmm, uptime_proc_show() still

Re: Question about /proc/uptime

2013-12-27 Thread Oleg Nesterov
Add Frederic, I am not sure I understand this correctly. On 12/25, Rob Landley wrote: There are two values here, the first is seconds since boot time (which is just elapsed time; at one point it was ajusted for suspend and that was revered as confusing). Hmm, uptime_proc_show() still uses

Question about /proc/uptime

2013-12-25 Thread Rob Landley
There are two values here, the first is seconds since boot time (which is just elapsed time; at one point it was ajusted for suspend and that was revered as confusing). The second value isn't documented but looking at fs/proc/uptime.c I think it's idle time? Except, if yo uadd up the idle

Question about /proc/uptime

2013-12-25 Thread Rob Landley
There are two values here, the first is seconds since boot time (which is just elapsed time; at one point it was ajusted for suspend and that was revered as confusing). The second value isn't documented but looking at fs/proc/uptime.c I think it's idle time? Except, if yo uadd up the idle