frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Don't rent the cloud, own instead

https://blog.comma.ai/datacenter/
295•Torq_boi•4h ago•126 comments

When internal hostnames are leaked to the clown

https://rachelbythebay.com/w/2026/02/03/badnas/
179•zdw•5h ago•106 comments

If you've got Nothing to Hide (2015)

https://jacquesmattheij.com/if-you-have-nothing-to-hide/
28•jacquesm•1h ago•17 comments

Modernizing Linux swapping: introducing the swap table

https://lwn.net/SubscriberLink/1056405/e728d95dd16f5e1b/
50•chmaynard•3h ago•38 comments

Adobe Animate will be discontinued effective March 1, 2026

https://helpx.adobe.com/uk/animate/kb/end-of-life.html
33•g0ld3nrati0•2d ago•21 comments

Wirth's Revenge

https://jmoiron.net/blog/wirths-revenge/
69•signa11•6h ago•12 comments

Sqldef: Idempotent schema management tool for MySQL, PostgreSQL, SQLite

https://sqldef.github.io/
170•Palmik•3d ago•37 comments

Claude Code: connect to a local model when your quota runs out

https://boxc.net/blog/2026/claude-code-connecting-to-local-models-when-your-quota-runs-out/
282•fugu2•3d ago•146 comments

Show HN: Micropolis/SimCity Clone in Emacs Lisp

https://github.com/vkazanov/elcity
4•vkazanov•1h ago•1 comments

A few CPU hardware bugs

https://www.taricorp.net/2026/a-few-cpu-bugs/
60•signa11•6h ago•12 comments

AI is killing B2B SaaS

https://nmn.gl/blog/ai-killing-b2b-saas
353•namanyayg•17h ago•548 comments

A case study in PDF forensics: The Epstein PDFs

https://pdfa.org/a-case-study-in-pdf-forensics-the-epstein-pdfs/
301•DuffJohnson•19h ago•169 comments

Claude Code for Infrastructure

https://www.fluid.sh/
215•aspectrr•16h ago•152 comments

OpenClaw is what Apple intelligence should have been

https://www.jakequist.com/thoughts/openclaw-is-what-apple-intelligence-should-have-been
326•jakequist•10h ago•280 comments

I built a search engine to index the un-indexable parts of Telegram

https://telehunt.org
29•alenmangattu•3d ago•8 comments

Microsoft's Copilot chatbot is running into problems

https://www.wsj.com/tech/ai/microsofts-pivotal-ai-product-is-running-into-big-problems-ce235b28
213•fortran77•18h ago•242 comments

Postgres Postmaster does not scale

https://www.recall.ai/blog/postgres-postmaster-does-not-scale
97•davidgu•18h ago•41 comments

Remarkable Pro Colors

https://www.thregr.org/wavexx/rnd/20260201-remarkable_pro_colors/
107•ffaser5gxlsll•3d ago•42 comments

Making Ferrite Core Inductors at Home

https://danielmangum.com/posts/making-ferrite-core-inductors-home/
3•hasheddan•2d ago•0 comments

An interactive version of Byrne's The Elements of Euclid (1847)

https://c82.net/euclid/
36•tzury•2d ago•3 comments

Building a 24-bit arcade CRT display adapter from scratch

https://www.scd31.com/posts/building-an-arcade-display-adapter
160•evakhoury•17h ago•44 comments

Why S7 Scheme? (2020)

https://iainctduncan.github.io/scheme-for-max-docs/s7.html
26•bmacho•4d ago•3 comments

Voxtral Transcribe 2

https://mistral.ai/news/voxtral-transcribe-2
904•meetpateltech•19h ago•223 comments

Lily Programming Language

https://lily-lang.org
47•FascinatedBox•3d ago•33 comments

Valve's Steam Machine has been delayed, and the RAM crisis will impact pricing

https://www.theverge.com/games/874196/valve-steam-machine-frame-controller-delay-pricing-memory-c...
32•lxst•2h ago•21 comments

Listen to Understand

https://talk.bradwoods.io/blog/listen-to-understand/
50•bradwoodsio•3d ago•10 comments

Why more companies are recognizing the benefits of keeping older employees

https://longevity.stanford.edu/why-more-companies-are-recognizing-the-benefits-of-keeping-older-e...
139•andsoitis•11h ago•57 comments

The Great Unwind

https://occupywallst.com/yen
261•jart•16h ago•251 comments

Tractor

https://incoherency.co.uk/blog/stories/tractor.html
185•surprisetalk•1d ago•59 comments

ICE seeks industry input on ad tech location data for investigative use

https://www.biometricupdate.com/202602/ice-seeks-industry-input-on-ad-tech-location-data-for-inve...
216•WaitWaitWha•5h ago•182 comments
Open in hackernews

Modernizing Linux swapping: introducing the swap table

https://lwn.net/SubscriberLink/1056405/e728d95dd16f5e1b/
48•chmaynard•3h ago

Comments

FooBarWidget•1h ago
One pet peeve I have with virtual memory management on Linux is that, as memory usage approaches 100%, the kernel starts evicting executable pages because technically they're read-only and can be loaded from disk. Thus, the entire system grinds to a halt in a behavior that looks like swapping, because every program that wants to execute instructions has to load its instructions from disk again, only to have those instruction pages be evicted again when context switching to another program. This behavior is especially counter intuitive because disabling swap does not prevent this problem. There are no convenient settings for administrators for preventing this problem.

It's good that we have better swapping now, but I wish they'd address the above. I'd rather have programs getting OOMKilled or throwing errors before the system grinds to a halt, where I can't even ssh in and run 'ps'.

robinsonb5•1h ago
Indeed. I think what's really needed is some way to mark pages as "required for interactivity" so that nothing related to the user interface gets paged out, ever. That, I think, would go at least some way towards restoring the feeling of "having a computer's full attention" that we had thirty years ago.
akdev1l•44m ago
Seems the applications can call mlockall() to do this
nolist_policy•1h ago
Linux swap has been fixed on Chromebooks for years thanks to MGLRU. It's upstream since Linux 6.1 and you can try it with

  echo y >/sys/kernel/mm/lru_gen/enabled
tremon•2m ago
Documentation links:

https://docs.kernel.org/next/admin-guide/mm/multigen_lru.htm...

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...

man8alexd•58m ago
Actively used executable pages are explicitly excluded from reclaim. And if they are not used, why should they stay in memory when the memory is constrained? It is not the first time I have heard complaints about executable pages, but it seems to be some kind of common misunderstanding.

https://news.ycombinator.com/item?id=45369516

worldsavior•46m ago
Program instructions size is small thus loading is fast, so no need to worry about that too much. I'd look on different things first.
twic•45m ago
Have you measured this, or is this just an opinion?
man8alexd•37m ago
Look into /proc/<PID>/status and /proc/<PID>/smaps
112233•29m ago
Is there a way to make linux kernel schedule in a "batch friendly way"? Say I do "make -j" and get 200 gcc processes diong jobserver LTO link with 2GB RSS each. In my head, optimal way through such mess is get as many processes as can fit into RAM without swapping, run them to completion, and schedule additional processes as resources become available. A depth first, "infinite latency" mode.

Any combination of cgroups, /proc flags and other forbidden knobs to get such behaviour?

Rygian•4m ago
I suffer from the same behavior, ever since I moved from Ubuntu to Debian.

An interactive system that does not interact (terminal not reactive, can't ssh in, screen does not refresh) is broken. I don't understand why this is not a kernel bug.

On my system, to add insult to injury, when the system does come back twenty minutes later, I get a "helpful" pop-up from the Linux Kernel saying "Memory Shortage Avoided". Which is just plain wrong. The pop-up should say "sorry, the kernel bricked your system for a solid twenty minutes for no good reason, please file a report".

iberator•1h ago
Another useless feature into Linux kernel. Who uses swap space nowadays?! Last time I used swap on Linux device was around Pentium 2 era but in reality closer to 486DX era
Titan2189•1h ago
We use it in production. Workloads with unpredictable memory usage (32Mb to 4Gb per process), but we also want to start enough processes to saturate the CPU. Before we configured & enabled swap we were either sitting at low CPU utilisation or OOM
sl-1•1h ago
It is still useful for many workloads, I use it in work and on my own machines
ch_123•1h ago
I ran Linux without swap for some years on a laptop with a large-for-the-time amount of RAM (about 8GB). It _mostly_ worked, but sudden spikes of memory usage would render the system unresponsive. Usually it would recover, but it in some cases it required a power cycle.

Similarly, on a server where you might expect most of the physical memory to get used, it ends up being very important for stability. Think of VM or container hosts in particular.

solstice•57m ago
I had a similar experience with Kubuntu on a xps13 from 2016 with only 8GB of RAM and the system suddenly freezing so hard that a hard reboot was required. While looking for the cause, I noticed that the system had only 250 MB of swap space. After increasing that to 10 GB there have been no further instances of freezing so far.
GCUMstlyHarmls•53m ago
I dont get why anti-swap is so prevalent in Linux discussions. Like, what does it hurt to stick 8-16-32gb extra "oh fuck" space on your drive.

Either you're going to never exhaust your system ram, so it doesn't matter, minimally exhaust it and swap in some peak load but at least nothing goes down, or exhaust it all and start having things get OOM'd which feels bad to me.

Am I out of touch? Surely it's the children who are wrong.

man8alexd•47m ago
8-16-32gb of swap space without cgroup limits would get the system into swap thrashing and make it unresponsive.
ch_123•42m ago
I think it's some kind of misplaced desire to be "lightweight" and avoid allocating disk space that cannot be used for regular storage. My motivation way back when for wanting to avoid swap was due to concerns about SSD wear issues, but those have been solved for a long time ago.
manuel_w•39m ago
The pro-swap stance has never made sense to me because it feels like a logical loop.

There’s a common rule of thumb that says you should have swap space equal to some multiple of your RAM.

For instance, if I have 8 GB of RAM, people recommend adding 8 GB of swap. But since I like having plenty of memory, I install 16 GB of RAM instead—and yet, people still tell me to use swap. Why? At that point, I already have the same total memory as those with 8 GB of RAM and 8 GB of swap combined.

Then, if I upgrade to 24 GB of RAM, the advice doesn’t change—they still insist on enabling swap. I could install an absurd amount of RAM, and people would still tell me to set up swap space.

It seems that for some, using swap has become dogma. I just don’t see the reasoning. Memory is limited either way; whether it’s RAM or RAM + swap, the total available space is what really matters. So why insist on swap for its own sake?

man8alexd•35m ago
This rule of thumb is outdated by two decades.

The proper rule of thumb is to make the swap large enough to keep all inactive anonymous pages after the workload has stabilized, but not too large to cause swap thrashing and a delayed OOM kill if a fast memory leak happens.

tremon•20m ago
That's not useful as a rule of thumb, since you can't know the size of "all inactive anonymous pages" without doing extensive runtime analysis of the system under consideration. That's pretty much the opposite of what a rule of thumb is for.
ch_123•20m ago
You're implying that people are telling you to set up swap without any reason, when in fact there are good reasons - namely dealing with memory pressure. Maybe you could fit so much RAM into your computer that you never hit pressure - but why would you do that vs allocating a few GB of disk space for swap?

Also, as has been pointed out by another commenter, 8GB of swap for a system with 8GB of physical memory is overkill.

tremon•13m ago
I'm also in the GP's camp; RAM is for volatile data, disk is for data persistence. The first "why would you do that" that needs to be addressed is why volatile data should be written to disk. And "it's just a few % of your disk" is not a sufficient answer to that question.
ch_123•3m ago
Because of cost - particularly given the current state of the RAM market. In order to have so much memory that you never hit memory spikes, you will deliberately need to buy RAM to never be used.

Note that simply buying more RAM than what you expect to use is not going to help. Going back to my post from earlier, I had a laptop with 8GB of RAM at a time where I would usually only need about 2-4GB of RAM for even relatively heavy usage. However, every once in a while, I would run something that would spike memory usage and make the system unresponsive. While I have much more than 8GB nowadays, I'm not convinced that it's enough to have completely outrun the risk of this sort of behaviour re-occuring.

viraptor•8m ago
You're mashing together two groups. One claims having swap is good actually. The other claims you need N times ram for swap. They're not the same group.

> Memory is limited either way; whether it’s RAM or RAM + swap

For two reasons: usage spikes and actually having more usable memory. There's lots of unused pages on a typical system. You get free ram for the price of cheap storage, so why wouldn't you?

t-3•5m ago
The reason you're supposed to have swap equal in size to your RAM is so that you can hibernate, not to make things faster. You can easily get away with far less than that because swap is rarely needed.
SCdF•59m ago
You should still use swap. It's not "2x RAM" as advice anymore, and hasn't been for years: https://chrisdown.name/2018/01/02/in-defence-of-swap.html

tl;dr; give it 4-8GB and forget about it.

ch_123•35m ago
I've heard "square root of physical memory" as a heuristic, although in practice I use less than this with some of my larger systems.
man8alexd•28m ago
The proper rule of thumb is to make the swap large enough to keep all inactive anonymous pages after the workload has stabilized, but not too large to cause swap thrashing and a delayed OOM kill if a fast memory leak happens.
wongarsu•56m ago
It's unloved on Linux because using Linux under memory pressure sucks. But that's not a good reason to abandon improvements. Even more so with the direction RAM prices are headed
man8alexd•42m ago
It sucks without proper cgroup limits because swap makes OOM slower to trigger. Either set the cgroup limits or make the swap small.
ChocolateGod•21m ago
This requires additional setup from the user, the default setup should just "work".
ChocolateGod•22m ago
I'd like to see Linux gain support for actual memory compression, without the need to go through zram, similar to macOS/Windows.
homebrewer•3m ago
zram has been "obsolete" for years, I don't know why people still reach for it. Linux supports proper memory compression in the form of zswap

https://wiki.archlinux.org/title/Zswap

dist-epoch•9m ago
Both Canonical and Microsoft recommend enabling swap file for Ubuntu cloud images, even if you allocate plenty of RAM to the VM.

Any thoughts on that?

man8alexd•8m ago
https://chrisdown.name/2018/01/02/in-defence-of-swap.html