by smlckz on 5/24/21, 11:31 AM with 16 comments
by Zababa on 5/24/21, 8:10 PM
by rwmj on 5/24/21, 6:20 PM
- If I want to write a multithreaded program, is it best to have one io_uring per thread?
- Per CPU core?
- Per device or PCIe lane to the device? (It might make sense ...)
- Or one for the whole program? (Will Linux distribute requests across cores and run them in parallel for me?)
- If I'm writing a library that uses io_uring, should I create my own io_uring or offer an interface to add requests to one which the main program creates? (Or perhaps both?)
by Zababa on 5/24/21, 12:11 PM
const grent = match (passwd::getgroup(group)) {
void => fmt::fatal("No '{}' group available", group),
gr: passwd::grent => gr,
};
Interesting, is void being used as the "None" of an option type here? At least that's what it looks like to me.by hawski on 5/24/21, 9:05 PM