Checking for free resources – memory and disk (free and df Here,
instead of seeing sda, we might see references to devices such as 8-0. In this case, the device’s name is using the values for the major/minor, which we can check in the /dev/ folder. We can see this by running ls -l /dev/*|grep 8, as shown in the following screenshot:
Figure 4.10 – Directory listing for /dev/ for locating the device corresponding to major 8 and minor Here, we can see that this corresponds to the full hard-drive statistics at /dev/sda.
TipProcessing the data via saris a good way to get insights into what’s
going on with our system, but since the sysstat package has been around fora longtime in Linux, there are tools such as sarstats (https://github.com/mbaldessari/sarstats) that help us process the data that’s recorded and present it graphically as ab Portable Document File (
PDF) file.
In
the following screenshot, we can seethe system service times for the different drives, along with a label at the time the system crashes. This helps us identify the system’s activity at that point:
Tools for Regular Operations
128
Figure 4.11 – sarstats graphics for the disk service’s time in the example PDF at https://acksyn.org/software/sarstats/sar01.pdf
Modern tooling for monitoring the system’s
resources has evolved, and
Performance Co-Pilot (pcp and, optionally, the pcp-gui package) can beset up for more powerful options. Just bear in mind that pcp requires us to also start the data collector on the system.
RHEL 9
also includes Cockpit, which is installed by default when we do a server installation. This package provides a set of tools that enable web management for the system, and it can also be made part of other products via plugins that extend its functionality.
The web service provided by Cockpit can be reached at your host IP at port 9090, so you should access https://localhost:9090 to get a login screen so that we can use our system credentials to log in.
Checking for free resources – memory and disk (free and df )
129
Share with your friends: