* Re: [PATCH] move get_idle_time , get_iowait_time to sched/core.c
[not found] <1323682263-1310-1-git-send-email-glommer@parallels.com>
@ 2011-12-23 10:08 ` Glauber Costa
2011-12-23 13:39 ` Michal Hocko
0 siblings, 1 reply; 3+ messages in thread
From: Glauber Costa @ 2011-12-23 10:08 UTC (permalink / raw)
To: Glauber Costa
Cc: linux-kernel, a.p.zijlstra, pjt, devel, Michal Hocko, Dave Jones,
Arnd Bergmann, Alexey Dobriyan, Thomas Gleixner
On 12/12/2011 01:31 PM, Glauber Costa wrote:
> In commit a25cac5198 we changed the way we calculate idle and iowait
> for /proc/stat displaying purposes. However, this same information
> is also displayed in /proc/uptime. These values can now be inconsistent.
>
> So I propose we draw both idle values from the same place. In theory,
> we only need to do it for get_idle_time(). get_iowait_time() is moved
> as well for consistency only.
>
> I moved the functions to sched/core.c so it can live among its other
> friends like nr_iowait(), etc.
>
You guys have any opinions on this ?
I see that Michal got another fix for this in stat.c already, so I'd
have to respin this one anyway. Just let me know if this is wanted
Thanks
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] move get_idle_time , get_iowait_time to sched/core.c
2011-12-23 10:08 ` [PATCH] move get_idle_time , get_iowait_time to sched/core.c Glauber Costa
@ 2011-12-23 13:39 ` Michal Hocko
2011-12-23 13:40 ` Glauber Costa
0 siblings, 1 reply; 3+ messages in thread
From: Michal Hocko @ 2011-12-23 13:39 UTC (permalink / raw)
To: Glauber Costa
Cc: linux-kernel, a.p.zijlstra, pjt, devel, Dave Jones, Arnd Bergmann,
Alexey Dobriyan, Thomas Gleixner
On Fri 23-12-11 14:08:09, Glauber Costa wrote:
> On 12/12/2011 01:31 PM, Glauber Costa wrote:
> >In commit a25cac5198 we changed the way we calculate idle and iowait
> >for /proc/stat displaying purposes. However, this same information
> >is also displayed in /proc/uptime. These values can now be inconsistent.
> >
> >So I propose we draw both idle values from the same place. In theory,
> >we only need to do it for get_idle_time(). get_iowait_time() is moved
> >as well for consistency only.
> >
> >I moved the functions to sched/core.c so it can live among its other
> >friends like nr_iowait(), etc.
> >
>
> You guys have any opinions on this ?
> I see that Michal got another fix for this in stat.c already, so I'd
> have to respin this one anyway. Just let me know if this is wanted
The last follow up fix is in Andrew's tree at the moment: procfs: do not
confuse jiffies with cputime64_t.
I don't mind moving those functions outside stat.c if it is reused.
--
Michal Hocko
SUSE Labs
SUSE LINUX s.r.o.
Lihovarska 1060/12
190 00 Praha 9
Czech Republic
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] move get_idle_time , get_iowait_time to sched/core.c
2011-12-23 13:39 ` Michal Hocko
@ 2011-12-23 13:40 ` Glauber Costa
0 siblings, 0 replies; 3+ messages in thread
From: Glauber Costa @ 2011-12-23 13:40 UTC (permalink / raw)
To: Michal Hocko
Cc: linux-kernel, a.p.zijlstra, pjt, devel, Dave Jones, Arnd Bergmann,
Alexey Dobriyan, Thomas Gleixner
On 12/23/2011 05:39 PM, Michal Hocko wrote:
> On Fri 23-12-11 14:08:09, Glauber Costa wrote:
>> On 12/12/2011 01:31 PM, Glauber Costa wrote:
>>> In commit a25cac5198 we changed the way we calculate idle and iowait
>>> for /proc/stat displaying purposes. However, this same information
>>> is also displayed in /proc/uptime. These values can now be inconsistent.
>>>
>>> So I propose we draw both idle values from the same place. In theory,
>>> we only need to do it for get_idle_time(). get_iowait_time() is moved
>>> as well for consistency only.
>>>
>>> I moved the functions to sched/core.c so it can live among its other
>>> friends like nr_iowait(), etc.
>>>
>>
>> You guys have any opinions on this ?
>> I see that Michal got another fix for this in stat.c already, so I'd
>> have to respin this one anyway. Just let me know if this is wanted
>
> The last follow up fix is in Andrew's tree at the moment: procfs: do not
> confuse jiffies with cputime64_t.
>
> I don't mind moving those functions outside stat.c if it is reused.
Well, they are not (currently). The point of this patch is precisely
this question: Should it be?
I think the values we show in /proc/uptime should be consistent with the
ones in /proc/stat, so yes.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-12-23 13:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1323682263-1310-1-git-send-email-glommer@parallels.com>
2011-12-23 10:08 ` [PATCH] move get_idle_time , get_iowait_time to sched/core.c Glauber Costa
2011-12-23 13:39 ` Michal Hocko
2011-12-23 13:40 ` Glauber Costa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox