What Every Programmer Should Know About Memory

  • Ulrich Drepper
ORKG logo Add to ORKG
Publication date
January 2007
Publisher
Red Hat, Inc

Abstract

As CPU cores become both faster and more numerous, the limiting factor for most programs is now, and will be for some time, memory access. Hardware designers have come up with ever more sophisticated memory handling and acceleration techniques–such as CPU caches–but these cannot work optimally without some help from the programmer. Unfortunately, neither the structure nor the cost of using the memory subsystem of a computer or the caches on CPUs is well understood by most programmers. This paper explains the structure of memory subsystems in use on modern commodity hardware, illustrating why CPU caches were developed, how they work, and what programs should do to achieve optimal performance by utilizing them

Extracted data

Related items

Memory Hierarchy
  • Santosh S Padwal
  • Ashish P Duthate
  • Shivkumar Vishnupurikar
November 2015

Computer memory is organized into a hierarchy. At the highest level are the processor registers, nex...

Analysis of Cache Memory and its Importance in Processor Performance
  • Prajwal K P Bhat
  • K B Ramesh
July 2023

Cache is a small, high-speed buffer memory between the CPU and the primary unit is a hardware compon...

Research Paper on Cache Memory
  • Pooja Agarwal
  • Prerna Mangla
  • Preeti Kumari
December 2016

Cache memory is a memory which is used by the central processing unit in a computer to reduce the bu...

We use cookies to provide a better user experience.