Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Google Cloud Platform icon
Labs

Monitor Systems for Vital Characteristics

In this exercise, you will need to configure monitoring on a system with Performance Co-Pilot. *This course is not approved or sponsored by Red Hat.*

Google Cloud Platform icon
Lab platform
Lab Info
Level
Intermediate
Last updated
Jun 22, 2025
Duration
1h 30m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Install Performance Co-Pilot.

    Install pcp and pcp-system-tools.

    Enable and start the pmcd and pmlogger services.

  2. Challenge

    Take a baseline of CPU load.

    Take a baseline of the kernel.all.load metric for 10 seconds and put this into the file /home/cloud_user/kernel.all.load.txt.

    You can do this using the pmval or pmrep command:

    pmval -T 10s kernel.all.load > /home/cloud_user/kernel.all.load.txt
    

    Or:

    pmrep -T 10s kernel.all.load > /home/cloud_user/kernel.all.load.txt
    
  3. Challenge

    Take a baseline of disk I/O.

    Take a baseline of the disk.partitions.total_rawactive metric for 10 seconds and put this into the file /home/cloud_user/disk.partitions.total_rawactive.txt.

    You can do this using the pmval or pmrep command:

    pmval -T 10s disk.partitions.total_rawactive > /home/cloud_user/disk.partitions.total_rawactive.txt
    

    Or:

    pmrep -T 10s disk.partitions.total_rawactive > /home/cloud_user/disk.partitions.total_rawactive.txt
    
  4. Challenge

    Generate some disk I/O and CPU load.

    By now, pmlogger has been running for a few minutes. Generate some load so that we can look at it in the archive.


    Before and after each of the commands that generate load, make a note of the system time. You can do so using the command:

    date
    

    Generate some CPU load

    Run the following command to generate some CPU load for 1 minute:

    date && timeout -sHUP 1m openssl speed
    

    Generate some disk I/O

    Run the following command to generate some disk I/O:

    date && fallocate -l 1G /home/cloud_user/bigfile && shred -zvu -n 1 /home/cloud_user/bigfile
    

    Make a note of the start and end times from the commands above. We'll need them to know when to look for the increases in resource usages.

  5. Challenge

    Verify the CPU and disk load in the pcp archive file.

    Get the pcp archive file:

    pcp | grep logger
    

    Look in the archive log directory and make note of the archive files:

    ls -lh /var/log/pcp/pmlogger/ip-10-0-1-10.ec2.internal/
    

    Depending on how long you've taken to do these tasks, the archive log may have rolled over to a new file. The format of the filename is YYYYMMDD.HH.MM. Using your notes of when you ran the CPU and disk I/O commands, determine which file to use.


    Display the kernel.all.load values from the selected archive log in 1 minute increments:

    Note: You can use pmval or pmrep here, with these particular metrics, I find pmrep to be easier to read.

    pmrep -t 1m -a /var/log/pcp/pmlogger/ip-10-0-1-10.ec2.internal/<FILE> kernel.all.load
    

    Display the disk.partitions.total_rawactive values from the selected archive log in 1 minute increments:

    pmrep -t 1m -a /var/log/pcp/pmlogger/ip-10-0-1-10.ec2.internal/<FILE> disk.partitions.total_rawactive
    
About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight