The maximum ram of a Linux VM is limited to 64 GB on Azure - Virtual Machines (2024)

  • Article

Applies to: ✔️ Linux VMs

Original KB number: 4038684

Note

CentOS referenced in this article is a Linux distribution and will reach End Of Life (EOL). Consider your use and plan accordingly. For more information, see CentOS End Of Life guidance.

This article provides a solution to an issue in which the maximum memory of an Azure Linux virtual machine is limited to 64 GB in Linux with the kernel version prior to 3.10.

Symptoms

You create a Linux virtual machine (VM) that has more than 64-GB memory on Microsoft Azure.You find that the actual allocated memory on the Linux VMis only 64 GB.

Note

You must check the available memory within the Linux VM to determine if the memory has been limited to 64 GB. For example, use the free -m command.Azure portal always shows the full memory size that is assigned to the VM.

Cause

This issue is caused by a bug in the Linux kernel in versions prior to 3.10.The bug is fixed in Linux kernel version3.10 and later versions.

VMs in Azure are hosted on Windows Server 2016 Hyper-Vor Windows Server 2012 R2 Hyper-V. When the VM is running on a Windows Server 2012 R2 Hyper-V host, the bug does not manifest because the maximum physical address space size that Hyper-V provides to guest VMs is 4 TB. But when the guest VM is running on Windows Server 2016 Hyper-V host, the maximum physical address space size is raised to 16 TB. In this scenario, the bug manifests, and it causes the Linux guest to see a maximum of 64 GB of memory. The 64-GB value is controlled by the Memory Type Range Registers(MTRR) values that Hyper-V provides to the guest.

The assignment of a VM to a Windows Server 2012 R2 or Windows Server 2016 host is controlled by the Azure infrastructureandis not user selectable. So, some deployments may encounter this problem while others do not.

Resolution

This bug occurs in the Linux kernel version in SUSE Linux Enterprise Server (SLES) 11 SP4, Red Hat Enterprise Linux (RHEL) 6.x, and CentOS 6.x. It is fixed in newer Linux kernels and does not occur in SLES 12,RHEL 7.x, andCentOS 7.x.

For kernels that have the bug, you can work around theissue by adding disable_mtrr_trim as a kernel boot line option. Microsoft is working with the vendors of our endorsed distributions to update the images in Azure to add disable_mtrr_trim as a kernel boot line option.This option disables the MTRR interpretation and removes the 64-GB limit.If you create a new VM from an image that has been updated to include this kernel boot line option, you will not experience the 64-GB limit, regardless of which host version the VM is deployed on.

For existing VMs, you can manually add the same kernel boot line option by using the following steps.

  • For RHEL/CentOS 6.x:ing:

    1. Open the /boot/grub/grub.conf file ina text editor.

    2. Add the parameter disable_mtrr_trim to the kernel command line.

      In the grub.conf file, there will be a line that looks like the following:

      kernel /vmlinuz-2.6.32-696.3.2.el6.x86_64 ro root=UUID=<ID>

      Add disable_mtrr_trim as a separate parameter to the end of this line.

    3. Save and close the grub.conf file.

    4. Restart the VM.

    For more information, see Red Hat: GRUB Menu Configuration File.

  • For SLES, refer to SUSE: Booting with GRUB.

  • For Debian, refer to Debian: Boot Parameters.

If you have questions or need help, create a support request, or ask Azure community support. You can also submit product feedback to Azure feedback community.

Third-party information disclaimer

The third-party products that this article discusses are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, about the performance or reliability of these products.

Third-party contact disclaimer

Microsoft provides third-party contact information to help you find additional information about this topic. This contact information may change without notice. Microsoft does not guarantee the accuracy of third-party contact information.

The maximum ram of a Linux VM is limited to 64 GB on Azure - Virtual Machines (2024)
Top Articles
Unsettled Funds
How to Fix HTTP and HTTPS Redirect Issue | Sitechecker
Netronline Taxes
neither of the twins was arrested,传说中的800句记7000词
No Hard Feelings (2023) Tickets & Showtimes
Hotels
Was ist ein Crawler? | Finde es jetzt raus! | OMT-Lexikon
Pga Scores Cbs
Gabriel Kuhn Y Daniel Perry Video
Google Sites Classroom 6X
Beautiful Scrap Wood Paper Towel Holder
Victoria Secret Comenity Easy Pay
2013 Chevy Cruze Coolant Hose Diagram
Epaper Pudari
Mlb Ballpark Pal
Discover Westchester's Top Towns — And What Makes Them So Unique
Steamy Afternoon With Handsome Fernando
10-Day Weather Forecast for Santa Cruz, CA - The Weather Channel | weather.com
Egizi Funeral Home Turnersville Nj
Sandals Travel Agent Login
Accuweather Minneapolis Radar
European Wax Center Toms River Reviews
Dmv In Anoka
Cornedbeefapproved
2023 Ford Bronco Raptor for sale - Dallas, TX - craigslist
Pulitzer And Tony Winning Play About A Mathematical Genius Crossword
Ihs Hockey Systems
Perry Inhofe Mansion
Fox And Friends Mega Morning Deals July 2022
Lucky Larry's Latina's
Frostbite Blaster
Car Crash On 5 Freeway Today
Ducky Mcshweeney's Reviews
Sinfuldeeds Vietnamese Rmt
Ksu Sturgis Library
Ezpawn Online Payment
2132815089
Mudfin Village Wow
Giovanna Ewbank Nua
Trivago Anaheim California
Tricare Dermatologists Near Me
R: Getting Help with R
Brother Bear Tattoo Ideas
Euro area international trade in goods surplus €21.2 bn
Paradise leaked: An analysis of offshore data leaks
Jeep Forum Cj
Wwba Baseball
Dmv Kiosk Bakersfield
Myhrkohls.con
Grace Charis Shagmag
Used Curio Cabinets For Sale Near Me
Latest Posts
Article information

Author: Jamar Nader

Last Updated:

Views: 5765

Rating: 4.4 / 5 (55 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Jamar Nader

Birthday: 1995-02-28

Address: Apt. 536 6162 Reichel Greens, Port Zackaryside, CT 22682-9804

Phone: +9958384818317

Job: IT Representative

Hobby: Scrapbooking, Hiking, Hunting, Kite flying, Blacksmithing, Video gaming, Foraging

Introduction: My name is Jamar Nader, I am a fine, shiny, colorful, bright, nice, perfect, curious person who loves writing and wants to share my knowledge and understanding with you.