From: Arjan van de Ven <arjan@linux.intel.com>
To: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>,
linux-kernel@vger.kernel.org, len.brown@intel.com
Subject: Re: [RFC] maximum latency tracking infrastructure
Date: Fri, 25 Aug 2006 10:30:44 +0200 [thread overview]
Message-ID: <1156494644.3032.17.camel@laptopd505.fenrus.org> (raw)
In-Reply-To: <44EEB425.8060707@yahoo.com.au>
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.. :-)
next prev parent reply other threads:[~2006-08-25 8:31 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-24 17:41 Arjan van de Ven
2006-08-24 19:18 ` Len Brown
2006-08-24 21:08 ` Jesse Barnes
2006-08-24 21:20 ` Arjan van de Ven
2006-08-24 21:29 ` Jesse Barnes
2006-08-24 21:50 ` Andi Kleen
2006-08-25 4:54 ` Nick Piggin
2006-08-25 7:58 ` Arjan van de Ven
2006-08-25 8:26 ` Nick Piggin
2006-08-25 8:30 ` Arjan van de Ven [this message]
2006-08-24 21:52 ` Daniel Walker
2006-08-24 21:57 ` Arjan van de Ven
2006-08-24 22:16 ` Daniel Walker
2006-08-24 22:24 ` Matthew Garrett
2006-08-25 8:19 ` Arjan van de Ven
2006-08-24 22:52 ` Matt Mackall
2006-08-25 7:56 ` Arjan van de Ven
2006-08-25 14:54 ` Matt Mackall
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1156494644.3032.17.camel@laptopd505.fenrus.org \
--to=arjan@linux.intel.com \
--cc=jbarnes@virtuousgeek.org \
--cc=len.brown@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=nickpiggin@yahoo.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®