Re: Reading EeePC900 battery info causes stalls

From: Sitsofe Wheeler
Date: Sat Sep 20 2008 - 19:18:56 EST


Steven Rostedt wrote:
On Sat, 20 Sep 2008, Sitsofe Wheeler wrote:

Thanks - this made the wakeup tracer appear a you said. I have put two wakeup
traces up:

http://sucs.org/~sits/test/eeepc-debug/20080920/latency_trace.txt.gz
http://sucs.org/~sits/test/eeepc-debug/20080920/trace.txt.gz
(each file is around 6Mbytes uncompressed)

Here's a small extract of latency_trace.txt:

# tracer: wakeup
#
wakeup latency trace v1.1.5 on 2.6.27-rc6skw-dirty
--------------------------------------------------------------------
latency: 3232905 us, #65620/6180619, CPU#0 | (M:desktop VP:0, KP:0, SP:0

Peter, these times are crazy, mainly due to the cpu_clock. He probably wants to use the sched_clock. Below is a patch to use it instead.

Sitsofe, I notice that the trace states "desktop". This means that you
are running with CONFIG_PREEMPT_VOLUNTARY. You want CONFIG_PREEMPT.

Dagnabit I keep confusing people. This was actually intentional because I wanted to know whether the latency I was seeing should have been present in a non-preempt (but voluntary) kernel. You can see the subject at that start of this thread: http://tinyurl.com/4akxa5 (How how latent should non-preemptive scheduling be?). I'm not running a sound studio where I need the lowest possible latency at all costs. Further my current understanding is that the desktop distros don't tend to ship "regular desktop kernels" with preemption (I know Ubuntu 8.04 and Fedora 9 didn't).

Basically I have the following queries: Do you have to have preemption on if you are listening to music (without noticeable skips) and playing the odd game (without noticeable pauses) on a desktop? What's the allowed highest latency going to be over a few minutes in such kernels? Is it simply the case that if it's a non-preemptive kernel latency no longer matters?

Just for the record I just tested a preempt kernel I had lying around and the speakter-test -b75000 while looking at battery did not stall. However latencytop still reported a "waiting for cpu" value of 75ms.

[...]
Is it intentional that the last event has a time earlier closer to that of the
first event?


Change the config, and see what you get with this patch:

I'll see if I can test the patch tomorrow. Does the config change also have to be made or the timestamps to be "narrower"?

--
Sitsofe | http://sucs.org/~sits/
--
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/