From: "Mallick, Asit K" <asit.k.mallick@intel.com>
To: "Nakajima, Jun" <jun.nakajima@intel.com>,
"Linus Torvalds" <torvalds@osdl.org>
Cc: <linux-kernel@vger.kernel.org>,
"Saxena, Sunil" <sunil.saxena@intel.com>,
"Pallipadi, Venkatesh" <venkatesh.pallipadi@intel.com>
Subject: RE: [PATCH] idle using PNI monitor/mwait
Date: Wed, 9 Jul 2003 10:01:27 -0700 [thread overview]
Message-ID: <DC675A50D067E045B80AAEDCBD2648BD02B02E28@fmsmsx408.fm.intel.com> (raw)
Linus,
We are analyzing the performance of use of mwait in contention codes. We
do not have all the data yet and will let you know the benefit of use of
mwait in contention code.
Thanks,
Asit
> -----Original Message-----
> From: Nakajima, Jun
> Sent: Tuesday, July 08, 2003 5:36 PM
> To: 'Linus Torvalds'
> Cc: linux-kernel@vger.kernel.org; Saxena, Sunil; Mallick,
> Asit K; Pallipadi, Venkatesh
> Subject: RE: [PATCH] idle using PNI monitor/mwait
>
>
> 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
>
>
next reply other threads:[~2003-07-09 16:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-09 17:01 Mallick, Asit K [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-07-10 1:17 Saxena, Sunil
2003-07-09 16:39 Mallick, Asit K
2003-07-09 0:35 Nakajima, Jun
2003-07-09 6:41 ` Zwane Mwaikambo
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=DC675A50D067E045B80AAEDCBD2648BD02B02E28@fmsmsx408.fm.intel.com \
--to=asit.k.mallick@intel.com \
--cc=jun.nakajima@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
all inboxes | Powered by JetHome®