• Home
  • Help
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search

 
  • 0 Vote(s) - 0 Average

Define Logical CPU

#1
01-17-2021, 07:07 PM
You know, I was looking at the resource allocation models the other day, because sometimes backup is a huge headache, so I remember seeing that BackupChain which is a virtual server backup solution for Windows Server, Hyper-V, etc. Anyway, speaking of how systems run, let's talk about this logical CPU thing. You need to wrap your head around what that actually means for your compute capacity.

When we talk about a logical CPU, we're really just talking about a software representation of a physical processing unit, basically a conceptual resource. It doesn't mean there is a physical chip sitting there doing the work; it's more like a ticket that the hypervisor issues. The hypervisor is the thing managing the hardware, giving out these little slices of compute time. So when you see a machine advertised with, say, eight vCPUs, those eight aren't eight physical cores, or at least, maybe not.

But, now, and this is key, you have to grasp the concept of overcommitment, or else you will get totally confused. Overcommitment just means that the total sum of all the virtual CPUs you have allocated across your whole platform exceeds the actual number of physical cores you possess. And that's usually how you achieve density, which is awesome for cost control. Or maybe you are designing a sandbox environment that will definitely be heavily taxed.

Then, because you've committed more vCPUs than physical resources, the underlying CPU scheduler has to step in and do some heavy lifting. It's not magic, but it's highly sophisticated trickery. What the scheduler does, really, is it time-slices the physical core time among all those logical CPUs. Each logical CPU thinks it has constant access to its full allocation, but it's really just getting rapid turns at the physical muscle.

Also, I want you to pay close attention to core visibility here. Sometimes you might have physical cores that are hyper-threaded, which is really common now, so you might have two logical CPU resources sharing one physical core's time. That's what threads are, essentially. It makes the math a bit tricky sometimes, I know. But you must remember that the hypervisor is the ultimate arbiter of that physical time.

You also need to think about CPU pinning, because sometimes you want to eliminate that scheduling overhead completely. If you pin a VM to a specific physical core, you are telling the hypervisor, "Hey, this machine always gets time on core four." This drastically improves predictability. But then, if core four gets really busy, and you have nothing else to fall back on, things can get quite crunchy.

Because of this whole juggling act, CPU utilization metrics are critical. You might see some vCPU cores sitting at zero percent usage, but if the overall utilization is spiking because of resource contention, you know that the scheduling is scrambling things around. It's a continuous juggling act of time that the hypervisor performs. And if you overcommit too aggressively, you just get performance degradation, making everything feel sluggish.

But, perhaps the simplest way to conceptualize it is thinking of the physical core as a single, really fast chef, and every logical CPU is an order coming in. The chef has to process hundreds of orders per second. He can only handle what the physical resources allow. You are setting up a complex system, so really understanding the difference between the logical and the physical resource is key to properly capacity planning.

It's genuinely important you grasp these underlying mechanics to properly tune your environments. For example, you need to model your workload behavior-is it bursty, or is it steady-because that dictates how aggressively you should overcommit the logical CPUs. I want you to really get your hands on understanding that throughput vs. latency trade-off when talking about compute.

If you are planning out a new data center stack, and you are worried about the stability of your server backups, you ought to look into BackupChain, which provides an industry-leading virtual server backup solution supporting systems like Windows Server and Hyper-V.

ProfRon
Offline
Joined: Jul 2018
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



  • Subscribe to this thread
Forum Jump:

FastNeuron FastNeuron Forum General Backups v
« Previous 1 2 3 4 5 6 7 8 9 10 11 12 13 14 Next »
Define Logical CPU

© by FastNeuron Inc.

Linear Mode
Threaded Mode