Linux 进程相关的一些命令
来源:互联网 发布:相册制作软件哪款好用 编辑:程序博客网 时间:2024/05/18 00:29
修改进程优先级
chrt
- 具体细节查看man
chrt -r -p priority pid ,例子如下
chrt -r -p 99 pidxxx chrt -p pid-f, --fifo Set scheduling policy to SCHED_FIFO. -i, --idle Set scheduling policy to SCHED_IDLE (Linux-specific). The prior‐ ity argument has to be set to zero.-p, --pid Operate on an existing PID and do not launch a new task. -r, --rr Set scheduling policy to SCHED_RR. When policy is not defined the SCHED_RR is used as default.
You can also retrieve the real-time attributes of an existing task:
chrt -p pid 可以查看实时进程的优先级调度策略
nice
调整优先级
-n, –adjustment=N
add integer N to the niceness (default 10)
renice
man renice
查看调度策略
ps
- ps -eo pid,tid,class | grep 23126
To see every process with a user-defined format:
ps -eo pid,tid,class,rtprio,ni,pri,psr,pcpu,stat,wchan:14,comm ps axo stat,euid,ruid,tty,tpgid,sess,pgrp,ppid,pid,pcpu,comm ps -Ao pid,tt,user,fname,tmout,f,wchan
查看进程在哪个cpu
top
- top命令
- 按f
- 选择需要display的内容,按d
阅读全文
0 0
- Linux 进程相关的一些命令
- linux进程相关的命令
- linux进程相关的命令
- linux 进程的相关命令
- Linux的进程相关命令
- 补充一些linux进程相关的东西
- Linux进程相关命令
- linux进程相关命令
- Linux系统进程相关的命令
- Linux查看进程资源的一些命令
- linux 跟进程有关的一些命令
- linux 与库相关的一些命令
- linux 与库相关的一些命令
- Linux驱动相关的一些命令
- linux进程相关的几个命令+其他命令
- linux进程相关命令总结
- linux进程相关命令整理
- linux下一些相关命令
- 1526:这个月有多少天
- C++中模板定义与声明为什么放在同一个文件中
- 03:计算(a+b)/c的值
- CSS隐藏文字并用图片代替
- spring aop 日志记录管理
- Linux 进程相关的一些命令
- Servlet Filter
- java调用webservice
- 常用matplotlib.pyplot画图系列(组)
- vue-router
- Redis配置参数的热修改 设置有效时间
- JAVA---线程生命周期及状态转换图
- 社交系统ThinkSNS V4更新播报
- php文件大文件上传