FrodeSolheim / fs-uae

Cross-platform Amiga emulator with a slight focus on gaming, but also with solid support for productivity apps including just-in-time (JIT) compilation.
https://fs-uae.net/
GNU General Public License v2.0
475 stars 95 forks source link

Linux/BSD in VirtualBox: memory size larger than maximum reserved 0 (0x0). #85

Open arutkowski00 opened 9 years ago

arutkowski00 commented 9 years ago

I have a problem with FS-UAE (2.6 or git-compiled) not allocating memory on guest OS in VirtualBox for Zorro memory, RTG memory etc. so emulated software can't use any of them. I tried every option, every configuration and nothing worked.

Displayed on-screen: Graphics card memory size 524288 (0x80000) larger than maximum reserved 0 (0x0). Zorro III fastmem size 4194304 (0x400000) larger than max reserved 0 (0x0).

In fs-uae.log.txt: NATMEM: 320M area failed to allocate, err=9 (Z3=64M,RTG=16M) NATMEM: retrying 1.. NATMEM: 288M area failed to allocate, err=9 (Z3=32M,RTG=16M) NATMEM: retrying 2..

and going to 10, ending with: NATMEM: No special area could be allocated (2)!

fs-uae.log.txt: http://pastebin.com/S2ScAhGT debug.uae: http://pastebin.com/4yXHF8xm Used configuration: http://pastebin.com/UcJuvz3j

FrodeSolheim commented 9 years ago

Main problem here is that the VM has very little physical memory. And in this case (FS-)UAE limits the amount of virtual memory it tries to allocate. Please try to give your VM more memory, for example 512 MB or 1 GB RAM.

(I can also consider an option to remove the physical memory check - or remove it altogether - it is after all not entirely "correctly used" since all the reserved virtual memory is often not used anyway)

arutkowski00 commented 9 years ago

I tried give VM 2 or even 4 GB RAM - still the same.

FrodeSolheim commented 9 years ago

I need to see the log after running with (for example) 2 GB RAM.

arutkowski00 commented 9 years ago

Ok, nevermind. For 2 GB I fixed it with: VBoxManage setextradata LinuxVM VBoxInternal/RamPreAlloc 1

But what about small amount of RAM? Why cannot it allocate 300 MB of RAM while he has more than 450 MB free? (it's a very minimal OS). Even if I give 4 MB of RTG or 4 MB of Z3, it still fails. FastRAM works great. I don't know how it behaves on physical PC.