Skip to Main Content
Mastering Embedded Linux Programming - Third Edition
book

Mastering Embedded Linux Programming - Third Edition

by Frank Vasquez, Chris Simmonds
May 2021
Intermediate to advanced content levelIntermediate to advanced
758 pages
16h 17m
English
Packt Publishing
Content preview from Mastering Embedded Linux Programming - Third Edition

Chapter 18: Managing Memory

This chapter covers issues related to memory management, which is an important topic for any Linux system but especially for embedded Linux, where system memory is usually in limited supply. After a brief refresher on virtual memory, I will show you how to measure memory usage, how to detect problems with memory allocation, including memory leaks, and what happens when you run out of memory. You will have to understand the tools that are available, from simple tools such as free and top, to complex ones such as mtrace and Valgrind.

We will learn the difference between kernel and user space memory, and how the kernel maps physical pages of memory to the address space of a process. Then we will locate and read the memory ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Embedded Linux Programming - Second Edition

Mastering Embedded Linux Programming - Second Edition

Chris Simmonds
Understanding the Linux Kernel, 3rd Edition

Understanding the Linux Kernel, 3rd Edition

Daniel P. Bovet, Marco Cesati

Publisher Resources

ISBN: 9781789530384Supplemental Content