gem5-users@gem5.org

The gem5 Users mailing list

View all threads

Memory Size error ( ARM cpu)

NS
Nazmus Sakib
Tue, Sep 16, 2025 1:26 AM

Hello.
In my experimental setup, I have two address ranges.
Inside the testbench C code, I have a pointer directly mapped to a virtual address.
In my gem5 setting, I map that virtual address to one of the address ranges. I have made sure they dont overlap.
They works fine for small data sizes. (in Kilo byte range)
However, for large size they are giving me the following error:

src/sim/mem_pool.cc:120: fatal: fatal condition freePages() <= 0 occurred: Out of memory, please increase size of physical memory.

I have increased the "—mem-size" from 8GB to 40GB. I know my data variables inside the C code is much less than this (but they are in Gigabyte range). The memory is either static global or dynamically allocated so I am assuming stack size is not an issue.
Any suggestion on how to handle this would be appreciated.
Thank you.

Hello. In my experimental setup, I have two address ranges. Inside the testbench C code, I have a pointer directly mapped to a virtual address. In my gem5 setting, I map that virtual address to one of the address ranges. I have made sure they dont overlap. They works fine for small data sizes. (in Kilo byte range) However, for large size they are giving me the following error: src/sim/mem_pool.cc:120: fatal: fatal condition freePages() <= 0 occurred: Out of memory, please increase size of physical memory. I have increased the "—mem-size" from 8GB to 40GB. I know my data variables inside the C code is much less than this (but they are in Gigabyte range). The memory is either static global or dynamically allocated so I am assuming stack size is not an issue. Any suggestion on how to handle this would be appreciated. Thank you.