- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Why does this Rust program leak memory?
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-our-own-executable-packer
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
Видео Why does this Rust program leak memory? канала 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-our-own-executable-packer
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
Видео Why does this Rust program leak memory? канала fasterthanlime
Комментарии отсутствуют
Информация о видео
23 февраля 2023 г. 14:30:08
00:35:24
Другие видео канала




















