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
Fastest Growing Penny Stocks in India
Berkshire Hathaway Portfolio Tracker
myrtle beach motorcycles/scooters - by dealer - craigslist
Torin Kamran Charles Cox
Stone-Ladeau Funeral Home | Winchendon, Massachusetts
Adan4Adam Com
Donald Trump Assassination Gold Coin JD Vance USA Flag President FIGHT CIA FBI • $3.87
Contact Spectrum Customer Service
Www.nerdballertv
Clafi Arab
Www.metaquest/Device Code
International Medical Insurance for Employers from Aetna - Global Health Plans for Expatriates & Business Travel Employees | Aetna
Hundreds of fake NCAA tickets show up in Greenville; 2 charged so far
Rose Tree Park Italian Festival 2023
Pensacola Tattoo Studio 2 Reviews
Power Outage Map Albany Ny
Evangelist buys Tyler Perry's mansion for $17.5million
Studentvue Calexico
Mod Engine 2 Not Launching Elden Ring
Noaa Rochester Mn
Oscoda Michigan Map: Discover the Charm and Beauty of This Scenic Destination - 200smichigan.com (UPDATE 👍)
[PDF] GIOCHI SUPPORTATI DAL MAME - Free Download PDF
How To Upload Image To Espn Fantasy
Tamara Lapman
Kingsport Weather Channel
Knotty And Vixen
Natalie Roush dild*
Vmgma Patient Portal
Debbie St Pierre Bj
Monster Hunter Rise Steam Unlocked
Montefiore Email Outlook Login
Plane 123Movie
Gelato 47 Allbud
Mchoul Funeral Home Of Fishkill Inc. Services
Joliet Herald News Obituary
Neos Urgent Care Springfield Ma
'All good here' was 1 of the final texts sent from the doomed Titan submersible
1964 1 2 Mustang For Sale Craigslist
Unblocked Games World - Death Run 3D – Sweet Talk Can Get You Far Cory Chase
The FDA Drug Recall System is Voluntary, Haphazard, and Broken
Lifetalent Healthstream Lifepoint
Co Parts Mn
Burlington Antioch Ca
Sigmacare.com Login
Merging Rooms Fallout Shelter
Quest Diagnostics Lake Mary - Employer Drug Testing Not Offered
Starbucks Partner Hours Schedule
Federal Express Drop Off Center Near Me
How Long Does A Rock Live
Wat betekenen cringe en awkward? - Youngworks
What is "Brrr skibidi dop dop / dom dom yes yes"? Memes, explanation, meaning, definition - Bedeutung Online
Deep Cut Gardens in Middletown: Adventure Through 54 Acres of Gardens, Flowers, and Wildlife
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.