news.volyx.in

Meta’s renewed commitment to jemalloc (engineering.fb.com)

515 points by hahahacorn · 168 days ago · 239 comments on HN

Article summary

Meta is renewing its commitment to jemalloc, a high-performance memory allocator, with the goal of reducing maintenance needs and modernizing the codebase. The company aims to improve jemalloc's performance and adapt it to the latest hardware and workloads. This effort is part of Meta's focus on building a reliable and performant infrastructure. The project's original open source repository has been unarchived, and Meta is inviting the community to contribute and collaborate.

Main themes

  • Memory Allocation
  • Software Infrastructure
  • Open Source Development
  • Performance Optimization
  • Technical Debt

What commenters say

  • The use of custom memory allocators like jemalloc can provide significant performance gains, especially when optimized for specific workloads and hardware.
  • Some commenters argue that the difference between generic allocators is small, and that semantic optimized allocators are needed for significant performance improvements.
  • Java's garbage collection can be inefficient and lead to memory issues, particularly when it comes to deallocating memory back to the operating system.
  • Others disagree, pointing out that Java's garbage collection has improved over time, and that other factors like virtual memory and swap usage can also impact performance.
  • Some developers prefer to use custom allocation strategies to avoid the overhead of garbage collection, while others argue that this approach can lead to more problems than it solves.
  • The choice of garbage collection algorithm can have a significant impact on performance, and different algorithms may be better suited to different workloads and use cases.