HN Hall of Fame Weekly email

Linux ate my RAM

www.linuxatemyram.com Books & learning Tutorials & guides Software engineering Class of 2017-02 Hall of Fame
Screenshot of www.linuxatemyram.com captured 2026-07-20
Page preview · captured 2026-07-20

The originally submitted URL now redirects to the address above. Updating the destination does not change the item’s HN history, Hall membership, or rank.

Resurfaced independently across 9 calendar years, with breakout response in 5 of them.

submissions
12
submitters
12
observed span
2011–2023
peak thread · 186 comments
245 pts
latest 20+ return · 2023-10-09
245 pts

Submission timeline

2007–2026

One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.

First comments on top threads

HN comment order

https://archive.ph/WmJHf

gslin·245-point thread·

This is actually wrong. For some reason (probably because of the way it's implemented internally) Linux includes shared memory allocations in the "cached" figure. If you calculate the amount of free memory using "free -m" in the way this web page advises, you'll think that memory is free when it really isn't - unlike true cache, shared memory cannot be discarded when the space is needed for something else. I've actually had buggy desktop applications use several gigabytes of RAM…

makomk·194-point thread·

This is misleading, as the kernel will often swap out processes rather than shrink the disk cache. Its tendency to do this is controlled by the vm.swappiness parameter, which by default heavily favors swapping: http://kerneltrap.org/node/3000 Decreasing this value will favor reducing the cache size and will tend to increase responsiveness. You can set it in the /etc/sysctl.conf file. Low values (≤ 5) are especially good for SSDs where you want to minimize swap usage.

I've tried to educate Oracle DBAs on why top is wrong and their memory really isn't being used. It's painful and they often refuse to believe that I know what I'm talking about, and that they should use the free -m command to see what memory is actually available for use. Is there any particular reason why Oracle DBAs are less likely to believe this? Perhaps it's because most of them grew up in legacy UNIX environments rather than Linux.

The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.

Breakout years
5

100+ points or 50+ comments

Total points
834

reference only — not used in Hall rules or ranking

Total comments
557

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2011-02-01Tired of explaining Linux's seemingly obtuse memory usage to confused newbies?First breakoutyankcrime15570
2012-03-13Help, Linux ate my RAMez77102102
2013-11-11Linux ate my RAM wallzz194125
2016-01-04Linux ate my RAMdutchbrit44
2017-02-05Help Linux ate my RAMHall inductionswatkat20
2017-03-19LinuxAteMyRam.comDDerTyp31
2017-05-30Linux ate my RAMch4ch420
2018-05-14Linux ate my RAM (2009)Alupis267
2020-08-20Linux disk cache – When and when not to worrythamizhan261111
2020-10-27Linux Ate My RAMspapas8230
2021-12-22Linux Ate My RAMthrowaway888abc9761
2023-10-09Linuxatemyram.comBest thread · Latest 20+ point returnStrauXX245186