坪山网站建设,免费直链平台,中国电信企业邮箱登录入口,吉林整站优化从图中看出#xff0c;一共有五个关于CPU的指标。分别如下#xff1a;
User
User表示#xff1a;CPU一共花了多少比例的时间运行在用户态空间或者说是用户进程(running user space processes)。典型的用户态空间程序有#xff1a;Shells、数据库、web服务器……
Nice
N…从图中看出一共有五个关于CPU的指标。分别如下
User
User表示CPU一共花了多少比例的时间运行在用户态空间或者说是用户进程(running user space processes)。典型的用户态空间程序有Shells、数据库、web服务器……
Nice
Nice表示可理解为用户空间进程的CPU的调度优先级范围为[-20,19]
You can set the nice value when launching a process with the nice command and then change it with the renice command. Only the superuser (root) can specify a priority increase of a process. 具体参考Cpu中的Nice是什么
System
System的含义与User相似。System表示CPU花了多少比例的时间在内核空间运行。分配内存、IO操作、创建子进程……都是内核操作。这也表明当IO操作频繁时System参数会很高。
When a user space process needs something from the system, for example when it needs to allocate memory, perform some I/O, or it needs to create a child process, then the kernel is running
Wait
在计算机中读写磁盘的操作远比CPU运行的速度要慢CPU负载处理数据而数据一般在磁盘上需要读到内存中才能处理。当CPU发起读写操作后需要等着磁盘驱动器将数据读入内存(可参考JAVA IO 以及 NIO 理解)从而导致CPU 在等待的这一段时间内无事可做。CPU处于这种等待状态的时间由Wait参数来衡量。
cpu is idle while waiting for an I/O operation to complete。The time the CPU spends in this state is shown by the wait statistic.
Idle
Idel表示CPU处于空闲状态时间比例。一般而言idel user nice 约等于100%