mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Bulent Abali" <abali@us.ibm.com>
To: linux-kernel@vger.kernel.org
Cc: abali@us.ibm.com
Subject: Pentium SSE prefetcht0 instruction... How do you make it work
Date: Thu, 27 Sep 2001 14:40:55 -0400	[thread overview]
Message-ID: <OF3A810D97.1605796C-ON85256AD4.0065EDD2@pok.ibm.com> (raw)

I have a system with a large external L3 cache.   Uses Pentium III
Coppermine (stepping 3) processor.   L3 block size is relatively long.  I
am trying to increase the L3 performance by prefetching L3 lines.  I
thought prefetcht0, t1, t2, nta instructions may help.  These instructions
prefetch L1/L2 lines in to the processor therefore they should prefetch L3
as well.   However I see no benefit.  It is as if prefetch never make it to
the front side bus.  I took the example of arch/i386/lib/mmx.c to implement
the asm level routines.    Perhaps I am overlooking something.  I'd
appreciate any suggestions.   /Bulent

//This should prefetch an L2 line at addr (hence L3 line prefetch)
inline void L3_prefetch (char * addr)
{
     asm volatile("prefetcht1 %0" :: "m" (addr));
}



             reply	other threads:[~2001-09-27 18:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-27 18:40 Bulent Abali [this message]
2001-09-27 18:43 ` Tony Hagale
2001-09-27 19:55   ` Robert Love
2001-09-27 19:54 ` Robert Love
2001-09-27 20:09 Bulent Abali

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=OF3A810D97.1605796C-ON85256AD4.0065EDD2@pok.ibm.com \
    --to=abali@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    /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®