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.
Submission timeline
2007–2026One 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 orderhttps://archive.ph/WmJHf
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…
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
- Total points
- 834
- Total comments
- 557
100+ points or 50+ comments
reference only — not used in Hall rules or ranking
reference only — not used in Hall rules or ranking
Every submission
| Date | Title as submitted | By | Points | Comments |
|---|---|---|---|---|
| 2011-02-01 | Tired of explaining Linux's seemingly obtuse memory usage to confused newbies?First breakout | yankcrime | 155 | 70 |
| 2012-03-13 | Help, Linux ate my RAM | ez77 | 102 | 102 |
| 2013-11-11 | Linux ate my RAM | wallzz | 194 | 125 |
| 2016-01-04 | Linux ate my RAM | dutchbrit | 4 | 4 |
| 2017-02-05 | Help Linux ate my RAMHall induction | swatkat | 2 | 0 |
| 2017-03-19 | LinuxAteMyRam.com | DDerTyp | 3 | 1 |
| 2017-05-30 | Linux ate my RAM | ch4ch4 | 2 | 0 |
| 2018-05-14 | Linux ate my RAM (2009) | Alupis | 26 | 7 |
| 2020-08-20 | Linux disk cache – When and when not to worry | thamizhan2611 | 1 | 1 |
| 2020-10-27 | Linux Ate My RAM | spapas82 | 3 | 0 |
| 2021-12-22 | Linux Ate My RAM | throwaway888abc | 97 | 61 |
| 2023-10-09 | Linuxatemyram.comBest thread · Latest 20+ point return | StrauXX | 245 | 186 |
