Trying to upgrade cpu performance with: sudo cpufreq-set -r -g performance

Cerebro Agent 20 Reputation points
2025-03-17T04:19:48.93+00:00

Please help me upgrade my cpu performance for my Standard D8as v5 VM. It seems like other servers had allowed me to upgrade cpu with this command but this particular server states: Segmentation Fault

Command to set high performance: sudo cpufreq-set -r -g performance

PLEASE help me upgrade my cpu performance otherwise I am back to square one after a month of work.

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

Accepted answer
  1. Pramidha Yathipathi 1,135 Reputation points Microsoft External Staff Moderator
    2025-03-18T07:02:06.6033333+00:00

    Hi Cerebro Agent ,

    Sometimes the package isn’t installed by default.

     sudo apt install cpufrequtils  
    

    Then check what governors are available:

     cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_governors  
     
    

    If performance isn’t listed, that’s likely the issue.

    Try setting the governor manually.Instead of cpufreq-set, you can try

    echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor  
     
    

    This directly writes to the system files, bypassing any potential issues with cpufreq-set.

    Since you’re on a Standard D8as v5 VM, Azure’s hypervisor might be restricting CPU frequency changes. You can check your current settings with:

     lscpu | grep "MHz"  
    

    If the comment was helpful, please don't forget to click "Upvote".

    If the issue still persist or any further queries, please let us know we are glad to help you.

    Thank You.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Cerebro Agent 20 Reputation points
    2025-03-31T02:16:45.8933333+00:00

    (posting again because I don't see the first message)

    Hi @Pramidha Yathipathi ,

    Thank you for your prompt response. I appreciate your recommendations, which did help improve speeds, but unfortunately, the maximum 2.8GHz isn't sufficient for my needs.

    I was running five servers, but the CPU speeds aren't fast enough for the blockchain production requirements of two of them. Therefore, I will need to migrate a second server from Azure to Contabo.

    I'm specifically looking for bare metal, a dedicated host, or a VM with a baseline CPU of 3.4GHz or higher.

    While exploring options on Azure, I found that the prices for dedicated hosts or bare metal setups were exorbitant, often exceeding $1,000/month. In contrast, Contabo offers a competitive rate of $140/month for:

    AMD Ryzen 9 7900

    12 x 3.70 GHz

    32 GB REG ECC RAM

    Up to 128 GB RAM

    Could you recommend an alternative on Azure that is equivalent to the AMD Ryzen 9 7900 (12 x 3.70 GHz, 32 GB REG ECC, Up to 128 GB RAM)? My budget is around $500/month, which is already significantly higher than Contabo's pricing.

    It seems like the F16s_v2 could be a solution from Azure, coupled with your performance-improving suggestions.

    Please advise, and thank you in advance!


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.