6 ms·
If you use io_uring to implement the Promise API, do you call it iou_ring?
by cormacrelf 4y ago
If you use io_uring to implement the Promise API, do you call it iou_ring?
- laerus 4y agoin the Future this will be funny
- svieira 4y agoThe only Task remaining is to wait until that Future is joined.
- kzrdude 4y agoWhy is it called "uring" anyway, what's the u for?
- erincandescent 4y agoUserspace
- wyldfire 4y agoThe letter u in contexts like these is usually used to represent the greek letter mu -- μ -- and like the SI units prefix indicates "micro". It might not be the case for io_uring, but that's what I'd assumed.
- taskforcegemini 4y agothat's what I thought as well. and something in relation to "micro kernel"
- WJW 4y agoThe "u" in "uring" has nothing to do with its size but rather with it being a "userspace ring". The ring buffers used by this particular API reside in userspace rather than in kernel memory.
- axboe 4y agoThis is correct, the "u" is for userspace/usermapped. The memory is actually allocate by the kernel, but it's mapped into the applications address space.
- loeg 4y ago> The ring buffers used by this particular API reside in userspace rather than in kernel memory. More specifically, the physical pages backing these ring buffers are pinned and mapped into both address spaces. (The kernel needs to be able to read submissions (sqes) off of it and write completions (cqes) into it, and could not do that if it were only mapped in userspace, or could be paged out.)
- localplume 4y agounlocked ring? the ring buffers are lock free. I'm not sure it stands for userspace since the ring buffers are shared between kernel and userspace, thats the core of io_uring, so that seems kind of misleading.
- riceart 4y agoRing buffers for the most part are typically lock free, so that’s a bit redundant. The special part is that the ring is directly accessible from userspace at all, as previously any ring buffer is internal.
- Conscat 4y agoI have struggled searching for any evidence, but most people seem to think it's "userspace".