Skip to content

Commit 347e355

Browse files
committed
Update some of tools
1 parent eedb742 commit 347e355

File tree

2 files changed

+49
-4
lines changed

2 files changed

+49
-4
lines changed

27_checking_resources/README.md

+45-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,58 @@
11
# Checking Resources
2+
Demonstrate how to use various commands to verify resource usage in the OS.
3+
24

35
TODO:
4-
Open sockets
5-
Free memory
6-
File handles
7-
Look at the brenden greigg resources
6+
* Open sockets
7+
* Free memory
8+
* File handles
9+
* Look at the brenden gregg resources http://www.brendangregg.com/linuxperf.html
10+
* Filesystem
11+
* Procfs
12+
* debugfs
13+
https://github.com/raboof/nethogs
14+
15+
## Disk
16+
17+
```sh
18+
# free space
19+
df -h
20+
```
821

922
## Sockets
1023

1124
```sh
1225
# listening sockets
1326
ss -l
1427
```
28+
## Memory
1529

30+
```sh
1631
free -h
1732

33+
vmstat
34+
```
35+
36+
## IO
37+
38+
[sysstat](https://www.linux.com/training-tutorials/sysstat-howto-deployment-and-configuration-guide-linux-servers/)
39+
40+
```sh
41+
42+
sudo apt install sysstat
43+
44+
# cpu usage
45+
mpstat -A
46+
47+
48+
49+
```
50+
51+
52+
53+
top
54+
systemd-cgtop
55+
systemd-analyze blame
56+
57+
systemctl list-units -t service
58+

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ Steps [README.md](./24_finding_files/README.md)
123123
Demonstrate how to setup a cronjob
124124
Steps [README.md](./26_cron/README.md)
125125

126+
## Example 27 - Checking Resources
127+
Demonstrate how to use various commands to verify resource usage in the OS.
128+
Steps [README.md](./27_checking_resources/README.md)
129+
126130
## TODO:
127131
* Globbing
128132
* Process Substition versus command substitution < <() < $()

0 commit comments

Comments
 (0)