home.social

#jemalloc — Public Fediverse posts

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

fetched live
  1. Deckhouse Prom++: как мы сжали разметку метрик Prometheus и снизили расход памяти в 2,5 раза с помощью статистики данных

    Хотели избежать копирования данных, придумали свою служебную разметку, а потом обнаружили: она занимает почти столько же места, сколько сам исходный текст. Мы перестали гадать, посмотрели на реальные данные и применили простые, но эффективные подходы: числа переменной длины, отказ от double в пользу целых типов и умные if-else вместо switch . Итог: мы сжали разметку в 2,5 раза и при этом даже немного выиграли в скорости. Рассказываем, как знание предметной области помогло нам не усложнять код, а сделать его быстрее и легче.

    habr.com/ru/companies/flant/ar

    #c++ #c++23 #prometheus #prom++ #jemalloc #switch #unroll #ifelse #varint #offset

  2. TIL about #jemalloc, a scalable concurrent malloc(3) implementation for #FreeBSD and #Linux, only to find out it had its 20th birthday a few days ago! 🎂

    Check out the original paper on papers.freebsd.org/2006/bsdcan

  3. TIL about #jemalloc, a scalable concurrent malloc(3) implementation for #FreeBSD and #Linux, only to find out it had its 20th birthday a few days ago! 🎂

    Check out the original paper on papers.freebsd.org/2006/bsdcan

  4. (more Linux and FOSS news in previous posts of thread)

    Rust 1.95 adds cfg_select! macro, if-let match guards, and destabilized JSON target specs:
    alternativeto.net/news/2026/4/

    GCC Compiler Adds Arm AGI CPU Target:
    phoronix.com/news/GCC-Arm-AGI-

    CMake Pursuing Tighter Integration With Package Managers, Other Improvements:
    phoronix.com/news/CMake-Tighte

    Zig 0.16.0 brings I/O interfaces and expands native CI target testing:
    alternativeto.net/news/2026/4/

    Forgejo v15.0 adds repo-scoped tokens, OIDC for Actions, and major usability upgrades:
    alternativeto.net/news/2026/4/

    OpenProject 17.3 adds dedicated sprint objects, auto sprint board creation, and much more:
    alternativeto.net/news/2026/4/

    Thunderbolt is an open-source ‘AI client’ from Mozilla’s for-profit arm:
    omgubuntu.co.uk/2026/04/mozill

    Nginx 1.30 Released With Multipath TCP, ECH & More:
    phoronix.com/news/Nginx-1.30-R

    WordPress adds Telegram bot, MCP controls, and complimentary access to paid newsletter:
    alternativeto.net/news/2026/4/

    WooCommerce 10.7 cuts database queries and adds Store API caching:
    alternativeto.net/news/2026/4/

    OpenSSL 4.0 Released with Support for Encrypted Client Hello, SNMP KDF, and More:
    9to5linux.com/openssl-4-0-rele

    Servo Browser Engine Making It Easier For Embedded Use:
    phoronix.com/news/Servo-Embed-

    WireGuard For Windows Reaches v1.0:
    phoronix.com/news/WireGuard-Fo

    jemalloc 5.3.1 Released With Many Improvements After Nearly Four Year Hiatus:
    phoronix.com/news/jemalloc-5.3

    FosseryWeb progress report:
    I regenerated the JavaScript cheatsheets with page-builders, made some corrections (splitting long lines in code, making links relative) in Java cheatsheets, and now I'm working on the Java Maps cheatsheet.
    fosseryweb.codeberg.page/@beta
    fosseryweb-min.codeberg.page/@

    Free Software Foundation Says OnlyOffice Cannot Use AGPL to Restrict Forks:
    linuxiac.com/fsf-says-onlyoffi

    #WeeklyNews #OpenSource #FOSSNews #FOSS #OpenSourceNews #News #Rust #GCC #CMake #Zig #Forgejo #OpenProject #Thunderbolt #AI #Nginx #WordPress #WooCommerce #OpenSSL #Servo #WireGuard #jemalloc #FosseryWeb #FosseryWebMin #FSF #ONLYOFFICE #Programming #Dev #FosseryTech

  5. (more Linux and FOSS news in previous posts of thread)

    Rust 1.95 adds cfg_select! macro, if-let match guards, and destabilized JSON target specs:
    alternativeto.net/news/2026/4/

    GCC Compiler Adds Arm AGI CPU Target:
    phoronix.com/news/GCC-Arm-AGI-

    CMake Pursuing Tighter Integration With Package Managers, Other Improvements:
    phoronix.com/news/CMake-Tighte

    Zig 0.16.0 brings I/O interfaces and expands native CI target testing:
    alternativeto.net/news/2026/4/

    Forgejo v15.0 adds repo-scoped tokens, OIDC for Actions, and major usability upgrades:
    alternativeto.net/news/2026/4/

    OpenProject 17.3 adds dedicated sprint objects, auto sprint board creation, and much more:
    alternativeto.net/news/2026/4/

    Thunderbolt is an open-source ‘AI client’ from Mozilla’s for-profit arm:
    omgubuntu.co.uk/2026/04/mozill

    Nginx 1.30 Released With Multipath TCP, ECH & More:
    phoronix.com/news/Nginx-1.30-R

    WordPress adds Telegram bot, MCP controls, and complimentary access to paid newsletter:
    alternativeto.net/news/2026/4/

    WooCommerce 10.7 cuts database queries and adds Store API caching:
    alternativeto.net/news/2026/4/

    OpenSSL 4.0 Released with Support for Encrypted Client Hello, SNMP KDF, and More:
    9to5linux.com/openssl-4-0-rele

    Servo Browser Engine Making It Easier For Embedded Use:
    phoronix.com/news/Servo-Embed-

    WireGuard For Windows Reaches v1.0:
    phoronix.com/news/WireGuard-Fo

    jemalloc 5.3.1 Released With Many Improvements After Nearly Four Year Hiatus:
    phoronix.com/news/jemalloc-5.3

    FosseryWeb progress report:
    I regenerated the JavaScript cheatsheets with page-builders, made some corrections (splitting long lines in code, making links relative) in Java cheatsheets, and now I'm working on the Java Maps cheatsheet.
    fosseryweb.codeberg.page/@beta
    fosseryweb-min.codeberg.page/@

    Free Software Foundation Says OnlyOffice Cannot Use AGPL to Restrict Forks:
    linuxiac.com/fsf-says-onlyoffi

    #WeeklyNews #OpenSource #FOSSNews #FOSS #OpenSourceNews #News #Rust #GCC #CMake #Zig #Forgejo #OpenProject #Thunderbolt #AI #Nginx #WordPress #WooCommerce #OpenSSL #Servo #WireGuard #jemalloc #FosseryWeb #FosseryWebMin #FSF #ONLYOFFICE #Programming #Dev #FosseryTech

  6. 🥳🎉 Meta's backtracking on #jemalloc is hailed as a #groundbreaking move! Because clearly, the world needed another deep dive into memory allocation strategies over their morning coffee. 🙄🔍 Who knew infrastructure updates could be so riveting?
    engineering.fb.com/2026/03/02/ #Meta #memoryallocation #infrastructureupdates #technews #HackerNews #ngated

  7. 🥳🎉 Meta's backtracking on #jemalloc is hailed as a #groundbreaking move! Because clearly, the world needed another deep dive into memory allocation strategies over their morning coffee. 🙄🔍 Who knew infrastructure updates could be so riveting?
    engineering.fb.com/2026/03/02/ #Meta #memoryallocation #infrastructureupdates #technews #HackerNews #ngated

  8. At $dayjob, we have an embedded #Linux device that is periodically running low on memory. It's using the default (#glibc) allocator.

    No leaks, and lowering MALLOC_MMAP_THRESHOLD_ made the problem go away. So: memory fragmentation.

    With glibc, I'm sure that's no surprise to anyone "Use #jemalloc", right?

    Sure, some do, but I don't want to use a hammer that big without trying to understand the problem first. Jemalloc being effectively end of life also doesn't really thrill me.

    1/5

  9. At $dayjob, we have an embedded #Linux device that is periodically running low on memory. It's using the default (#glibc) allocator.

    No leaks, and lowering MALLOC_MMAP_THRESHOLD_ made the problem go away. So: memory fragmentation.

    With glibc, I'm sure that's no surprise to anyone "Use #jemalloc", right?

    Sure, some do, but I don't want to use a hammer that big without trying to understand the problem first. Jemalloc being effectively end of life also doesn't really thrill me.

    1/5

  10. If you want to understand the life cycle of software, this history of jemalloc is not a bad start

    Remember: there is no bad or good here, and there is no intentionality. To assume there should have been a different outcome would be presumptuous.

    There just “is”. Not everybody understands this.

    https://jasone.github.io/2025/06/12/jemalloc-postmortem/

    #jemalloc #softwareEcosystems #softwareEngineering

  11. Have you ever dealt with this issue? Should I install #jemalloc right away or play detective? Setup: #ruby 2.7.8, #puma 3.12.6.

  12. Have you ever dealt with this issue? Should I install #jemalloc right away or play detective? Setup: #ruby 2.7.8, #puma 3.12.6.

  13. As my #Friendica server, my-place.social, has grown to some 315 active users in just 5 months, I'm starting to hit up against #mariaDB limitations relating to the default memory manager, #MALLOC. This weekend I'm going to replace it with #jemalloc to reduce stalls, memory fragmentation issues, out-of-memory problems, and instability.

    Friendica puts a lot of pressure on the database, mariaDB in this case, much more than Mastodon apparently does on PostgreSQL. My feeling is that the Mastodon developers have done much better database tuning.

    But, none-the-less, the update must be done. This will be done on an Ubuntu server.

    Does anyone who has changed the MariaDB or mySQL memory manager have any advice to share to keep me out of trouble?

    BTW, #TCMalloc is not an option as other admins have reported crashes using it with Friendica.

  14. Add one more vote for using #jemalloc for #rails applications. This is our memory graph for the #Sidekiq workers.

    Besides adding the linked buildpack and setting configuration options, we had nothing else to do.

    elements.heroku.com/buildpacks

  15. Add one more vote for using #jemalloc for #rails applications. This is our memory graph for the #Sidekiq workers.

    Besides adding the linked buildpack and setting configuration options, we had nothing else to do.

    elements.heroku.com/buildpacks

  16. Released ruby-install 0.10.0! This release contains many small improvements to usability and better support for building CRuby with jemalloc or YJIT enabled.

    $ ruby-install ruby -- --with-jemalloc
    $ ruby-install ruby -- --enable-yjit

    github.com/postmodern/ruby-ins
    github.com/postmodern/ruby-ins

    #ruby #rubyinstall #ruby_install #jemalloc #yjit

  17. Released ruby-install 0.10.0! This release contains many small improvements to usability and better support for building CRuby with jemalloc or YJIT enabled.

    $ ruby-install ruby -- --with-jemalloc
    $ ruby-install ruby -- --enable-yjit

    github.com/postmodern/ruby-ins
    github.com/postmodern/ruby-ins

    #ruby #rubyinstall #ruby_install #jemalloc #yjit

  18. I just learnt about `jemalloc` in order to fix the memory hunger of Synapse.

    So yeah, Python developers will rather hijack the glibc memory allocator than switch to a resource efficient language.

    #jemalloc #Matrix #Synapse #Python #glibc #programming

  19. I just learnt about `jemalloc` in order to fix the memory hunger of Synapse.

    So yeah, Python developers will rather hijack the glibc memory allocator than switch to a resource efficient language.

    #jemalloc #Matrix #Synapse #Python #glibc #programming

  20. progress: #jemalloc built ok. Attempting to build #Ruby 3.2.3. We are getting far, far further with this than we did with Solaris, to the point that this may actually work

  21. progress: #jemalloc built ok. Attempting to build #Ruby 3.2.3. We are getting far, far further with this than we did with Solaris, to the point that this may actually work

  22. progress: have to build #jemalloc from source to allow Ruby to build. Doesn't seem to be a massive problem, which is good

  23. progress: have to build #jemalloc from source to allow Ruby to build. Doesn't seem to be a massive problem, which is good

  24. Just merged a PR enabling Jemalloc in our production Rails app. Curious to see the changes reflected in the graphs after deploy.
    #jemalloc #rails #RubyOnRails