-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
88a9f26
commit 6f3c5bb
Showing
2 changed files
with
49 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,58 @@ | ||
# Checking Resources | ||
Demonstrate how to use various commands to verify resource usage in the OS. | ||
|
||
|
||
TODO: | ||
Open sockets | ||
Free memory | ||
File handles | ||
Look at the brenden greigg resources | ||
* Open sockets | ||
* Free memory | ||
* File handles | ||
* Look at the brenden gregg resources http://www.brendangregg.com/linuxperf.html | ||
* Filesystem | ||
* Procfs | ||
* debugfs | ||
https://github.com/raboof/nethogs | ||
|
||
## Disk | ||
|
||
```sh | ||
# free space | ||
df -h | ||
``` | ||
|
||
## Sockets | ||
|
||
```sh | ||
# listening sockets | ||
ss -l | ||
``` | ||
## Memory | ||
|
||
```sh | ||
free -h | ||
|
||
vmstat | ||
``` | ||
|
||
## IO | ||
|
||
[sysstat](https://www.linux.com/training-tutorials/sysstat-howto-deployment-and-configuration-guide-linux-servers/) | ||
|
||
```sh | ||
|
||
sudo apt install sysstat | ||
|
||
# cpu usage | ||
mpstat -A | ||
|
||
|
||
|
||
``` | ||
|
||
|
||
|
||
top | ||
systemd-cgtop | ||
systemd-analyze blame | ||
|
||
systemctl list-units -t service | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters