Utilizing more RAM #16

Closed
opened 2025-12-28 23:21:04 +01:00 by adam · 6 comments
Owner

Originally created by @ZackaryNisbet on GitHub (Jun 7, 2020).

I've been extremely impressed with the container's performance. But I was on Xcode and when I tried to summon the simulator, and I was given the following error:

Unable to boot device due to insufficient memory
Too many processes
Simulated devices are not supported on systems with less than 4GB of physical memory

I know the container is utilizing 3GB of RAM. I found solutions on stackoverflow to allow more RAM to Docker on Windows and Mac, but I have my docker container built on Linux (Ubuntu 20.04). I was wondering if there was any way I could dedicate more RAM.

edit: docker has access to all 16GB of my RAM; it's just the container that's limited.
docker stats

Originally created by @ZackaryNisbet on GitHub (Jun 7, 2020). I've been extremely impressed with the container's performance. But I was on Xcode and when I tried to summon the simulator, and I was given the following error: > **Unable to boot device due to insufficient memory** Too many processes Simulated devices are not supported on systems with less than 4GB of physical memory I know the container is utilizing 3GB of RAM. I found solutions on stackoverflow to allow more RAM to Docker on Windows and Mac, but I have my docker container built on Linux (Ubuntu 20.04). I was wondering if there was any way I could dedicate more RAM. edit: docker has access to all 16GB of my RAM; it's just the container that's limited. [docker stats](https://imgur.com/UpxXDFt)
adam closed this issue 2025-12-28 23:21:05 +01:00
Author
Owner

@sickcodes commented on GitHub (Jun 7, 2020):

Yes I forgot about that, let me add it to the optional runtime arguments!

@sickcodes commented on GitHub (Jun 7, 2020): Yes I forgot about that, let me add it to the optional runtime arguments!
Author
Owner

@sickcodes commented on GitHub (Jun 7, 2020):

Change the 8000 to how many MB of ram you want:

docker run --privileged -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx /bin/bash -c "sed -e 's/3072/8000/g' ./OpenCore-Boot.sh | sh -"

@sickcodes commented on GitHub (Jun 7, 2020): Change the 8000 to how many MB of ram you want: `docker run --privileged -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx /bin/bash -c "sed -e 's/3072/8000/g' ./OpenCore-Boot.sh | sh -"`
Author
Owner

@sickcodes commented on GitHub (Jun 7, 2020):

I think it should be kept as a runtime arg, in case people have more or less RAM

will add it tomorrow as a runtime arg, like
-e RAM=3076

The ram line is in the OpenCore-Boot.sh script if someone wants to beat me to it, it’s -m 3076

@sickcodes commented on GitHub (Jun 7, 2020): I think it should be kept as a runtime arg, in case people have more or less RAM will add it tomorrow as a runtime arg, like `-e RAM=3076` The ram line is in the OpenCore-Boot.sh script if someone wants to beat me to it, it’s `-m 3076`
Author
Owner

@ZackaryNisbet commented on GitHub (Jun 7, 2020):

Thank you! One last thing, is there anything I can do to improve the refresh rate and resolution? The docker believes I'm on a 30.5 inch iMac Pro but running at 1920x1080, so everything is very crisp but smaller than I'd like. In settings there is no option for scaling. The refresh rate also appears to be below 60hz as its not as smooth as it should be. Perhaps this has to do with the low virtual ram, but I'm not sure.

@ZackaryNisbet commented on GitHub (Jun 7, 2020): Thank you! One last thing, is there anything I can do to improve the refresh rate and resolution? The docker believes I'm on a 30.5 inch iMac Pro but running at 1920x1080, so everything is very crisp but smaller than I'd like. In settings there is no option for scaling. The refresh rate also appears to be below 60hz as its not as smooth as it should be. Perhaps this has to do with the low virtual ram, but I'm not sure.
Author
Owner

@sickcodes commented on GitHub (Jun 7, 2020):

I think it’s the VMware display device. I’m not sure how to increase the refresh rate.

I also dont have a real GPU so I can’t test any pass-through, perhaps someone else can contribute if they are able to nail pass-through.

I will play around with the vram today, see if I can improve it in any way.

@sickcodes commented on GitHub (Jun 7, 2020): I think it’s the VMware display device. I’m not sure how to increase the refresh rate. I also dont have a real GPU so I can’t test any pass-through, perhaps someone else can contribute if they are able to nail pass-through. I will play around with the vram today, see if I can improve it in any way.
Author
Owner

@sickcodes commented on GitHub (Jun 8, 2020):

Closing this issue related to RAM, I’m following upstream for vram changes, happy to hear from anyone who has input or has solved it already.

@sickcodes commented on GitHub (Jun 8, 2020): Closing this issue related to RAM, I’m following upstream for vram changes, happy to hear from anyone who has input or has solved it already.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#16