Understanding Anonymous Inode 0 Entries in /proc/pid/maps for Memory Usage in Embedded Linux

I'm investigating memory usage in my embedded Linux application using /proc/pid/maps. I'm confused by the entries with anonymous inode 0 in the perms column in particular. Seem to be some of the larger memory segments. Take a look :
...
addr end perms offset dev id size flags name
...
f0000000-f0fffffff rw-p 0 0 0 1048576 anonvma [heap]
...
...
addr end perms offset dev id size flags name
...
f0000000-f0fffffff rw-p 0 0 0 1048576 anonvma [heap]
...
What does anonymous inode 0 entries mean? How does it contribute to my application's memory usage? @Middleware & OS
5 Replies
Enthernet Code
Hello @Marvee Amasi, In the /proc/pid/maps file, the anonymous inode 0 entry represents memory mappings that are not associated with any file on the filesystem. These mappings are typically used for various purposes, such as the heap, stack, and other dynamically allocated memory in your application.
Marvee Amasi
Marvee Amasi3w ago
Yh thanks man @Enthernet Code since anonymous memory isn't associated with files, does that mean it has less impact on storage space compared to file-based memory usage? Cus I'm mainly concerned about the application's overall memory footprint on my embedded device.
Enthernet Code
Yes @Marvee Amasi as it only have impact on the Ram only
Marvee Amasi
Marvee Amasi3w ago
That makes much sense now
Enthernet Code
Yea it's just limited to the Ran resources required by the application runtime
Want results from more Discord servers?
Add your server
More Posts
How to Correctly Calibrate a Load Cell Using HX711 Library for Accurate Weight Measurements?Hello everyone, I am trying to calibrate a load cell to obtain the correct weight. I followed the inDIY haptic SmartKnob: BLDC motor + round LCDThis innovative input device, SmartKnob, is an **open-source** input device with software-configurabHow to Implement OTA Updates for ESP32 with FreeRTOS on Google Cloud IoT Core?@Middleware & OS Hello guys am interested in `over the air` (OTA) firmware update of an ESP32 microHow to Identify and Resolve Latency Spikes in a Linux GPIO Application Using Preempt_rt Kernel PatchHi guys, during a discussion yesterday, my colleague and I were exploring ways to detect and solve lAre there alternatives to system() that might be more performant for CGI scripts on embedded Linux?I'm facing a performance issue with the system() call in C on my embedded Linux system. The command What exactly do inner and outer cache policies refer to?Hey guys @Middleware & OS I am trying to develop my own RTOS kernel for a Cortex-M7 STM32F746 DiscoDeveloping a smart thermostat device using Android Things OS@Middleware & OS Hey guys, I'm developing a smart thermostat device using Android Things OS. I woulDeveloping automotive test systems with STM32 Nucleo devices (like Nucleo144) using RTOSI've been working with STM32 Nucleo boards (mainly Nucleo144) for basic projects using CubeIDE. Now How to Keep Spring Boot App Running After Closing PuTTY Session Without Using a Linux Service?Hi Everyone, I'm running a Spring Boot application with an embedded Tomcat server deployed as an exeIs it possible to compile Busybox directly into the initramfs during the kernel build process?@Middleware & OS I'm working on an embedded Linux system and want to use Busybox for its small foot