frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

io_uring, libaio performance across Linux kernels and an unexpected IOMMU trap

https://blog.ydb.tech/how-io-uring-overtook-libaio-performance-across-linux-kernels-and-an-unexpected-iommu-trap-ea6126d9ef14
7•tanelpoder•1h ago

Comments

eivanov89•1h ago
Dear folks, I'm the author of that post.

A short summary below.

We ran fio benchmarks comparing libaio and io_uring across kernels (5.4 -> 7.0-rc3). The most surprising part wasn’t io_uring gains (~2x), but a ~30% regression caused by IOMMU being enabled by default between releases.

Happy to share more details about setup or reproduce results.

hcpp•1h ago
Why was 4K random write chosen as the main workload, and would the conclusion change with sequential I/O?
eivanov89•1h ago
That's a popular DBMS pattern. We chosen writes over reads, because on many NVMe devices writes are faster and it is easier to measure software latency.

I guess that in case of sequential I/O result would be similar. However with larger blocks and less IOPS the difference might be smaller.

tanelpoder•51m ago
I understand that it's the interrupt-based I/O completion workloads that suffered from IOMMU overhead in your tests?

IOMMU may induce some interrupt remapping latency, I'd be interested in seeing:

1) interrupt counts (normalized to IOPS) from /proc/interrupts

2) "hardirqs -d" (bcc-tools) output for IRQ handling latency histograms

3) perf record -g output to see if something inside interrupt handling codepath takes longer (on bare metal you can see inside hardirq handler code too)

Would be interesting to see if with IOMMU each interrupt handling takes longer on CPU (or is the handling time roughly the same, but interrupt delivery takes longer). There may be some interrupt coalescing thing going on as well (don't know exactly what else gets enabled with IOMMU).

Since interrupts are raised "randomly", independently from whatever your app/kernel code is running on CPUs, it's a bit harder to visualize total interrupt overhead in something like flamegraphs, as the interrupt activity is all over the place in the chart. I used flamegraph search/highlight feature to visually identify how much time the interrupt detours took during stress test execution.

Example here (scroll down a little):

https://tanelpoder.com/posts/linux-hiding-interrupt-cpu-usag...

eivanov89•36m ago
Unfortunately, we don't have a proper measurements for IOPOLL mode with and without IOMMU, because initially we didn't configure IOPOLL properly. However, I bet that this mode will be affected as well, because disk still has to write using IOMMU.

You suggest a very interesting measurements. I will keep it in my mind and try during next experiments. Wish I have read this before to apply during the past runs :)

tanelpoder•30m ago
Yeah you'd still have the IOMMU DMA translation, but would avoid the interrupt overhead...

Jean E Sammet

https://en.wikipedia.org/wiki/Jean_E._Sammet
1•keepamovin•33s ago•0 comments

The Computer That Predicted the U.S. Would Win the Vietnam War

https://www.theatlantic.com/technology/archive/2017/10/the-computer-that-predicted-the-us-would-w...
1•m-hodges•43s ago•0 comments

Show HN: Giftwrap, a simple go build and release tool

https://indrora.github.io/giftwrap/
1•indrora•1m ago•0 comments

Transitioning from Java Syntax to Tier-1 Production Standards

https://mallon.associates/courses/introduction-to-java-programming/
1•markburslem•1m ago•0 comments

Building an Invisible Daemon: Architecture Patterns for Local Developer Tools

https://cocoindex.io/blogs/building-an-invisible-daemon
1•georgehe9•1m ago•0 comments

InariWatch – Open-source AI monitoring that writes the fix while you sleep

https://www.inariwatch.com/
1•jesusbr•1m ago•0 comments

Meta's Rogue AI Agent Gave Engineers Access They Shouldn't Have Had

https://grith.ai/blog/meta-ai-agent-unauthorized-access
1•edf13•2m ago•0 comments

BasicBox: A 486 PC emulator written in Visual Basic 6

https://github.com/mikechambers84/BasicBox
1•st_goliath•2m ago•0 comments

Show HN: Gemini can now natively embed video, so I built sub-second video search

https://github.com/ssrajadh/sentrysearch
1•sohamrj•3m ago•0 comments

Finland reconsiders AWS election system migration, citing geopolitical tensions

https://oikeusministerio.fi/-/vuoden-2027-eduskuntavaalit-toteutetaan-nykyisen-vaalitietojarjeste...
2•huhhuh•4m ago•1 comments

Zooming Out: WebinarTV's Rampant Scraping of Online Meetings

https://cyberalberta.ca/zooming-out-webinartvs-rampant-scraping-of-online-meetings
1•toomuchtodo•7m ago•1 comments

Show HN: WordPress Next-Gen images with cross browser support

https://berqwp.com/how-berqwp-fluid-images-delivers-the-perfect-image-to-every-device/
1•hamzamairaj•8m ago•0 comments

Musk says SpaceX and Tesla to build advanced chip factories in Austin

https://www.reuters.com/business/autos-transportation/musk-says-spacex-tesla-build-advanced-chip-...
1•born2web•8m ago•0 comments

Fragile States Index

https://fragilestatesindex.org/
1•manx•9m ago•0 comments

Andy Weir on Writing the Hit Book Behind the Movie 'Project Hail Mary'

https://www.nytimes.com/2026/03/20/podcasts/andy-weir-hail-mary.html
1•pseudolus•9m ago•1 comments

The Engineer Who Tried to Put Age Verification into Linux

https://www.sambent.com/the-engineer-who-tried-to-put-age-verification-into-linux-5/
1•rjmunro•10m ago•1 comments

Deepfake X-Rays Fool Radiologists and AI

https://www.rsna.org/news/2026/march/chatgpt-generated-radiographs
1•geox•10m ago•0 comments

Telegram Outages Spike in Kremlin's Push for Digital Control

https://jamestown.org/telegram-outages-spike-in-kremlins-push-for-digital-control/
1•kome•10m ago•0 comments

Tango Therapy: How the Dance of Passion Is Helping Parkinson's Patients

https://www.nytimes.com/2026/03/24/health/tango-therapy-parkinsons.html
1•Brajeshwar•11m ago•0 comments

Designing a Test Runner for AI Agents

https://www.pureinference.com/insights/designing-a-test-runner-for-ai-agents
2•eagerpace•13m ago•1 comments

The Game of Terminal Maneuvers

https://www.ethanheilman.com/x/31/index.html
1•EthanHeilman•14m ago•0 comments

My boss won't let OpenClaw run SSH commands anymore – until I added this guard

https://github.com/yanbo92/ssh-guard
2•yanbo92•14m ago•0 comments

Tell HN: report@cisa.dhs.gov no longer operational

3•toomuchtodo•18m ago•0 comments

The more AI I used, the worse my code got

https://www.wespiser.com/posts/2026-03-22-AI-Expansion-vs-Software-Pruning.html
5•wespiser_2018•19m ago•5 comments

Databricks Announces Lakewatch: New Open, Agentic SIEM

https://www.databricks.com/blog/databricks-announces-lakewatch-new-open-agentic-siem
1•zX41ZdbW•20m ago•1 comments

Inceptionlabs AI SDK Provider

https://github.com/welidev/inception-ai-provider
1•weli•21m ago•0 comments

AGPLv3 argument against clean room (re)engineering

3•northlondoner•21m ago•0 comments

Don't Forget Your Superpower

https://superpath-weekly.beehiiv.com/p/don-t-forget-your-superpower
1•herbertl•22m ago•0 comments

VesselJS – A JavaScript library for conceptual ship design

https://github.com/shiplab/vesseljs
1•alumic•22m ago•0 comments

A tool that learns to write like you

https://toneswap.app
1•cammyjr•22m ago•0 comments