linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Nakajima, Jun" <jun.nakajima@intel.com>
To: "Linus Torvalds" <torvalds@osdl.org>
Cc: <linux-kernel@vger.kernel.org>,
	"Saxena, Sunil" <sunil.saxena@intel.com>,
	"Mallick, Asit K" <asit.k.mallick@intel.com>,
	"Pallipadi, Venkatesh" <venkatesh.pallipadi@intel.com>
Subject: RE: [PATCH] idle using PNI monitor/mwait
Date: Tue, 8 Jul 2003 17:35:51 -0700	[thread overview]
Message-ID: <3014AAAC8E0930438FD38EBF6DCEB5640204345B@fmsmsx407.fm.intel.com> (raw)

That's right. If we have a lot of high-contention locks in the kernel,
we need to fix the code first, to get benefits for the other
architectures. 

"mwait" granularity (64-byte, for example) is given by the cpuid
instruction, and we did not use it because 1) it's unlikely that the
other fields of the task structure are modified when it's idle, 2) the
processor needs to check the flag after mwait anyway, to avoid waking up
with a false signal caused by other break events (i.e. mwait is a hint).

Jun

> -----Original Message-----
> From: Linus Torvalds [mailto:torvalds@osdl.org]
> Sent: Tuesday, July 08, 2003 4:34 PM
> To: Nakajima, Jun
> Cc: linux-kernel@vger.kernel.org; Saxena, Sunil; Mallick, Asit K;
> Pallipadi, Venkatesh
> Subject: Re: [PATCH] idle using PNI monitor/mwait
> 
> 
> On Tue, 8 Jul 2003, Nakajima, Jun wrote:
> >
> > Attached is a patch that enables PNI (Prescott New Instructions)
> > monitor/mwait in kernel idle (opcodes are now public). Basically
MWAIT
> > is similar to hlt, but you can avoid IPI to wake up the processor
> > waiting. A write (by another processor) to the address range
specified
> > by MONITOR would wake up the processor waiting on MWAIT.
> 
> How about spinlocks? Does it make sense to make the contention code
use
> mwait too, or are the latencies too high? Not that we have a lot of
> high-contention locks any more, so maybe it doesn't much matter.
> 
> Also, wasn't there some flag to set the "mwait" granularity? I don't
see
> anything like that in the patch..
> 
> 		Linus


             reply	other threads:[~2003-07-09  0:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-09  0:35 Nakajima, Jun [this message]
2003-07-09  6:41 ` [PATCH] idle using PNI monitor/mwait Zwane Mwaikambo
  -- strict thread matches above, loose matches on Subject: below --
2003-07-10  1:17 Saxena, Sunil
2003-07-09 17:01 Mallick, Asit K
2003-07-09 16:39 Mallick, Asit K
2003-07-08 21:23 Nakajima, Jun
2003-07-08 23:34 ` Linus Torvalds
2003-07-09 10:59 ` Alan Cox

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=3014AAAC8E0930438FD38EBF6DCEB5640204345B@fmsmsx407.fm.intel.com \
    --to=jun.nakajima@intel.com \
    --cc=asit.k.mallick@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sunil.saxena@intel.com \
    --cc=torvalds@osdl.org \
    --cc=venkatesh.pallipadi@intel.com \
    /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;
as well as URLs for NNTP newsgroup(s).