We have this infrastructure in the kernel for doing asynchronous IO, which sits in fs/aio.c and fs/direct-io.c mainly. It works fine and it's pretty fast. From userspace you would link with -laio and use the functions there for hooking into the syscalls. However, it's only really async for direct uncached IO (files opened with O_DIRECT). This last little detail essentially means that it's largely useless to most people. Oracle uses it, and other databases may as well. But nobody uses aio on the desktop or elsewhere simply because it isn't a good fit when O_DIRECT is required - you then need aligned IO buffers and transfer sizes and you lose readahead. The alignment and size restrictions also make it difficult to convert existing apps to use libaio with O_DIRECT, since it requires more than just a straight forward conversion. It adds complexity.
Over the years, several alternative approaches to async IO have been proposed/developed. We've had several variants of uatom/syslet/fibril/threadlet type schemes, which all boil down to (just about) the same type of implementation - when a process is about to block inside the kernel, a cloned process/thread returns to userspace on behalf of the original process and informs it of the postponed work. The completed events can then later be retrieved through some sort of get_event/wait_event type interface, similar to how you reap completions with other types of async IO. Or the implementation provided a callback type scheme, similar to how eg a signal would be received in the process. This sort of setup performed acceptably, but suffered from the schizophrenic disorder of split personalities due to the change in personalities on return from the kernel. Various approaches to "fix" or alleviate this problem weren't particularly pretty.
Recently, Zach Brown started playing with something he calls acall. The user interface is pretty neat, and (like the above syslet etc like implementations), it allows for performing all system calls in an async nature. Zach took a more simplified approach for making it async in the kernel, by punting every operation to a thread in the kernel. This obviously works and means that the submission interface is very fast, which is of course a good thing. It also means that some operations are going to be performed by someone else than the process that requested the operation, which has implications for IO scheduling in the system. Advanced IO schedulers like CFQ tracks IOs on a per-process basis, and they then need the specific process context for both performance and accounting reasons. Last year I added a CLONE_IO flag for sharing the IO context across processes for situations like this, so this part is actually easily fixable by just using that clone flag for creation of the kernel worker thread. Obviously, doing a fork() like operation for every async system call isn't going to scale, so some sort of thread pooling must be put in place for speeding it up. Not sure what Zach has done there yet (I don't think a version with that feature has been released yet), but even with that in place there's still going to be identity fiddling when a thread is taking over work from a user space process. Apart from the overhead of juggling these threads, there's also going to be a substantial increase in context switch rates with this type of setup. And this last bit is mostly why I don't think the acall approach will end up performing acceptably for doing lots of IO, while it does seem to be quite nice for the more casual async system call requirements.
A third and final possibility also exists, and this is what I have been trying to beat into submission lately. Back in the very early 2.6 kernel days, Suparna Bhattacharya led an effort to add support for buffered IO to the normal fs/aio.c submission path. The patches sat in Andrews -mm tree for some time, before they eventually got dropped due to Andrew spending too much time massaging them into every -mm release. They work by replacing the lock_page() call done for waiting IO completion to a page with another helper function - I call it lock_page_async() in the current patches. If the page is still locked when this function is called, we return -EIOCBRETRY to the caller, informing him that he should retry this call later on. When a process in the kernel wants to wait for some type of event, a wait queue is supplied. When that event occurs, the other end does a wake up call on that wait queue. This last operation invokes a callback in the wait queue, which normally just does a wake_up_process() like call to wake the process blocked for this event. With the async page waiting, we simply provide our own wait queue in the process structure and the callback given from fs/aio.c then merely adds the completed event to the aio ringbuffer associated with the IO context for that IO and process.
This last approach means that we have to replace the lock_page() calls in the IO path with lock_page_async() and be able to handle an "error" return from that function. But apart from that, things generally just work. The original process is still the one that does the IO submission, thus we don't have to play tricks with identity thefts or pay the large context switch fee for each IO. We also get readahead. In other words, it works just like you expect buffered IO to work. Additionally, the existing libaio interface works for this as well. Currently my diffstat looks like this:
19 files changed, 445 insertions(+), 153 deletions(-)
for adding support for the infrastructure, buffered async reads, and buffered async writes for ext2 and ext3. That isn't bad, imho.
Initial performance testing looks encouraging. I'll be back with more numbers and details, as progress and time permits!
Intelligence View
⚡ tsecurity.de Intelligence
Buffered async IO
We have this infrastructure in the kernel for doing asynchronous IO, which sits in fs/aio.c and fs/direct-io.c mainly. It works fine and it's pretty fast. From…
Powered by tsecurity.de
tsecurity.de Hub
Briefing sécurité Gratuit · désabonnement en 1 clic
Intelligence Digest — gratuit
Chaque jour, les principales actualités sécurité · résiliable à tout moment
Évaluation communautaire & preuve sociale
⭐ Avis des lecteurs
–
Ø / 5.0
★★★★★
Pas encore d'évaluation des lecteurs
Cet article vous a-t-il été utile ?
0
Powered by tsecurity.de
tsecurity.de Hub
Groupes d’histoires apparentées & sources (IA vectorielle)
6 Cluster
Groupes d’histoires apparentées & sources (IA vectorielle)
26 sources
Black Friday Oura Ring deals: The best of the deals so far, picked by a wearable-tech expert
Latest from TechRadar il y a 14 min.
25 autres sources
CCNETil y a 6 ansOur Favorite Blenders of 2026 Are on Sale Ahead of Black Friday CCNETil y a 18 min.Brighten Up Your Day by Saving 20% Off Flashlights With Olight’s Black Friday Sale CCNETil y a 10 min.Live: Black Friday Deals Are Here. Shop Expert Picks Across Tech, Everyday Essentials and More at Up to 60% Off GGolem.deil y a 24 min.Anzeige: Logitech-Tastatur MX Keys S am Black Friday zum Sensationspreis auf Amazon PPC-WELTil y a 36 min.Luminar zum Black Friday: KI-Bildbearbeitung für nur 79,20 Euro LLatest from TechRadaril y a 51 min.This is the pair of open earbuds to hunt down over Black Friday LLatest from TechRadaril y a 1 hBest AirPods Black Friday deals: all live savings on AirPods Pro 3 and more CComputer Bildil y a 1 hPhilips Sonicare DiamondClean 9000 zum Black Friday günstiger Nnetzwelt.deil y a 2 hESR startet mit Black-Friday-Rabatten: Diese AirPods-Hüllen lohnen sich jetzt Nnetzwelt.deil y a 2 hPlayStation 5 geschenkt: Diese Black-Friday-Aktion legt die Konsole gratis obendrauf Nnetzwelt.deil y a 1 h6 Dyson-Staubsauger im Vergleich: Dieser Sauger wird am Black Friday überraschend zum Preis/Leistungssieger Nnetzwelt.deil y a 1 hMonitore im Angebot zum Black Friday: Gutes Bild für Office, Gaming und mehr GGolem.deil y a 54 min.Anzeige: Akkuschrauber mit 20 Bits zum Black Friday erstmals unter 50 Euro bei Amazon PPC-WELTil y a 1 hDie günstigsten Handytarife an Black Friday von 10 GB bis Unlimited: Hier lohnt sich ein Wechsel PPC-WELTil y a 1 hBlack Friday 2026 bei LiberNovo: Ergonomische Bürostühle mit bis zu 44 Prozent Rabatt LLatest from TechRadaril y a 1 hThe best Black Friday robot vacuum deals: Dreame, Shark, Dyson, and Roborock GGolem.deil y a 1 hAnzeige: Topdon-Starthilfe-Powerbank für Kfz zum Black-Friday-Bestpreis nur rund 85 Euro Hheise online Newsil y a 1 hBlack Friday: Die besten Kopfhörer zum Tiefstpreis – Sonos Ace, Nothing & Shokz LLatest from Windows Centralil y a 1 hDell's Black Friday deals drop major savings on Alienware OLED monitors CCNETil y a 2 ansMake Every Night Game Night and Save $90 on the Nex Playground With This Black Friday Deal DDEV Communityil y a 1 hThe app is part of the gadget: 14,000 App Store reviews of 28 device apps before Black Friday LLatest from TechRadaril y a 2 hBlack Friday tech deals under $100 / £100: Fire TV Sticks, earbuds, coffee machines and more CCaschys Blogil y a 3 hGoogle One: Black-Friday-Angebot mit bis zu 50 Prozent Rabatt Nnetzwelt.deil y a 2 hDem Testsieger ebenbürtig: Zum Black Friday stürzt Xiaomis stärkster E-Scooter im Preis ab MMacerkopf.deil y a 2 hFotos verbessern mit Aiarty: 52 % Rabatt + Gratisgeschenke zum Black Friday
8 sources
CVE-2026-119727 | Red Hat Enterprise Linux 7/8/9/10 gst-plugins-bad integer underflow
VulDB Updates il y a 1 h
7 autres sources
VVulDB Updatesil y a 1 hCVE-2026-119728 | Red Hat Enterprise Linux H.264 video parser null pointer dereference VVulDB Updatesil y a 2 hCVE-2026-104039 | Red Hat Enterprise Linux/OpenShift Container Platform PAM GSSAPI Responder denial of service VVulDB Updatesil y a 2 hCVE-2026-16560 | Red Hat Directory Server/Enterprise Linux 389-ds-base heap-based overflow VVulDB Updatesil y a 2 hCVE-2026-19548 | Red Hat Enterprise Linux ld ld/ldmain.c add_archive_element use after free VVulDB Updatesil y a 2 hCVE-2026-18663 | Red Hat Directory Server/Enterprise Linux 389-ds-base get_ldapmessage_controls_ext double free VVulDB Updatesil y a 2 hCVE-2026-12353 | Red Hat Certificate System/Enterprise Linux TLS Endpoint path traversal VVulDB Updatesil y a 2 hCVE-2026-18047 | Red Hat Certificate System/Enterprise Linux ACME responder web.xml improper authorization (Nessus ID 330485)
6 sources
[NEU] [hoch] Gradle: Mehrere Schwachstellen ermöglichen Manipulation von Dateien
BSI Warn- und Informationsdienst (WID): Schwachstellen-Informationen (Security Advisories) il y a 1 h
5 autres sources
BBSI Warn- und Informationsd…il y a 1 h[NEU] [hoch] Tanium Endpoint Management: Mehrere Schwachstellen BBSI Warn- und Informationsd…il y a 1 h[NEU] [hoch] Traefik: Mehrere Schwachstellen BBSI Warn- und Informationsd…il y a 1 h[NEU] [mittel] Mattermost: Mehrere Schwachstellen ermöglichen Offenlegung von Informationen BBSI Warn- und Informationsd…il y a 1 h[NEU] [hoch] CODESYS Visualization: Mehrere Schwachstellen ermöglichen BBSI Warn- und Informationsd…il y a 1 h[UPDATE] [hoch] Oracle Financial Services Applications: Mehrere Schwachstellen
5 sources
OpenAI and Cisco Release Shirudo Linux Security Tool
IT Security News il y a 7 min.
4 autres sources
BBleepingComputeril y a 37 min.New Shirudo tool uses AI to shield unpatched Linux systems from exploits IIT Security Newsil y a 1 hOpenAI, Cisco Unveil Open Source Tool to Shield Unpatched Linux Systems IIT Security Newsil y a 1 hOpenAI and Cisco Release Open-Source Tool to Shield Unpatched Linux Systems SSecurityWeekil y a 1 hOpenAI, Cisco Unveil Open Source Tool to Shield Unpatched Linux Systems
5 sources
[NEU] [mittel] NGINX NGINX Plus: Schwachstelle ermöglicht Denial of Service
BSI Warn- und Informationsdienst (WID): Schwachstellen-Informationen (Security Advisories) il y a 1 h
4 autres sources
BBSI Warn- und Informationsd…il y a 1 h[NEU] [mittel] Google Chrome: Schwachstelle ermöglicht nicht spezifizierten Angriff BBSI Warn- und Informationsd…il y a 1 h[NEU] [mittel] Check Point Zone Alarm: Schwachstelle ermöglicht Ausführen von beliebigem Programmcode mit Administratorrechten BBSI Warn- und Informationsd…il y a 1 h[NEU] [mittel] React: Schwachstelle ermöglicht Denial of Service BBSI Warn- und Informationsd…il y a 1 h[NEU] [hoch] Rsync: Schwachstelle ermöglicht Denial of Service
4 sources
IT Security News Hourly Summary 2026-11-24 15h : New phpAfterShell Bug Reopens PHP2Shell Attack Path and 17 more posts
IT Security News il y a 11 min.
3 autres sources
IIT Security Newsil y a 39 min.New phpAfterShell Bug Reopens PHP2Shell Attack Path IIT Security Newsil y a 1 hIT Security News Hourly Summary 2026-11-24 14h : EvilTokens Phishing Infrastructure Resurfaces After Microsoft Takedown With New Device-Code Attack Hosts and 13 more posts IIT Security Newsil y a 2 hIT Security News Hourly Summary 2026-11-24 13h : Five TEFAF robbery suspects added to EU Most Wanted and 19 more posts
Mehr aus dieser Kategorie
Blättern: Pfeiltasten [ ← ] [ → ] · Tasten j / k · mobil: Wischen
HAND-OFF
Auf Smartphone übergeben (ADVISORY)
Scannen Sie den QR-Code mit der Smartphone-Kamera für sofortigen mobilen Zugriff:
https://tsecurity.de/fr/3500978/serveurs-unix-linux/buffered-async-io/
💬 Discussion communautaire et commentaires
Lancez la discussion dans le flux diffusé du Social Chat ou proposez ci-dessus une contribution experte via le formulaire de complément.