home.social

#allocator — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #allocator, aggregated by home.social.

  1. 🎩✨ Ah, the thrilling chronicles of kmalloc() and its trusty sidekick, the #SLUB allocator! Forget the Avengers; this dynamic duo will leave you... yawning. 🤓💤 Canonical's very own superhero sustainer, armed with MIT-licensed wisdom, bravely delves into the abyss of #kernel #internals, ensuring we all have a new #bedtime story. 📚😴
    ruffell.nz/programming/writeup #kmalloc #allocator #stories #MIT #licensed #HackerNews #ngated

  2. OSDEV: Разработка аллокатора на С++ часть 2: Слияние блоков за константное время. Юнит тест для аллокатора

    Приветствую, уважаемый читатель! В первой части мы реализовали простейший аллокатор с минимальным оверхедом. Конечно же на самом деле все сложнее. Так реализация дефрагментации была наивной и не могла сливать блоки даже когда не было распределенных блоков после нескольких вызовов mem_free. Для того, что бы получить исходную картинку где будет только 2 служебных блока и один свободный нужно было бы вызвать mem_alloc с размером большим чем доступно памяти что бы искусственно запустить дефрагментацию. В этой части мы это исправим и напишем юнит тест для нашего аллокатора что бы убедится что он работает правильно.

    habr.com/ru/articles/861930/

    #распределение_памяти #allocator #memory_allocation #memory_management

  3. Wrote a #LockFree (and Obstruction-Free) memory #allocator for use in low-latency real-time threads.

    Blocks are 64-byte aligned to avoid false sharing, alloc+free calls of the underlying Bucket- and Bump-Allocators are O(1).

    A seperate thread is notified when the Bump-Allocator reaches a watermark. It will then extend the pool of pre-allocated (and pre-faulted) memory, so the Bump-Allocator can continue to serve requests concurrently without syscalls.

    github.com/tim-janik/anklang/b
    #Anklang