Controlling blkio usage
In this scenario, Vicky is once again trying to hog system resources for herself. This time, she's reading so much from the system hard drive that nobody else can use it. Before we get to that, you'll need to install iotop
on your virtual machines, so that you can measure the amount of bandwidth that Vicky is using. On the Ubuntu machine, do:
sudo apt install iotop
On the Alma machine, do:
sudo dnf install iotop
In the remote login window where you're running top
, quit top
and then do:
sudo iotop -o
Now that we have things set up, let's see about setting a blkio
limit for Vicky.
Setting a blkio limit for Vicky
In Vicky's remote login window, have her use our good friend dd
to create a dummy file, like this:
vicky@ubuntu2004:~$ dd if=/dev/zero of=afile bs=1M count=10000 10000+0 records in 10000+0 records out 10485760000 bytes (10 GB, 9.8 GiB) copied, 17.4288 s, 602 MB/s vicky@ubuntu2004:~$
Cool. Vicky has...