Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Linux Service Management Made Easy with systemd

You're reading from   Linux Service Management Made Easy with systemd Advanced techniques to effectively manage, control, and monitor Linux systems and services

Arrow left icon
Product type Paperback
Published in Feb 2022
Publisher Packt
ISBN-13 9781801811644
Length 420 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Donald A. Tevault Donald A. Tevault
Author Profile Icon Donald A. Tevault
Donald A. Tevault
Arrow right icon
View More author details
Toc

Table of Contents (23) Chapters Close

Preface 1. Section 1: Using systemd
2. Chapter 1: Understanding the Need for systemd FREE CHAPTER 3. Chapter 2: Understanding systemd Directories and Files 4. Chapter 3: Understanding Service, Path, and Socket Units 5. Chapter 4: Controlling systemd Services 6. Chapter 5: Creating and Editing Services 7. Chapter 6: Understanding systemd Targets 8. Chapter 7: Understanding systemd Timers 9. Chapter 8: Understanding the systemd Boot Process 10. Chapter 9: Setting System Parameters 11. Chapter 10: Understanding Shutdown and Reboot Commands 12. Section 2: Understanding cgroups
13. Chapter 11: Understanding cgroups Version 1 14. Chapter 12: Controlling Resource Usage with cgroups Version 1 15. Chapter 13: Understanding cgroup Version 2 16. Section 3: Logging, Timekeeping, Networking, and Booting
17. Chapter 14: Using journald 18. Chapter 15: Using systemd-networkd and systemd-resolved 19. Chapter 16: Understanding Timekeeping with systemd 20. Chapter 17: Understanding systemd and Bootloaders 21. Chapter 18: Understanding systemd-logind 22. Other Books You May Enjoy

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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image