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 di sicurezza Gratuito · disdetta in 1 clic
Intelligence Digest — gratuito
Ogni giorno le notizie di sicurezza più importanti · annullabile in qualsiasi momento
Valutazione della community & prova sociale
⭐ Giudizio dei lettori
–
Ø / 5.0
★★★★★
Ancora nessuna valutazione dei lettori
Questo articolo ti è stato utile?
0
Powered by tsecurity.de
tsecurity.de Hub
Cluster di storie correlate & fonti (IA vettoriale)
6 Cluster
Cluster di storie correlate & fonti (IA vettoriale)
24 fonti
Black Friday tech deals under $100 / £100: Fire TV Sticks, earbuds, coffee machines and more
Latest from TechRadar 1 h fa
23 altre fonti
CCaschys Blog2 h faGoogle One: Black-Friday-Angebot mit bis zu 50 Prozent Rabatt Nnetzwelt.de1 h faDem Testsieger ebenbürtig: Zum Black Friday stürzt Xiaomis stärkster E-Scooter im Preis ab MMacerkopf.de1 h faFotos verbessern mit Aiarty: 52 % Rabatt + Gratisgeschenke zum Black Friday CCNET11 giorni faGrab Our Top Gaming Chair Pick for up to $200 Off in Secretlab’s Black Friday Sale LLatest from TechRadar1 h faWalmart's Black Friday deals are live — shop our top picks now LLatest from TechRadar1 h faLive: Apple Black Friday deals — save on AirPods Pro 3, iPad 11-in, Apple Watch 12, AirTags & more WWIRED1 h faThe Best Early Black Friday MacBook Deals (2026) LLatest from Windows Central1 h faEssential Xbox Ally travel accessories drop their prices before Black Friday IIT Security News1 h faBeyond Black Friday: The Cyber Threats Retailers Need to Prepare for in 2026 LLatest from TechRadar1 h faBest Black Friday streaming deals from 99 cents: Apple TV, HBO Max, Paramount+, Peacock, and more CCNET1 h faThis Bissell Vacuum Tackles Tough Pet Hair and It’s Just $170 During the Black Friday Sales WWIRED1 h faGPS Dog Collar for Less: Our Top Tested Picks From Fi’s Black Friday Sale (2026) LLatest from Windows Central1 h faDell's excellent XPS laptops are up to 33% off in this early Black Friday sale WWinFuture News2 h faBlack Friday bei VZMore: Bis 600 Euro Rabatt auf Power-Mini-PCs LLatest from TechRadar2 h faThe best Black Friday turntable deals, as picked by an audio editor LLatest from TechRadar1 h fa40+ best Black Friday deals in the UK — Switch 2, Shark vacuums, iPhone 18, Lego, PS5 bundles, Samsung, LG OLED TVs, and more CCNET12 giorni faUpgrade Your Home Security for Less. Score Up to 65% Off With These Black Friday Ring Deals GGiga.de2 h faVor Black Friday zu viel bezahlt? Mit einem Trick könnt ihr doch noch sparen RSS- Futurezone1 h faStreaming-Sticks zur Black Week: Mit diesen Deals sparst du bis zu 46 % Tt3n.de2 h faBlack Friday: Diese Samsung-Angebote bei Amazon und Media Markt lohnen sich Nnetzwelt.de4 h faBlack-Friday-Kracher: Huawei-Smartwatch mit EKG für unter 150 Euro GGolem.de2 h faAnzeige: Sony WH-1000XM6 Referenz-Kopfhörer am Black Friday zum Amazon-Bestpreis MMacerkopf.de3 h faAmazon Black Friday: Apple Pencil, WISO Steuer 2027, Microsoft 365, iPhone 18 Cases und mehr
9 fonti
CVE-2026-99707 | Linux Kernel up to 6.12.117/6.18.63/7.3.4/7.4-rc1 khugepaged collapse_file use after free
VulDB Updates 2 h fa
8 altre fonti
VVulDB Updates2 h faCVE-2026-99728 | Linux Kernel up to 7.3.4/7.4-rc1 Deferred Split Scan mm/huge_memory deferred_split_scan/deferred_split_folio race condition VVulDB Updates2 h faCVE-2026-99715 | Linux Kernel up to 7.3.4/7.4-rc1 nvme-rdma nvme_rdma_queue_rq null pointer dereference VVulDB Updates2 h faCVE-2026-99730 | Linux Kernel up to 6.12.117/6.18.63/7.3.4/7.4-rc1 Filemap mm/filemap.c filemap_fault race condition VVulDB Updates2 h faCVE-2026-99724 | Linux Kernel up to 7.3.4/7.4-rc1 NTFS ntfs_read_compressed_block out-of-bounds VVulDB Updates2 h faCVE-2026-99725 | Linux Kernel up to 6.12.117/6.18.63/7.3.4/7.4-rc1 CIPSO cipso_v4_delopt buffer overflow VVulDB Updates2 h faCVE-2026-99735 | Linux Kernel up to 6.12.117/6.18.63/7.3.4/7.4-rc1 MGLRU mm/mglru.c walk_pud_range/walk_pmd_range race condition VVulDB Updates2 h faCVE-2026-99744 | Linux Kernel up to 6.12.117/6.18.63/7.3.4/7.4-rc1 atl1c atl1c_clean_rfd length buffer overflow VVulDB Updates2 h faCVE-2026-99746 | Linux Kernel up to 7.3.4/7.4-rc1 ASoC hda_sdw_bpt_close race condition
8 fonti
CVE-2026-104039 | Red Hat Enterprise Linux/OpenShift Container Platform PAM GSSAPI Responder denial of service
VulDB Updates 1 h fa
7 altre fonti
VVulDB Updates1 h faCVE-2026-16560 | Red Hat Directory Server/Enterprise Linux 389-ds-base heap-based overflow VVulDB Updates1 h faCVE-2026-19548 | Red Hat Enterprise Linux ld ld/ldmain.c add_archive_element use after free VVulDB Updates1 h faCVE-2026-18663 | Red Hat Directory Server/Enterprise Linux 389-ds-base get_ldapmessage_controls_ext double free VVulDB Updates1 h faCVE-2026-12353 | Red Hat Certificate System/Enterprise Linux TLS Endpoint path traversal VVulDB Updates1 h faCVE-2026-18047 | Red Hat Certificate System/Enterprise Linux ACME responder web.xml improper authorization (Nessus ID 330485) VVulDB Updates1 h faCVE-2026-16461 | Red Hat Enterprise Linux/OpenShift Container Platform rpcinfo rpcbdump stack-based overflow (Nessus ID 343944) VVulDB Updates2 h faCVE-2026-11790 | Red Hat Directory Server/Enterprise Linux 389 Directory Server resource consumption
5 fonti
tablet-qa: an open-source skill for checking iPad layouts
DEV Community 47 min. fa
4 altre fonti
Iinfosecurity-magazine.com1 h faOpenAI and Cisco Release Open-Source Tool to Shield Unpatched Linux Systems DDEV Community1 h faManaging Legal, Licensing, and Trademark Risks in Open-Source Kubernetes Educational Simulators DDEV Community2 h faTracky v0.1.0: first public MIT release of an open-source budget app DDEV Community1 h fago-bot: my open-source Go Harness and self-hosted personal agent
5 fonti
Cybersicherheit: Crowdstrike übernimmt Zscaler für 43,9 Milliarden Dollar - Aktien.news
Google Alert - Cybersicherheit 5 h fa
4 altre fonti
GGoogle Alert4 h faCrowdStrike übernimmt Zscaler: Zero Trust und KI-Sicherheit - it-business IIT Security News1 h faCrowdStrike To Pay $43.9bn For Zscaler Amid Cyber Consolidation IIT Security News1 h faIT Security News Roundup: 2026-11-24 Morning – CrowdStrike–Zscaler deal, Chrome and Windows flaws, AI agent risks LLatest from TechRadar2 h faCrowdStrike to acquire Zscaler in bumper $44 billion deal set to shake up the security industry
4 fonti
Azure API Management vulnerability exploited to steal customers’ secrets
Help Net Security 1 h fa
3 altre fonti
IIT Security News1 h faAttackers exploited an Azure API Management flaw to steal secrets, Microsoft warns IIT Security News2 h faMicrosoft Fixes Azure API Management Classic Flaw as Actor Targets Customer Secrets TThe Hacker News2 h faMicrosoft Fixes Azure API Management Classic Flaw as Actor Targets Customer Secrets
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/it/3500978/server-unix-e-linux/buffered-async-io/
💬 Discussione della community e commenti
Avvia la discussione nel flusso broadcast della Social Chat oppure invia qui sopra un contributo esperto tramite il modulo di integrazione.