Is Linux really allocating memory while a program calls malloc? What are the different ways to configure the Linux kernel for memory allocation?
/proc/sys/vm/overcommit_memory variable is a way to configure the Linux kernel to simply acknowledge without actually allocating memory. We demonstrate it with a simple C program. With this config enabled, this program could able to allocate 131 thousand GB of memory, which is imposible.
Sur cette page du site, vous pouvez voir la vidéo en ligne overcommit_memory | Linux memory management | malloc | Linux free memory | virtual memory | C prog durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Command Line 31 décembre 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 72 fois et il a aimé 3 téléspectateurs. Bon visionnage!