|
I would like to programatically disable hardware prefetching.
From Optimizing Application Performance on Intel® Core™ Microarchitecture Using Hardware-Implemented Prefetchers and How to Choose between Hardware and Software Prefetch on 32-Bit Intel® Architecture...
Started by Carlos on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
For a single cpu, it demonstrates disabling prefetch for the Xeon in arch/i386/kernel/cpu/intel.c.
|
|
Hi -
I am interested in mastering prefetch-related functions such as
_mm_prefetch(...)
so when I perform operations that loop over arrays, the memory bandwidth is fully utilized. What are the best resources for learning about this?
I am doing this work...
Started by SetJmp on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
There is also an excellent paper by Ulrich Drepper.
This site contains details on gcc prefetch support including prefetch options and functions on the __builtin_prefetch built-in function in section 5.46.
|
|
Has anyone had experience using prefetch instructions for the Core 2 Duo processor?
I've been using the (standard?) prefetch set ( prefetchnta , prefetcht1 , etc) with success for a series of P4 machines, but when running the code on a Core 2 Duo it seems...
Started by darren on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Therefore, if you use prefetch cache line size.
From memory to L2; more recent implementations provide additional features to prefetch data from L2 to L1 for use with prefetch instructions) may vary between different processors.
|
Ask your Facebook Friends
|
So I'm getting a "prefetch abort" exception on our arm9 system. This system does not have an MMU, so is there anyway this could be a software problem? All the registers seem correct to me, and the code looks right (not corrupted) from the JTAG point of...
Started by Jeff on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
It simply means (list of ARM exceptions) What....
Creek for a while because I didn't realize an ARM "prefetch abort" meant the instruction prefetch, not data prefetch, and I'd just been playing with data prefetch instructions.
|
|
Newer ARM processors include the PLD and PLI instructions.
I'm writing tight inner loops (in C++) which have a non-sequential memory access pattern, but a pattern that naturally my code fully understands. I would anticipate a substantial speedup if I ...
Started by Will on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Even better....
You should be able to use inline assembly depending on the data structures involved in your loop .
If you are trying to extract truly maximum performance from these loops, than I would recommend writing the entire looping construct in assembler .
|
|
I have Large.html, which is a web page that has a lot of images and javascript on it which takes a long time to load.
From other pages (a.html, b.html) how can I use JavaScript to prefetch Large.html (and all of the elements on the page) so that I can...
Started by mp_ on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
It may still need to go out and ....
You could just load the body of the page, put it into the innerHTML of a div that has 'display: none', and wait for a bit, then make the current div have a display of none and the div with the new page becomes visible .
|
|
I get a MediaException (Prefetch error: -5) when executing the following code on a Nokia N73. It runs fine in the emulator and I have tried the same thing before on the same phone successfully. The only difference now is that I am using NetBeans to build...
Started by Ries on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Also, esp.
To prefetch the second player object, while the first one is not yet released/closed.
|
|
Hi,
I'm trying to pre-fetch some foreign key data using a linq query. A quick example to explain my problem follows:
var results = (from c in _customers from ct in _customerTypes where c.TypeId == ct.TypeId select new Customer { CustomerId = c.CustomerId...
Started by Dominic Godin on
, 3 posts
by 2 people.
Answer Snippets (Read the full thread at stackoverflow):
You can get everything from the Customer class by doing it like this:
var results = (from c ... .
The (arguably) easiest thing to do would be to create a new class that encapsulates the properties you need .
As it says, you can't construct a Customer there.
|
|
I have a distributed Java application running on 5 application servers. The servers all use the same Oracle 9i database running on a 6th machine.
The application need to prefetch a batch of 100 IDs from a sequence. It's relatively easy to do in a single...
Started by Zizzencs on
, 4 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
SQL> select so_test.nextval - 99 ....
Why not just have the sequence as increment by 100 all the time? each "nextval" gives you 100 sequence numbers to work with
SQL> create sequence so_test start with 100 increment by 100 nocache; Sequence created .
|
|
Any programmatic techniques, portable or specific to NT and Linux that get the result of number of large files loading faster? I am after a 'ahead of time', a priori, whatever you prefer to call it mechanisms that I can control in code for two OS-es in...
Started by rama-jka toti on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Alternately, a more portable option would be to simply manually do readahead... .
I don't know about NT, but one option on Linux would be to use madvise with the MADV_WILLNEED flag shortly before you actually need the next file to start reading it in early .
|