Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can allocate more memory than my GPU has #27

Open
BooneyNoobington opened this issue Oct 23, 2020 · 1 comment
Open

Can allocate more memory than my GPU has #27

BooneyNoobington opened this issue Oct 23, 2020 · 1 comment

Comments

@BooneyNoobington
Copy link

BooneyNoobington commented Oct 23, 2020

I have a Lenovo ideapad 720-15IKB with 16 GB of internal storage and an Radeon RX 560 with 4 GB of dedicated GDDR5 RAM.

I'm using amdgpu and opencl-mesa as drivers.

I installed vramfs on Manjaro via the AUR.

Stangely I can allocate more than 4GB of storage to a ramdisk. htop shows the elevated RAM usage even though it shouldn't show GPU RAM usage.

When I allocate less then 5GB to the ramdisk still elevated RAM usage is shown in htop. Is this expected behavior?

@Overv
Copy link
Owner

Overv commented Oct 27, 2020

You're likely able to "allocate" more than 4 GB because the memory isn't committed by the driver until you start writing files to it. The memory usage shown in htop may be a result of memory mapping, but I'm not entirely sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants