Skip to content

Commit

Permalink
Update some of tools
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisguest75 committed Jan 28, 2021
1 parent eedb742 commit 347e355
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 4 deletions.
49 changes: 45 additions & 4 deletions 27_checking_resources/README.md
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

4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ Steps [README.md](./24_finding_files/README.md)
Demonstrate how to setup a cronjob
Steps [README.md](./26_cron/README.md)

## Example 27 - Checking Resources
Demonstrate how to use various commands to verify resource usage in the OS.
Steps [README.md](./27_checking_resources/README.md)

## TODO:
* Globbing
* Process Substition versus command substitution < <() < $()
Expand Down

0 comments on commit 347e355

Please sign in to comment.