File tree 2 files changed +49
-4
lines changed
2 files changed +49
-4
lines changed Original file line number Diff line number Diff line change 1
1
# Checking Resources
2
+ Demonstrate how to use various commands to verify resource usage in the OS.
3
+
2
4
3
5
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
+ ```
8
21
9
22
## Sockets
10
23
11
24
``` sh
12
25
# listening sockets
13
26
ss -l
14
27
```
28
+ ## Memory
15
29
30
+ ``` sh
16
31
free -h
17
32
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
+
Original file line number Diff line number Diff line change @@ -123,6 +123,10 @@ Steps [README.md](./24_finding_files/README.md)
123
123
Demonstrate how to setup a cronjob
124
124
Steps [ README.md] ( ./26_cron/README.md )
125
125
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
+
126
130
## TODO:
127
131
* Globbing
128
132
* Process Substition versus command substitution < <() < $()
You can’t perform that action at this time.
0 commit comments