Svashasan Logo
Simulated data

Automotive Performance Metrics · Resource metric

Memory Footprint

Also known as memory usage, RAM usage, resident set size, RSS, PSS, peak memory

IntermediateSource-checked · awaiting technical reviewLast reviewed 6 December 2026

Memory footprint is the amount of memory a program or model occupies while running, such as its resident RAM and its accelerator (device) memory. It must be reported with a definition, because tools count shared pages, caches and device allocations differently.

Explanation

On Linux, /proc/<pid>/smaps gives per-mapping figures. Rss (resident set size) counts pages currently in RAM, including pages shared with other processes, so summing Rss across processes over-counts. Pss (proportional set size) divides each shared page by the number of processes sharing it: a process with 1,000 private pages and 1,000 pages shared with one other process has a Pss of 1,500 pages. /proc/meminfo's MemAvailable estimates how much memory new applications can use without swapping.

For neural networks, device memory is often the binding constraint. TensorRT notes that engine size roughly approximates the device memory needed for weights, and each execution context adds memory for activations and scratch space. During engine building, the workspace defaults to the full device memory unless limited, and the host typically holds at least two copies of the weights.

On SoCs where CPU and GPU share DRAM, host and device figures draw on the same pool. Report peak as well as steady-state values, and say whether figures are per process, per model or system-wide.

How it works

Record baseline memory, start the application, run the workload to steady state, and capture peak and steady values: per-process Pss or Rss from smaps, system MemAvailable from meminfo, and device allocations from the accelerator runtime or monitoring tools. Repeat across model variants (FP32, FP16, INT8) and batch sizes to see what drives the footprint.

Automotive applications

  • Fitting multiple networks on one SoC
  • Choosing precision and batch size
  • Detecting memory leaks in long runs
  • Budgeting memory between partitions or virtual machines

Example

Two processes each show 900 MB Rss, of which 600 MB is a shared library and model mapping. Each has a Pss of 600 MB, so together they occupy about 1.2 GB rather than 1.8 GB, which decides whether a third network fits on the ECU.

An illustrative example: any figures in it are worked numbers, not measurements.

References

  1. The /proc Filesystem (opens in a new tab)

    The Linux Kernel documentation (kernel.org) · Project documentation · /proc/<pid>/smaps (Rss, Pss); /proc/meminfo (MemAvailable) · retrieved 6 December 2026

  2. How TensorRT Works (opens in a new tab)

    NVIDIA TensorRT documentation · Manufacturer documentation · Memory: The Build Phase; The Runtime Phase · retrieved 6 December 2026

Definitions are original summaries. Standards text is not reproduced; follow the links for the official publications.