Linux:io_uring

参考

https://kernel.dk/io_uring.pdf
https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/9.3_release_notes/technology-previews#technology-previews-file-systems-and-storage
https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/9.4_release_notes/kernel_parameters_changes

简介

在下面这个链接里有简单的介绍
https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/9.3_release_notes/technology-previews#technology-previews-file-systems-and-storage

详细的说明:https://kernel.dk/io_uring.pdf

io_uring_group

1 - A process must either be privileged (CAP_SYS_ADMIN) or be in the io_uring_group group to create an io_uring instance.
-1 (default) - Only processes with the CAP_SYS_ADMIN capability can create io_uring instances.

io_uring_disabled

这个参数默认设置是2,就是禁止用户使用io_uring的功能,是为了安全。这个默认disable的做法应该是一般性的策略,只有用户真正知道自己在干什么的时候,再打开也不晚。
值域:
0 - All processes can create io_uring instances as normal.
1 - io_uring creation is disabled for unprivileged processes not in the io_uring_group group. io_uring_setup() fails with -EPERM. Existing io_uring instances can still be used. See the documentation for io_uring_group for more information.
2 (default) - io_uring creation is disabled for all processes. io_uring_setup() always fails with -EPERM. Existing io_uring instances can still be used.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

mzhan017

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值