Re: CPU's cache in mind




Mike King wrote:
> I have a very simple program that I want to optimize for speed. What are
> the do's and dont's for writing with the CPU's cache in mind? This program
> uses less than <1K for RAM but it can easily take hours to run to find the
> solution. I would like for this to run totally out of the cache to optimize
> for speed.

Trying to discover new prime numbers???

If your app is file I/O intensive and you have plenty of main memory to
spare, try downloading Microsoft's Ramdisk sample driver and put your
data files in that space.

Nathan.

.



Relevant Pages

  • RE: Disk vs Tape scenario
    ... With the storage available for me to test it is hard to eliminate cache ... Theoretically a volume using RAID-10 on 8x10K RPM disks can handle ... A write SSCH rate of 475/sec would push the RAID-10 parity group to 950 ... I just tested with two IEBDG jobs writing 20 million 80 byte records ...
    (bit.listserv.ibm-main)
  • Re: Cache questions
    ... > sets and the MMX and XMM registers where possible. ... > I'm writing a routine which will need to read from a source bitmap ... especially when it causes cache misses. ... > some stack space, and I could write one of my local variables with, ...
    (comp.lang.asm.x86)
  • Re: need fastest way to write 2gig array to disk file
    ... Eric Taylor wrote: ... > writes seem to go directly to the cache and so a 2 gig output ... > On another similar system, with scsi disks, once the program ... (when writing to the cache, ...
    (comp.os.linux.development.apps)
  • Re: [opensuse] Hard disc questions Slight OT
    ... speed than outer radius. ... but they pack more data onto the outer tracks than ... Since you are writing to a file, you don't have anyway to say what ... Kernel cache can be even bigger. ...
    (SuSE)
  • Cache questions
    ... sets and the MMX and XMM registers where possible. ... I'm writing a routine which will need to read from a source bitmap ... But actually my knowledge of how the L1/L2 cache works is a little ... my local variables to memory, what's the best way to do that? ...
    (comp.lang.asm.x86)