Marcus Folkesson

Embedded Linux Artist

Linux memory overcommit

Linux memory overcommit Linux is generous in terms of memory, it will almost never fail on requests from malloc(3) with friends. What does this mean in practice and how may it be a potential issue? In short, overcommit memory means that the system will give the application so much memory it's asking for, even if the physical memory is not available. How does this work? Well, the requested memory comes with one small restriction; the application is given as much memory it demands if it not going to use it.

LDD without LDD

LDD without LDD I often meet colleagues at work who gets frustrated when they try to see the shared libraries dependencies for an ELF file and the ldd command is simply stripped out from target. (I do often strip targets :-) ) The ldd command is not a binary executable but a script that simply calls the runtime dynamic linker with a few environment variables set, and you may do the same!