Re: [RFC] maximum latency tracking infrastructure



On Fri, 2006-08-25 at 18:26 +1000, Nick Piggin wrote:
Arjan van de Ven wrote:
Nick Piggin wrote:

Surely you would call set_acceptable_latency() *before* running such
operation that requires the given latency? And that
set_acceptable_latency
would block the caller until all CPUs are set to wake within this
latency.

That would be the API semantics I would expect, anyway.


but that means it blocks, and thus can't be used in irq context

Is that a problem? I guess it could be, but you don't want to
give a false sense of security either. Having an explicit _nosync
version may make that clear?

well the api is already split between blocking and non-blocking so in
principle that's easy. The problem is that I suspect most users will use
the non-blocking variant.

Also the "what to do" can be treacherous; it'll need a callback list
simply because many places can be using the latency values, more than
just idle. (I can see pstate code for example also using it to limit
which ones to use, and not use the ones it takes to long to get out of)

I'll investigate what it'll take to get the callback in place; for the
C-state case it's not THAT critical (after all the cpu you are running
on when making this call is not in a deep C state.. :-)

-
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/



Relevant Pages

  • [patch] voluntary-preempt-2.6.9-rc1-bk4-Q7
    ... the main change in this patch are more SMP latency fixes. ... kernel, even with CONFIG_PREEMPT enabled, didnt have any spin-nicely ... CPUs in the system. ...
    (Linux-Kernel)
  • Re: [PATCH] Fix longstanding load balancing bug in the scheduler.
    ... out the latency of a balancing operation. ... And we do tend to care about theoretical max latency ... in many other obscure paths than the scheduler. ... How about if you have N/2 CPUs with lots of stuff on runqueues? ...
    (Linux-Kernel)
  • Re: Zahl gerade oder ungerade?
    ... für aktuelle intel Core2 CPUs ... AND/OR/XOR: ... Latency: 1 Throughput 0.33 ...
    (microsoft.public.de.german.entwickler.dotnet.vb)
  • Re: [PATCH][resubmit] x86: enable preemption in delay
    ... set the mask of allowed cpus to the current cpu only; ... Things like preempt latency and irq off latency are rather easy to ...
    (Linux-Kernel)
  • Re: [patch] latency tracer, 2.6.15-rc7
    ... >> This should help in UP configurations, or in SMP configurations where ... >> it to help in cases where one of several CPUs is frequently executing ... > took ~48 hours to show up in the latency tracer. ... most old-style server workloads wouldn't notice a 10ms hit to ...
    (Linux-Kernel)