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 31, 2021
1 parent 88a9f26 commit 6f3c5bb
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 @@ -132,6 +132,10 @@ Demonstrate how to use journalctl to discover logs
Steps [README.md](./27_journalctl/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 6f3c5bb

Please sign in to comment.