Skip to content

Unable to allocate RAM for VRAM when VRAM is full #1078

Open

Description

@Lightning444

NVIDIA Open GPU Kernel Modules Version

nvidia-open-dkms 595.58.03

Please confirm this issue does not happen with the proprietary driver (of the same version). This issue tracker is only for bugs specific to the open kernel driver.

  • I confirm that this does not happen with the proprietary driver package.

Operating System and Version

Cachyos

Kernel Release

Linux-LTS 6.18.19

Please confirm you are running a stable release kernel (e.g. not a -rc). We do not accept bug reports for unreleased kernels.

  • I am running on a stable kernel release.

Hardware: GPU

NVIDIA GeForce RTX 4060 Ti OC 8GB

Describe the bug

When running games or applications, if the VRAM becomes full apps will freeze up or crash. Also when trying to open anything with the VRAM full those programs will crash upon opening them. When checking the logs it appears that there is many failures related to the allocation of the RAM.

To Reproduce

Just try to use as much VRAM as possible by running things like Memtest Vulkan alongside something else like a game or other apps. I find that it triggers at 7.8-7.9 GB usage.

Bug Incidence

Sometimes

nvidia-bug-report.log.gz

nvidia-bug-report.log.gz

More Info

I have a friend who has an AMD GPU running on CachyOS that seems to handle full VRAM just fine, sure it has some graphical bugs here and there, but I feel that it would be better then crashing at least. Also unable to test this with the proprietary driver because CachyOS no longer properly supports it. Edit: I can't get the NVRAM errors to happen anymore since the update. Not sure if it because that I am now using a hybrid APU GPU set up now, but the rest of the issues such as the crashing still exist.

Activity

  1. added
    bug
    on Mar 25, 2026
  2. damachine commented on Mar 25, 2026

    @damachine

    Hello,
    I have been experiencing the same problem since the 595 driver series.
    When running memory-intensive applications, the screen goes completely black and the system becomes entirely unresponsive — no keyboard or mouse input works anymore. The only way to recover is a hard reset.

    Bug report:
    nvidia-bug-report.log.gz

    I am attaching a portion of the system log from the point where the system had already stopped responding completely.
    journalctl_log.txt

    Please note that the log generates approximately 10,000+ "NVRM errors" entries within just a few microseconds during the crash.

    Cheers

  3. canyalccn commented on Mar 31, 2026

    @canyalccn

    I doubt this bug was introduced with the new 595 drivers. Shared memory allocation has always been an issue on Linux NVidia. You can check out recently developed NVidiaGreenBoost kernel modules, it promises to fix this bug. However, no vulkan integration for gaming yet.

  4. Shiroiame-Kusu commented on Apr 3, 2026

    @Shiroiame-Kusu

    Same problem when VRAM full, sometimes it freezes my games, and sometimes it crashes the whole kernel.
    But somehow on the NVIDIA proprietary driver, it only causes performance drops when VRAM is full, with the log

    [  275.180346] [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS memory for GEM object
    [  275.180358] [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS memory for GEM object
    [  276.048534] [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS memory for GEM object
    [  276.048562] [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS memory for GEM object
    [  276.863562] [drm] [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS video memory for GEM object, trying to fall back to sysmem
    [  281.824479] [drm] [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS video memory for GEM object, trying to fall back to sysmem
    [  286.459705] [drm] [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS video memory for GEM object, trying to fall back to sysmem
    [  295.677495] [drm] [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS video memory for GEM object, trying to fall back to sysmem
    [  560.380889] [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS memory for GEM object
    [  560.380902] [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS memory for GEM object
    [  560.679831] [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS memory for GEM object
    [  560.679853] [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS memory for GEM object
    [  560.790168] [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS memory for GEM object
    [  560.790196] [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS memory for GEM object
    [  560.995833] [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS memory for GEM object
    [  560.995863] [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS memory for GEM object
    [  561.141209] [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS memory for GEM object
    [  561.141678] [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS memory for GEM object
    [  562.266161] [drm] [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS video memory for GEM object, trying to fall back to sysmem
    [  709.388188] [drm] [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS video memory for GEM object, trying to fall back to sysmem
    [  712.360825] [drm] [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS video memory for GEM object, trying to fall back to sysmem
    [  723.040029] [drm] [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS video memory for GEM object, trying to fall back to sysmem
    [  725.171832] [drm] [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS video memory for GEM object, trying to fall back to sysmem
    [  732.680066] [drm] [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS video memory for GEM object, trying to fall back to sysmem
    [  736.077339] [drm] [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS video memory for GEM object, trying to fall back to sysmem
    [  740.933996] [drm] [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS video memory for GEM object, trying to fall back to sysmem
    [  744.629388] [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS memory for GEM object
    [  744.629414] [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS memory for GEM object
    [  744.656893] [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS memory for GEM object
    [  744.656907] [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS memory for GEM object
    [  745.348625] [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS memory for GEM object
    [  745.348651] [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS memory for GEM object
    

    However, on the open kernel modules, when VRAM is full, the error messages looks much more severe

    [  500.963430] NVRM: nvCheckFailedNoLog: Check failed: 0 == (pMapNode->gpuMask & gpuMask) @ gpu_vaspace.c:4548
    [  500.963434] NVRM: nvCheckOkFailedNoLog: Check failed: Invalid argument to call [NV_ERR_INVALID_ARGUMENT] (0x0000001F) returned from _gvaspaceMappingInsert(pGVAS, pGpu, pVASBlock, vaLo, vaHi, flags) @ gpu_vaspace.c:2026
    [  500.963436] NVRM: nvCheckFailedNoLog: Check failed: NV_OK == status @ virt_mem_allocator_gm107.c:2552
    [  500.963439] NVRM: dmaAllocMapping_GM107: can't update VA space for mapping @vaddr=0x93210000
    [  500.964263] NVRM: nvCheckFailedNoLog: Check failed: 0 == (pMapNode->gpuMask & gpuMask) @ gpu_vaspace.c:4548
    [  500.964265] NVRM: nvCheckOkFailedNoLog: Check failed: Invalid argument to call [NV_ERR_INVALID_ARGUMENT] (0x0000001F) returned from _gvaspaceMappingInsert(pGVAS, pGpu, pVASBlock, vaLo, vaHi, flags) @ gpu_vaspace.c:2026
    [  500.964266] NVRM: nvCheckFailedNoLog: Check failed: NV_OK == status @ virt_mem_allocator_gm107.c:2552
    [  500.964270] NVRM: dmaAllocMapping_GM107: can't update VA space for mapping @vaddr=0x75ee0000
    [  500.974257] NVRM: nvCheckFailedNoLog: Check failed: 0 == (pMapNode->gpuMask & gpuMask) @ gpu_vaspace.c:4548
    [  500.974260] NVRM: nvCheckOkFailedNoLog: Check failed: Invalid argument to call [NV_ERR_INVALID_ARGUMENT] (0x0000001F) returned from _gvaspaceMappingInsert(pGVAS, pGpu, pVASBlock, vaLo, vaHi, flags) @ gpu_vaspace.c:2026
    [  500.974261] NVRM: nvCheckFailedNoLog: Check failed: NV_OK == status @ virt_mem_allocator_gm107.c:2552
    [  500.974264] NVRM: dmaAllocMapping_GM107: can't update VA space for mapping @vaddr=0x98fc0000
    [  500.974996] NVRM: nvCheckFailedNoLog: Check failed: 0 == (pMapNode->gpuMask & gpuMask) @ gpu_vaspace.c:4548
    [  500.974997] NVRM: nvCheckOkFailedNoLog: Check failed: Invalid argument to call [NV_ERR_INVALID_ARGUMENT] (0x0000001F) returned from _gvaspaceMappingInsert(pGVAS, pGpu, pVASBlock, vaLo, vaHi, flags) @ gpu_vaspace.c:2026
    [  500.974997] NVRM: nvCheckFailedNoLog: Check failed: NV_OK == status @ virt_mem_allocator_gm107.c:2552
    [  500.975000] NVRM: dmaAllocMapping_GM107: can't update VA space for mapping @vaddr=0x94a00000
    [  500.977336] NVRM: nvCheckFailedNoLog: Check failed: 0 == (pMapNode->gpuMask & gpuMask) @ gpu_vaspace.c:4548
    [  500.977342] NVRM: nvCheckOkFailedNoLog: Check failed: Invalid argument to call [NV_ERR_INVALID_ARGUMENT] (0x0000001F) returned from _gvaspaceMappingInsert(pGVAS, pGpu, pVASBlock, vaLo, vaHi, flags) @ gpu_vaspace.c:2026
    [  500.977344] NVRM: nvCheckFailedNoLog: Check failed: NV_OK == status @ virt_mem_allocator_gm107.c:2552
    [  500.977353] NVRM: dmaAllocMapping_GM107: can't update VA space for mapping @vaddr=0x19e200000
    [  500.978123] NVRM: nvCheckFailedNoLog: Check failed: 0 == (pMapNode->gpuMask & gpuMask) @ gpu_vaspace.c:4548
    [  500.978125] NVRM: nvCheckOkFailedNoLog: Check failed: Invalid argument to call [NV_ERR_INVALID_ARGUMENT] (0x0000001F) returned from _gvaspaceMappingInsert(pGVAS, pGpu, pVASBlock, vaLo, vaHi, flags) @ gpu_vaspace.c:2026
    [  500.978126] NVRM: nvCheckFailedNoLog: Check failed: NV_OK == status @ virt_mem_allocator_gm107.c:2552
    [  500.978129] NVRM: dmaAllocMapping_GM107: can't update VA space for mapping @vaddr=0xa3990000
    
  5. Mvkweb commented on May 29, 2026

    @Mvkweb

    do you have this when playing games with proton by chance? @Lightning444 i have the same issue but only happens with proton, only tested with Wuthering Waves. #1165

  6. Lightning444 commented on May 30, 2026

    @Lightning444
    Author

    do you have this when playing games with proton by chance? @Lightning444 i have the same issue but only happens with proton, only tested with Wuthering Waves. #1165

    I mean, I did first notice the issue when I was running VRChat, though it seems that everything is usually prone to crashing from low memory, not just the game itself. Like if you try to run anything while said game is taking up all of the VRAM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions