frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Stop making swap partitions–use swap files instead

https://gist.github.com/joshenders/c4960cec9c63a7b7d68ffa9543356c43
12•jenders•2d ago

Comments

mdspan•2d ago
Swap files are also much easier to set up than partitions if you're using full disk encryption.
demomode•51m ago
Swap files are very fragile if you are using hibernation. For FDE I prefer LVM-over-LUKS and a dedicate partition
dwedge•52m ago
Interestingly I always use swapfiles and this page made me realise there can be a performance impact if the filesystem is old - the lkml link says as long as the swap file isn't fragmented there's no impact
WalterGR•40m ago
In practice, there’s a potentially tremendous impact if you’re using a spinning metal disk. Sectors at the beginning of the disk (which is at the outer edge) are read/written way faster than sectors at the end. File systems tend to prefer writing files at the beginning. If the file system has been used for ‘a long time’ then it’s either fragmented - or it’s been defragmented and the free space is at the slow end of the drive.

One nice thing about swap partitions is that they can be fixed in place even before OS installation.

(Of course, if you’re using swap enough for this to be a huge factor, you probably have bigger problems. But I haven’t done the math.)

charcircuit•38m ago
Linux distros that do use swap files do so statically. It doesn't handle dynamically growing and shrinking it like other operating systems.
0xbadcafebee•30m ago
Unless you use the Linux package that does manage swap files dynamically.
weinzierl•9m ago
There used to be a time when not only the OS required using partitions for optimum performace (swapfiles) but also applications.

In the late 90s databases were regularly set up in a way to store their data on raw partitions. It really only died with OSes allowing apps to bypass the normal filesystem cache (O_DIRECT).

Astra for Coding: Why Are We Doing This Again?

https://lucumr.pocoo.org/2026/9/7/astra-why/
238•manojbajaj95•1h ago•137 comments

Shopify is moving from React Native back to Swift and Kotlin

https://shopify.engineering/back-to-native
1006•fnthawar2•17h ago•686 comments

The Gemini app is now available for Windows

https://blog.google/innovation-and-ai/products/gemini-app/gemini-app-now-on-windows/
36•quysala12•3h ago•17 comments

We Replaced MMAP with Io_uring in Our Rust Query Engine. It Got Slower

https://www.conviva.ai/resource/we-replaced-mmap-with-io_uring-in-our-rust-query-engine-it-got-sl...
26•rzk•2h ago•12 comments

Don't let anyone take away your big box of cables

https://blog.jim-nielsen.com/2026/hands-off-my-cables/
473•Brajeshwar•16h ago•324 comments

Nine coding harnesses vs. your laptop

https://nasutton.notion.site/Nine-coding-harnesses-vs-your-laptop-3d139990182b80d59fa3cf500f0450b...
73•nasutton12•9h ago•15 comments

OpenAI Agents API

https://developers.openai.com/api/docs/guides/agents-api/overview
243•aquir•12h ago•133 comments

Working with Git Worktrees in Magit

https://emacsredux.com/blog/2026/09/02/working-with-git-worktrees-in-magit/
24•srijan4•3d ago•4 comments

Mexican student creates an acoustic fire extinguisher to put out fire in seconds

https://www.upsocl.com/en/16-year-old-mexican-student-creates-an-acoustic-fire-extinguisher-that-...
180•rguiscard•7h ago•68 comments

Technique for Manipulating Satellite Photos Now Reveals Ancient Images (2025)

https://spinoff.nasa.gov/Manipulating_Satellite_Photos_Now_Reveals_Ancient_Images
324•gumby•16h ago•53 comments

The Deathray: A simple way for an untrusted site to freeze a Mac

https://auberon.xyz/blog/posts/deathray/
156•auberonedu•12h ago•104 comments

Thelio Mira AI Linux Workstation: 192 GB GPU Memory

https://system76.com/workstations/thelio-mira-ai
91•jonifico•8h ago•70 comments

NTSB issues investigative update on B-767 runway excursion accident in Miami

https://www.ntsb.gov:443/news/press-releases/Pages/NR20260909.aspx
96•mckn1ght•10h ago•165 comments

Cognition launches new SWE-2 model, Rivaling Fable 5.1 and GPT-Astra

https://cognition.com/blog/swe-2
405•seelos•16h ago•172 comments

iPhone Duo

https://www.apple.com/iphone-duo/
1445•thecosmicfrog•1d ago•2482 comments

More questions about whether researchers can trust OpenAI with unpublished math

https://mathstodon.xyz/@andreasthom/117240535270608201
789•pred_•1d ago•726 comments

Music Theory for the 21st-Century Classroom

https://musictheory.pugetsound.edu/mt21c/MusicTheory.html
215•aanet•14h ago•89 comments

Testing race conditions with mem access tracing and stack-based delay injection

https://projectzero.google/2026/09/maccconc-race-condition.html
5•mfrw•2d ago•0 comments

Forgejo <=16.0.3 Critical RCE

https://codeberg.org/forgejo/forgejo/src/branch/forgejo/release-notes-published/16.0.4.md
174•weierstass•16h ago•63 comments

Neki – Sharded Postgres

https://planetscale.com/blog/introducing-neki
237•simon_weber•16h ago•129 comments

Proof of Capture: Apple Reference Image, but open source and using steganography

https://merybenavente.me/blog/proof-of-capture
100•merybenavente•12h ago•54 comments

What Comes After Git

https://ersc.io/blog/what-comes-after-git
35•tangled•5h ago•8 comments

Stop making swap partitions–use swap files instead

https://gist.github.com/joshenders/c4960cec9c63a7b7d68ffa9543356c43
12•jenders•2d ago•7 comments

Rust is tier-1 language at Microsoft

https://rustfoundation.org/media/guest-post-rust-is-tier-1-language-at-microsoft/
660•mmastrac•18h ago•392 comments

Exercise intensity is associated with cardiometabolic health

https://www.cell.com/cell-reports-medicine/fulltext/S2666-3791(26)00405-2
84•qclibre22•4h ago•39 comments

Detecting and countering misuse of AI: September 2026

https://www.anthropic.com/threat-intelligence-report-september-2026
123•garo-pro•14h ago•188 comments

YuE2 · Frontier Music with Symbolic Planning

https://map-yue2.github.io/
85•sexy_seedbox•7h ago•73 comments

Douglas Hofstadter: Analogy as the Core of Cognition [video]

https://www.youtube.com/watch?v=n8m7lFQ3njk
171•tosh•4d ago•79 comments

Hitachi launches CO2 heat pump water heaters with solar-friendly tariff controls

https://www.pv-magazine.com/2026/09/07/hitachi-launches-co2-heat-pump-water-heaters-with-solar-fr...
306•thelastgallon•1d ago•258 comments

DeepSeek v4.1 Flash Uncensored

https://huggingface.co/dealignai/DeepSeek-V4.1-Flash-UNCENSORED-FP8
17•soltanov•1h ago•2 comments