Why does this Rust program leak memory?

Publicado el: 01 enero 1970
en el canal de: fasterthanlime
63,536
2.2k

Follow me on Mastodon: https://hachyderm.io/@fasterthanlime
Support my work: https://fasterthanli.me/donate

Thanks to Omer from Egypt for submitting this question: https://github.com/mariocynicys/mem-hog
Submit your own questions: https://fasterthanli.me/submit

Making our own executable packer: https://fasterthanli.me/series/making...

Contents
00:00 What does the program do?
04:35 Memory usage, Vec, and jemalloc
06:18 How does malloc even work?
07:22 Visualizing allocations with memusage
11:14 Where is the heap? /proc/PID/maps
14:24 Virtual memory vs RSS
16:00 Tracing syscalls with strace
19:50 Virtual memory vs physical memory
20:50 The madvise syscall
22:31 What's technique 2 doing?
23:37 Iterator size hints
24:56 What's technique 3 doing?
30:31 Mystery solved
34:53 Thanks & outro


En esta página del sitio puede ver el video en línea Why does this Rust program leak memory? de Duración hora minuto segunda en buena calidad , que subió el usuario fasterthanlime 01 enero 1970, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 63,536 veces y le gustó 2.2 mil a los espectadores. Disfruta viendo!