Skip to content
TopicTracker
From HackerNewsView original
TranslationTranslation

FreeBSD ate my RAM

The article explains that FreeBSD uses a significant portion of system RAM for ZFS's adaptive replacement cache (ARC), which caches filesystem data to improve performance. This behavior is normal and beneficial, as the ARC automatically releases memory when applications need it, and the author describes how to monitor and limit ARC usage if desired.

Background

- FreeBSD is a free, open-source Unix-like operating system, known for its stability, advanced networking, and security features. It is less common on desktops than Linux but widely used in servers, embedded systems, and as the core of other OSes like macOS (via XNU) and TrueNAS. - The article's title is a play on the long-standing "Linux ate my RAM" debate in computing. Unlike Linux, which tends to fill unused memory with cache but shows it as "used" (leading users to think memory is wasted), FreeBSD handles memory reporting differently — making it harder to tell what is truly available. - The piece likely explains FreeBSD's memory management (especially its use of page caching, wired memory, and the buffercache vs. the laundry/swap system) and why "used" memory in FreeBSD often includes resources that can be freed instantly, leading to confusion about how much RAM is genuinely in use. - Understanding this matters because FreeBSD's reporting can alarm new users or sysadmins who think their system is running out of memory when it actually isn't.

Related stories