frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Reminder: Enable ZRAM on your Linux system to optimize RAM usage

https://www.cnx-software.com/2026/04/15/reminder-enable-zram-on-your-linux-system-to-optimize-ram-usage/
15•type0•2h ago

Comments

iberator•1h ago
I remember that back in around 2007 i was able to somehow mount a graphical card (ati similar to geforce2?) memory directly in Linux, and put my swap file there :); Great times. Slackware 8.1 i think.

as for zram: somehow i dislike it. Nowdays ram is plenty and if not: better to have fast OOM than chug of death with swap.

I also remember running NetBSD 1.3.1 and Slackware 3 on 386SZ 26MHZ with 2 mb of ram (nowadays hard limit is 4mb to boot due the large memory pages on x86 afik)

Neywiny•35m ago
Much agreed. Early OOM is so much better for me than swap. I have 128G on my work laptop, 96 on my personal desktop. If it doesn't fit in that, it probably means I'd need a terabyte or infinite amount of swap and that's just nonsense.
Kim_Bruning•1h ago
There's also kernel zswap, right?

https://www.kernel.org/doc/html/latest/admin-guide/mm/zswap....

Oh right, definitely. Chrisdown wrote an article comparing the two:

https://chrisdown.name/2026/03/24/zswap-vs-zram-when-to-use-...

Zswap is supposed to degrade more gracefully.

There's even some HN comments on it:

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

dlcarrier•46m ago
The architecture of zswap does make more sense, because you might as well combine the low speed and latency of compression with the same from writing to storage.
yjftsjthsd-h•24m ago
My impression is that zswap will be the universally preferred option for compressed swap, but right now it doesn't work without disk swap behind it?
esperent•53m ago
I've heard ZRAM mentioned before and I've just spent 5 minutes reading articles on it... Which is about the maximum I have time for these days when it comes to esoteric linux internals.

What's the downside? Does it use much CPU?

If I have enough RAM already, should I still enable it?

One article says it can be mapped to /tmp to reduce i/o. Is that a good idea?

This article is light on all of these kind of details.

ChocolateGod•25m ago
You only want to use zram if you've got no swap device (e.g. a raspberry pi).

If you do, you'll want zswap instead.

Vercel April 2026 security incident

https://www.bleepingcomputer.com/news/security/vercel-confirms-breach-as-hackers-claim-to-be-sell...
498•colesantiago•10h ago•298 comments

The Bromine Chokepoint

https://warontherocks.com/cogs-of-war/the-bromine-chokepoint-how-strife-in-the-middle-east-could-...
138•crescit_eundo•6h ago•70 comments

A Brief History of Fish Sauce

https://www.legalnomads.com/fish-sauce/
34•vinhnx•16h ago•8 comments

Show HN: How context engineering works, a runnable reference

https://github.com/outcomeops/context-engineering
16•linsys•2d ago•3 comments

2,100 Swiss municipalities showing which provider handles their official email

https://mxmap.ch/
44•doener•1h ago•12 comments

Changes in the system prompt between Claude Opus 4.6 and 4.7

https://simonwillison.net/2026/Apr/18/opus-system-prompt/
188•pretext•14h ago•115 comments

Aliens.gov will be running as a WordPress multisite

https://aliens.gov/
18•johnnyApplePRNG•2h ago•14 comments

Ex-CEO, ex-CFO of bankrupt AI company charged with fraud

https://www.reuters.com/legal/government/ex-ceo-ex-cfo-bankrupt-ai-company-charged-with-fraud-202...
51•1vuio0pswjnm7•2h ago•19 comments

Show HN: Faceoff – A terminal UI for following NHL games

https://www.vincentgregoire.com/faceoff/
93•vcf•6h ago•33 comments

Prove you are a robot: CAPTCHAs for agents

https://browser-use.com/posts/prove-you-are-a-robot
38•lukasec•4d ago•25 comments

Six Levels of Dark Mode

https://cssence.com/2024/six-levels-of-dark-mode/
38•Akcium•6h ago•10 comments

Archive of BYTE magazine, starting with issue #1 in 1975

https://archive.org/details/byte-magazine-1975-09
522•DamnInteresting•2d ago•134 comments

The RAM shortage could last years

https://www.theverge.com/ai-artificial-intelligence/914672/the-ram-shortage-could-last-years
176•omer_k•17h ago•178 comments

I wrote a CHIP-8 emulator in my own programming language

https://github.com/navid-m/chip8emu
36•pizza_man•5h ago•10 comments

Scientific datasets are riddled with copy-paste errors

https://www.sciencedetective.org/scientific-datasets-are-riddled-with-copy-paste-errors/
23•jruohonen•5h ago•1 comments

The seven programming ur-languages (2022)

https://madhadron.com/programming/seven_ur_languages.html
276•helloplanets•17h ago•104 comments

Interesting Map Geometry and Mathematics

https://www.markrjohnsongames.com/2026/04/11/ultima-ratio-regum-0-11-update-57-interesting-map-ge...
4•Hooke•1d ago•0 comments

Nanopass Framework: Clean Compiler Creation Language

https://nanopass.org/
112•NordStreamYacht•4d ago•26 comments

Got an Old Kindle? It Might Not Work Anymore

https://www.nytimes.com/wirecutter/reviews/older-kindle-support-ending/
23•eigenhombre•1h ago•12 comments

SPEAKE(a)R: Turn Speakers to Microphones for Fun and Profit [pdf] (2017)

https://www.usenix.org/system/files/conference/woot17/woot17-paper-guri.pdf
158•Eridanus2•15h ago•67 comments

Notion leaks email addresses of all editors of any public page

https://twitter.com/weezerOSINT/status/2045849358462222720
313•Tiberium•9h ago•108 comments

What are skiplists good for?

https://antithesis.com/blog/2026/skiptrees/
257•mfiguiere•2d ago•63 comments

Hot Wiring the Lisp Machine

https://scheatkode.com/blog/019d463d-38b3-7e63-80fd-6ed97bd8815e/hot-wiring-the-lisp-machine/
23•spudlyo•7h ago•0 comments

A. J. Ayer – ‘What I Saw When I Was Dead’ (1988)

https://www.philosopher.eu/others-writings/a-j-ayer-what-i-saw-when-i-was-dead/
63•isomorphy•4h ago•75 comments

Show HN: Prompt-to-Excalidraw demo with Gemma 4 E2B in the browser (3.1GB)

https://teamchong.github.io/turboquant-wasm/draw.html
85•teamchong•13h ago•42 comments

Reverse Engineering ME2's USB with a Heat Gun and a Knife

https://github.com/coremaze/ME2-Writeup
51•Bawoosette•1d ago•8 comments

Eliza a Play by Tom Holloway

https://www.mtc.com.au/plays-and-tickets/whats-on/season-2026/eliza
15•abrax3141•2d ago•8 comments

KTaO3-Based Supercurrent Diode

https://pubs.acs.org/doi/10.1021/acs.nanolett.5c05590
25•PaulHoule•4d ago•3 comments

C++26: Reflection, Memory Safety, Contracts, and a New Async Model

https://www.infoq.com/news/2026/04/cpp-26-reflection-safety-async/
27•birdculture•3h ago•2 comments

4-bit floating point FP4

https://www.johndcook.com/blog/2026/04/17/fp4/
72•chmaynard•1d ago•50 comments