Last Sync: 2022-08-31 11:30:04
This commit is contained in:
parent
5af5455188
commit
1103a46204
1 changed files with 17 additions and 0 deletions
|
@ -34,3 +34,20 @@ _Here I have pressed `u` to show only the processes associated with my user:_
|
||||||
## System calls: `strace`
|
## System calls: `strace`
|
||||||
|
|
||||||
A system call is when a process requests a service from the [kernel](/Operating_Systems/The_Kernel.md), for instance an I/O operation to memory. We can trace these system calls with `strace`.
|
A system call is when a process requests a service from the [kernel](/Operating_Systems/The_Kernel.md), for instance an I/O operation to memory. We can trace these system calls with `strace`.
|
||||||
|
|
||||||
|
## CPU performance
|
||||||
|
|
||||||
|
We can use the `uptime` program to assess overall CPU performance in the form of a load average.
|
||||||
|
|
||||||
|
> Load average is the number of active processes currently ready to run. It is an estimate of the number of processes that are capable of using the CPU at any given time.
|
||||||
|
|
||||||
|
`Uptime` gives you three load averages:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ uptime
|
||||||
|
11:19:16 up 14 days, 3:53, 1 user, load average: 0.84, 0.57, 0.50
|
||||||
|
```
|
||||||
|
|
||||||
|
- The three numbers are load averages for the past 1 minute, 5 minutes and 15 minutes respectively.
|
||||||
|
|
||||||
|
- A load average close to 0 is usually a good sign because it means that your processor isn't being challenged and you are conserving power. Anything equal to or above 1 means that a single process is using the CPU nearly all the time. You can identify that process with `htop` and it will obviously be near to the top. (This is often caused by Chrome and Electron-based software.)
|
||||||
|
|
Loading…
Add table
Reference in a new issue