user - nice -11
但是我怎样才能为ionice做同样的事情
ionice -c 1 -p 31828
我收到了错误
ionice: ioprio_set Failed: Operation not permitted解决方法 此错误(EPERM)表示您没有足够的权限来执行该 *** 作. ioprio_set():
An unprivileged process may only set the I/O
priority of a process whose real UID matches the real or effective UID
of the calling process. A process which has the CAP_SYS_NICE
capability can change the priority of any process.
因此,要么成为超级用户(使用sudo),要么在自己的一个进程上使用ionice.
总结以上是内存溢出为你收集整理的linux – 如何为用户提供ionice级别权限?全部内容,希望文章能够帮你解决linux – 如何为用户提供ionice级别权限?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)