Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying OpenVZ Essentials
  • Table Of Contents Toc
OpenVZ Essentials

OpenVZ Essentials

By : Furman
4.5 (4)
close
close
OpenVZ Essentials

OpenVZ Essentials

4.5 (4)
By: Furman

Overview of this book

If you are a system administrator or Linux professional who wants to learn to set up, install, and manage OpenVZ containers on a server to implement OS-level virtualization, then this book is for you. Along with elementary knowledge of Linux programming, you need to have a conceptual understanding of system components and functions.
Table of Contents (8 chapters)
close
close

Managing and configuring the CPU

In this section, we are going to cover CPU management, including how to manage CPU share and configuring the number of CPUs inside more than one container.

CPU share

You can use the OpenVZ CPU resource utilities to allot to any container a guarantee of the amount of CPU time it receives.

vzcpucheck

We use the vzcpucheck command to check the current hardware node CPU utilization using the following command:

vzcpucheck

vzcpucheck

In the previous example, we can see that when we run vzcpucheck, Current CPU utilization is 2501 (this is the total number of CPU units consumed by the running container and processes on the server) and Power of the node is 159625 (which is the total CPU processing power).

In this example, we used the vzcpucheck command to show our changes to the current CPU utilization for the container 101.

Setting up a container to use a set amount of CPU units

To set the container to use a set amount of CPU time, we use the following vzctl command:

vzctl set 101...
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
OpenVZ Essentials
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon