Re: Write-Combine memory




"Bob Gonder" <notbg@xxxxxxxxxxxxxxxxxxxxx> wrote in message
news:s4toh2192tu1ktiefh4stdbt0brbav0dpl@xxxxxxxxxx
Leo wrote:

Please don't cross-post.
It is against Borland's guidlines.

I wasn't aware of that.


Is it possible to mark an array as a Write-Combine memory? That is:

No.
But you should be able to mark a page of memory as such.
Allocate one or more pages of memory, marked as Write-Combine, and use
that memory for your array.

Why doesn't VirtualProtect work?


1) Write combining is enabled.
2) Cache is not updated on cache misses.

No.
Write-Combine is a cache strategy.
You can not have Write-Combine without cache turned on.

According to AMD x86-64 Architecture Programmer's Manual Volume 2:
"Write-Combining (WC)-Reads from, and writes to, WC memory are not
cacheable."
This is written several times and this can also explain the difference
between mov and maskmovq I am getting.





.



Relevant Pages

  • Re: PSQL control center crashes PSQL engine.
    ... usually eek out 1.7 GB of cache, but it really depends on other usage, ... memory on the server was just above 2GB. ... Certain versions of Windows do allow a process to allocate mroe than ... If you truly want to use all the memory in your server and you have ...
    (comp.databases.btrieve)
  • [patch 05/26] Slab allocators: Cleanup zeroing allocations
    ... * kzalloc - allocate memory. ... The memory is set to zero. ... * @cache: ...
    (Linux-Kernel)
  • Re: Cached memory never gets released
    ... Stock linux 2.4.26 kernel. ... Due to flash bug 3M of memory gets lost due to font memory getting lost ... The output of "free" cache number steadily grows. ... longer to exhaust all of system memory with the cache. ...
    (Linux-Kernel)
  • Re: Wince address space allocation
    ... In that case can i check the contents in the cache. ... the kernel within the RAM memory region specified in the MEMORY ... You do not need to do anything else to allocate cacheable memory for ... returned by virtualalloc, it remains the same as returned by normal ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Problem: Creating a raw binary string
    ... > While its true that a 64-bit cpu will move twice the data per instruction it ... > Memory bus width plays an important role here and unless it too is widened / ... You are forgetting the two levels of cache in the processor. ... The memory chips are addressed in Row col fashion. ...
    (alt.comp.lang.borland-delphi)