Linux Embedded

Le blog des technologies libres et embarquées

Mois : janvier 2020

Overcommit memory in Linux

On Linux systems (including real time ones with PREEMPT-RT), C programs allocates memory using the system libc, usually using malloc(). On modern systems, the dynamic memory allocation uses the principle of overcommit. This is based on MMU and the interruption generated when accessing non-mapped memory (or mapped memory with wrong flags, like write on read-only page). When this principle is applied (not…