Skip to content

Ridiculous memory use and long freezes on Linux #74

@Fisch37

Description

@Fisch37

I am running KDE neon (Ubuntu) with an AMD Ryzen 5600X, 32GB of RAM and an NVIDIA RTX 3060 (12GB) with proprietary nvidia drivers, version 580.95.05. My Linux kernel version is 6.14.0-37-generic.

Whenever new video settings are applied (such as render distance and max gpu memory [nvidium setting]) the game freezes for an extended period of time. At the same time RAM usage spikes, sometimes even to the point of crashing and disregarding the memory limits of the JVM.

A look at JournalCtl reveals large repeated errors labelled

NVRM: dmaAllocMapping_GM107: can't alloc VA space for mapping.

and

NVRM: nvAssertOkFailedNoLog: Assertion failed: Out of memory [NV_ERR_NO_MEMORY] (0x00000051) returned from pReuseMappingDb->pMapCb(pReuseMappingDb->pGlobalCtx, pAllocCtx, range, cachingFlags, &token, _reusemappingdbAddMappingCallback) @ mapping_reuse.c:273

during the freeze, intermittent spikes of VRAM usage occur, which are then freed.

ren dist | freeze time |   RAM   | VRAM          
automatic video memory:
12 -> 16: 15s hangup & 19GiB RAM, 2.2 GiB VRAM
16 -> 32: 15s hangup & 19GiB RAM, 2.2 GiB VRAM
32 ->  2: 15s hangup & ...

2048Mbs video memory:
 2 -> 12:  4s hangup &  2.8GiB RAM, 5.7GiB VRAM

4096Mbs video memory:
NO CHANGE: 4s hangup &  6.8GiB RAM, 5.7GiB VRAM
12 -> 16:  5s hangup &  6.8GiB RAM, 5.7GiB VRAM

8192Mbs video memory:
NO CHANGE:12s hangup & 18.3GiB RAM, 2.2GiB VRAM

10240Mbs video memory:
NO CHANGE:12s hangup & 22.3GiB RAM, 2.2GiB VRAM

This may be related to #45, however the symptoms are different enough that I would consider it separate so far.

journalctl-log 2048 to 4096.txt

latest.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions