B2MS used 750 CPU Credits in 20 minutes

Martin Bene 0 Reputation points
2023-02-16T08:15:54.2866667+00:00

I've had a problem with a B2MS Windows VM burnng through 750 CPU credits within 20 minutes leaving the system throttled during business hours before it started recovering / regaining credits in the afternoon.

My understanding of how CPU credits are used suggests that it should be impossible for a B2MS to use tht many credits within 20 minutes.

Any idea what's going on and how to prevent something like this in the future?

cpu credits

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,070 questions
{count} votes

1 answer

Sort by: Most helpful
  1. deherman-MSFT 38,021 Reputation points Microsoft Employee Moderator
    2023-02-16T16:45:23.5633333+00:00

    @Martin Bene

    Thanks very much for sharing the details and the updated root cause of the CPU credits being depleted. I am sharing a few links to the documentation in case you or others have questions about this.

    B-series burstable virtual machine sizes

    "When a VM is redeployed and the VM moves to another node, the accumulated credit is lost. If the VM is stopped/started, but remains on the same node, the VM retains the accumulated credit."

    Maintenance for virtual machines in Azure

    "Live migration can also be used to move VMs when Azure Machine Learning algorithms predict an impending hardware failure or when you want to optimize VM allocations."

    B-series VMs are ideal for workloads that do not need the full performance of the CPU continuously, like web servers, proof of concepts, small databases and development build environments."

    Please evaluate whether the current VM Size can meet your business requirements or not. If you have important business to run, to avoid the impact of CPU credit on performance, please consider using other VM SKUs with Non B-Series.


    Please don’t forget to "Accept the answer" wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.