Skip to content

Very high memory usage on the Rendering Level stage #20

Closed
@ateijelo

Description

@ateijelo

I'm rendering a world that's less than 200Mb. With 4 threads, Papyrus is rendering at 6~7 cps. It takes 2 hours to render ~50000 chunks. That could be better, but I don't mind waiting. During this phase memory usage remains controlled (less than 1GB)

However, when Papyrus gets to the point where it says:

Rendering Level 19 with source coordinates X -80 to 122, Z -196 to 58
202 of 256 lines render @ zoom level 19

memory usage skyrockets to fill all my 16Gb of RAM and then starts swapping.

On htop:

VIRT   RES   SHR  S CPU% MEM%   TIME+  Command
24.5G 13.9G  5956 D 36.6 89.7  8h31:49 ./PapyrusCs ...

that's ~25Gb of virtual memory, 13.9 of which are resident (because my desktop is loaded)
My RAM and Swap are to the brim:

Mem[|||||||||||||||||||||||||||14.9G/15.5G]   Tasks: 170, 525 thr; 2 running
Swp[|||||||||||||||||||||||||||12.4G/13.7G]   Load average: 12.15 11.91 9.37 

It won't be long until it gets oom-killed.

Is it keeping every rendered image in RAM somehow?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions