Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22

Thread: Stuck while installing Ubuntu on Virtualbox: Freeing initrd memory

  1. #11
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Stuck while installing Ubuntu on Virtualbox: Freeing initrd memory

    Well, dug int some Linux and kernel System Admin Doc's and found this. I was looking for how to find what the largest block of contiguous memory is. Well at https://www.kernel.org/doc/Documenta...stems/proc.txt, it says that /proc/buddyinfo is used primarily for diagnosing memory fragmentation.
    External fragmentation is a problem under some workloads, and buddyinfo is a
    useful tool for helping diagnose these problems. Buddyinfo will give you a
    clue as to how big an area you can safely allocate, or why a previous
    allocation failed.
    I tested all this on my laptop, which has 8GB of RAM. I figured that would be a bteer example than either of my servers, that have 128GB RAM.

    Looking at it:
    Code:
    mafoelffen@Mikes-ThinkPad-T520:~/Scripts$ sudo grep . /proc/buddyinfo
    Node 0, zone      DMA      0      0      0      0      0      0      0      0      0      1      3 
    Node 0, zone    DMA32  19883   7185   4058   3123   1847   1220    637    312    139     71     29 
    Node 0, zone   Normal  22095  18552   9367   4498    739     90    233    222     93     31      7
    Where:
    DMA is the first 16MB
    DMA32 is the above 4GB (64bit systems)
    Normal is the memory between 16MB and 4GB

    PAGE_SIZE is 4Mbyte

    11 Columns in the table
    Column 1 is 2^(0*PAGE_SIZE) chunks of memory (4kb each)
    Column 2 is 2^(1*PAGE_SIZE) chunks of memory (8kb each)
    Column 3 is 2^(2*PAGE_SIZE) chunks of memory (16kb each)
    Column 4 is 2^(3*PAGE_SIZE) chunks of memory (32kb each)
    Column 5 is 2^(4*PAGE_SIZE) chunks of memory (64kb each)
    Column 6 is 2^(5*PAGE_SIZE) chunks of memory (128kb each)
    Column 7 is 2^(6*PAGE_SIZE) chunks of memory (256kb each)
    Column 8 is 2^(7*PAGE_SIZE) chunks of memory (512kb each)
    Column 9 is 2^(8*PAGE_SIZE) chunks of memory (1024kb each)
    Column 10 is 2^(9*PAGE_SIZE) chunks of memory (2048kb each)
    Column 11 is 2^(10*PAGE_SIZE) chunks of memory (4096kb each)

    After doing this:
    Code:
    sudo sysctl vm.compact_memory=1
    What that should do, if it doesn't crash the kernel, is to try to consolidate pages from left to right (larger blocks) and from DMA to Normal to DMA32

    This was the results of memory compaction to defragment memory:
    Code:
    mafoelffen@Mikes-ThinkPad-T520:~/Scripts$ sudo grep . /proc/buddyinfo
    Node 0, zone      DMA      0      0      0      0      0      0      0      0      0      1      3 
    Node 0, zone    DMA32   3917   3864   3034   2818   1908   1277    688    346    153     75     29 
    Node 0, zone   Normal     60     89   4352   1153    212     58     26     11      4      2      0
    Last edited by MAFoElffen; September 19th, 2023 at 01:28 AM.

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  2. #12
    Join Date
    May 2008
    Location
    Bucharest, Romania
    Beans
    63
    Distro
    Ubuntu

    Re: Stuck while installing Ubuntu on Virtualbox: Freeing initrd memory

    i think so yea, it has a ryzen 9 7940hs and 16gb of ddr5 ram
    I also have this CPU with 64GB of ram.
    Could it be related? A CPU incompatibility?
    I must say that a VM with Win10 is running just fine on my Win11 host...

  3. #13
    Join Date
    Sep 2023
    Beans
    4

    Re: Stuck while installing Ubuntu on Virtualbox: Freeing initrd memory

    Quote Originally Posted by MAFoElffen View Post
    Please post the results of this within CODE Tags:
    Code:
    grep . /proc/meminfo
    This is a linux command right? My and ops problem is that we can't even install ubuntu on a vm because it hangs at "Freeing initrd memory".

  4. #14
    Join Date
    Sep 2023
    Beans
    4

    Re: Stuck while installing Ubuntu on Virtualbox: Freeing initrd memory

    Quote Originally Posted by mdalacu View Post
    I also have this CPU with 64GB of ram.
    Could it be related? A CPU incompatibility?
    I must say that a VM with Win10 is running just fine on my Win11 host...
    I think that's the source of the kernel panic, but i still haven't found any solutions, i tried disabling hyper-v but it wouldn't disable.

  5. #15
    Join Date
    May 2008
    Location
    Bucharest, Romania
    Beans
    63
    Distro
    Ubuntu

    Re: Stuck while installing Ubuntu on Virtualbox: Freeing initrd memory

    Anyway...i love my minipc...i am gaming Starfield on it!

  6. #16
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Stuck while installing Ubuntu on Virtualbox: Freeing initrd memory

    Quote Originally Posted by ilovenewjeans View Post
    I think that's the source of the kernel panic, but i still haven't found any solutions, i tried disabling hyper-v but it wouldn't disable.
    First-- Personally, I support Linux, Windows... KVM, VMware, Hyper-V, XEN/Centrix, and have supported VirtualBox... It would have been nice to have been told the Host System OS, early on. Since it was not mentioned, and this is an Ubuntu Linux Forum, I assumed the host might have been Ubuntu, with VirtualBox as the Virt Host... But this points out this was an incorrect assumption. I guess I should have asked.

    Second-- Since I also support Windows, I know this --> Microsoft assumes that Windows and it's own product exist in a vacuum. If you turn on Hyper-V, then it takes over the system with very deep roots, and no other Virtualization hosting system will work on it. That goes for VirtualBox, and VMware Workstation Pro or VMware Player. They don't care, as long as Hyper-V works.

    There is no easy way to see memory fragmentation or a way to defragment memory in Windows OS. I know of one tool, but it is over $400 a year to subscribe to a subscription for it.

    There is a function in C# to check if you can allocate a certain size of memory, in your want to code it yourself...

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  7. #17
    Join Date
    Sep 2023
    Beans
    1

    Re: Stuck while installing Ubuntu on Virtualbox: Freeing initrd memory

    I meet the issue as well while I am trying to install ubuntu 22.04.3 on vbox 7.0.10. My computer has 7840s and 32GB lpddr5x memory. It seems to be a common problems with ryzen 7040 series. Hope someone would told me how to deal with it.

  8. #18
    Join Date
    May 2008
    Location
    Bucharest, Romania
    Beans
    63
    Distro
    Ubuntu

    Re: Stuck while installing Ubuntu on Virtualbox: Freeing initrd memory

    Hey! Every problem went away after installing the latest BIOS version. So, check if you have a update available for your FW and do it.
    Victory!!!!

  9. #19
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Stuck while installing Ubuntu on Virtualbox: Freeing initrd memory

    Happy to hear this is working for you now.

    Please use the "Thread Tools" link in the upper right to Mark this as "Solved" so that others (many have said they have the same issue) can find what worked for you.

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  10. #20
    Join Date
    May 2008
    Location
    Bucharest, Romania
    Beans
    63
    Distro
    Ubuntu

    Re: Stuck while installing Ubuntu on Virtualbox: Freeing initrd memory

    I am not the OP :/

Page 2 of 3 FirstFirst 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •