O'Reilly logo

Windows® via C/C++, Fifth Edition by Christophe Nasarre, Jeffrey Richter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Memory Management on NUMA Machines

As presented in Chapter 7, CPUs on Non-Uniform Memory Access (NUMA) machines have access to memory on their own nodes as well as on other nodes. However, a CPU accessing memory on its own node is significantly faster than when a CPU accesses memory on a foreign node. By default, when a thread commits physical storage, the operating system tries to back the physical storage with RAM from the CPU’s own node to improve access time performance. Only if insufficient RAM is available will Windows use RAM from a foreign node to back the storage.

When you are calling GlobalMemoryStatusEx, the value returned through the ullAvailPhys parameter is the sum of the available memory across all nodes. Call the following function ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required