[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <1176098054.6355.100.camel@Homer.simpson.net>
Date: Mon, 09 Apr 2007 07:54:14 +0200
From: Mike Galbraith <efault@....de>
To: Dmitry Adamushko <dmitry.adamushko@...il.com>
Cc: Linux Kernel <linux-kernel@...r.kernel.org>
Subject: Re: SD scheduler testing hitch
On Mon, 2007-04-09 at 02:23 +0200, Dmitry Adamushko wrote:
> > [...]
> > Well, it's a late hour, so maybe I'm missing something... but it does
> > look to be HZ and "will run" time interval related issue. Like
> > described in (*). Or maybe we both observe similar situations but have
> > different reasons behind them.
>
> I meant that account_user_time() is also called from timer_ISR ->
> update_process_times() like scheduler_tick(). So if task's running
> intervals are shorter than 1/HZ, it's not always accounted --> so cpu%
> may be wrong for such a task...
I think you're right wrt percentages, and that's making accurate
measurement of SD fairness difficult. However, total runtime for user
tasks should be pretty accurate for kernels that use nanoseconds,
because they're added every time a tasks passes through schedule().
BTW, the aberration I noticed with my unverified "testcase" does _seem_
to be repeatable here. Once behavior changes, after a reboot the
repeatability returns. I have no idea what's going on, but something is
sure fishy.
-Mike
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists