High memory usage on Linux?

mullagain

Refugee
First I want to say that I love this game and I am able to manage. I would just like to bring this up so that it can hopefully get fixed eventually. Also, I could be totally wrong here, just wanted to have the conversation and see if others are experiencing the same problems.

Both my friend and I are having the same issue with our respective machines. When quality settings are high memory usage goes through the roof. I have a fairly large swap setup for hibernation and eventually all my ram is consumed and performance starts to get bad because of swapping.

Here is what I have noticed.

  • When my settings are on ultra the games use about ~70%  of my ram but swaps. If swap is disabled the system runs out of memory.
  • When I logout of the game, the memory usage is still in the 70%+ range. Even just setting in the menu.
  • I have tested on windows as well and memory usage never goes above 7.5Gb (never pages).
  • Lower settings help, but eventually all ram is consumed.
  • Swapping is the only thing keeping the system from crashing.
  • GPU Memory sets at around 5/8GB
  • GPU usage is at around 80%.


Just loaded in on ultra settings:

top - 13:12:07 up 22 min, 1 user, load average: 4.07, 3.80, 2.34
Threads: 823 total, 5 running, 818 sleeping, 0 stopped, 0 zombie
%Cpu(s): 61.1 us, 9.7 sy, 0.0 ni, 29.2 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 15945.3 total, 251.0 free, 14367.9 used, 1326.5 buff/cache
MiB Swap: 8000.0 total, 3468.0 free, 4532.0 used. 782.0 avail Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
4052 mike 20 0 20.8g 10.2g 105392 R 87.5 65.2 8:43.20 UnityGfxDeviceW
4024 mike 20 0 20.8g 10.2g 105392 R 62.5 65.2 7:40.00 7DaysToDie.x86_
3771 mike 20 0 1457664 412268 392708 R 25.0 2.5 3:54.67 VizCompositorTh
4034 mike 20 0 20.8g 10.2g 105392 R 18.8 65.2 1:45.53 Job.Worker 2
4032 mike 20 0 20.8g 10.2g 105392 S 12.5 65.2 1:45.67 Job.Worker 0
4033 mike 20 0 20.8g 10.2g 105392 S 12.5 65.2 1:45.26 Job.Worker 1
6222 mike 20 0 11784 5028 3340 R 12.5 0.0 0:00.02 top
3714 mike 20 0 665720 185948 172292 S 6.2 1.1 0:28.76 steam
3756 mike 20 0 789228 134532 128316 S 6.2 0.8 0:09.10 Chrome_IOThread
3764 mike 20 0 1457664 412268 392708 S 6.2 2.5 1:00.78 steamwebhelper
3896 mike 20 0 4652396 62544 40228 S 6.2 0.4 0:38.91 Compositor
3904 mike 20 0 4652396 62544 40228 S 6.2 0.4 0:06.47 CompositorTileW
1 root 20 0 175176 6980 3520 S 0.0 0.0 0:01.14 systemd

[mike@smeg ~]$ free -m
total used free shared buff/cache available
Mem: 15945 14395 153 464 1395 774
Swap: 7999 4685 3314

[mike@smeg ~]$ cat /proc/4024/status
Name: 7DaysToDie.x86_
Umask: 0022
State: R (running)
Tgid: 4024
Ngid: 0
Pid: 4024
PPid: 4014
TracerPid: 0
Uid: 1000 1000 1000 1000
Gid: 985 985 985 985
FDSize: 256
Groups: 5 962 963 985 987 998 1000
NStgid: 4024
NSpid: 4024
NSpgid: 3560
NSsid: 3560
VmPeak: 21848548 kB
VmSize: 21848548 kB
VmLck: 0 kB
VmPin: 0 kB
VmHWM: 12573480 kB
VmRSS: 10971076 kB
RssAnon: 10856076 kB
RssFile: 107756 kB
RssShmem: 7244 kB
VmData: 14257896 kB
VmStk: 232 kB
VmExe: 4 kB
VmLib: 153028 kB
VmPTE: 29372 kB
VmSwap: 2366124 kB
HugetlbPages: 0 kB
CoreDumping: 0
THP_enabled: 1
Threads: 73
SigQ: 1/63701
SigPnd: 0000000000000000
ShdPnd: 0000000000000000
SigBlk: 0000000000000000
SigIgn: 0000000000001000
SigCgt: 0000001d208044fe
CapInh: 0000000000000000
CapPrm: 0000000000000000
CapEff: 0000000000000000
CapBnd: 000001ffffffffff
CapAmb: 0000000000000000
NoNewPrivs: 0
Seccomp: 0
Seccomp_filters: 0
Speculation_Store_Bypass: thread vulnerable
SpeculationIndirectBranch: conditional enabled
Cpus_allowed: f
Cpus_allowed_list: 0-3
Mems_allowed: 00000001
Mems_allowed_list: 0
voluntary_ctxt_switches: 164974
nonvoluntary_ctxt_switches: 204038

[mike@smeg ~]$ cat /proc/4052/status
Name: UnityGfxDeviceW
Umask: 0022
State: S (sleeping)
Tgid: 4024
Ngid: 0
Pid: 4052
PPid: 4014
TracerPid: 0
Uid: 1000 1000 1000 1000
Gid: 985 985 985 985
FDSize: 256
Groups: 5 962 963 985 987 998 1000
NStgid: 4024
NSpid: 4052
NSpgid: 3560
NSsid: 3560
VmPeak: 21900904 kB
VmSize: 21886564 kB
VmLck: 0 kB
VmPin: 0 kB
VmHWM: 12573480 kB
VmRSS: 10391572 kB
RssAnon: 10273848 kB
RssFile: 109368 kB
RssShmem: 8356 kB
VmData: 14309684 kB
VmStk: 232 kB
VmExe: 4 kB
VmLib: 153028 kB
VmPTE: 29632 kB
VmSwap: 3100352 kB
HugetlbPages: 0 kB
CoreDumping: 0
THP_enabled: 1
Threads: 73
SigQ: 1/63701
SigPnd: 0000000000000000
ShdPnd: 0000000000000000
SigBlk: 0000000000000000
SigIgn: 0000000000001000
SigCgt: 0000001d208044fe
CapInh: 0000000000000000
CapPrm: 0000000000000000
CapEff: 0000000000000000
CapBnd: 000001ffffffffff
CapAmb: 0000000000000000
NoNewPrivs: 0
Seccomp: 0
Seccomp_filters: 0
Speculation_Store_Bypass: thread vulnerable
SpeculationIndirectBranch: conditional enabled
Cpus_allowed: f
Cpus_allowed_list: 0-3
Mems_allowed: 00000001
Mems_allowed_list: 0
voluntary_ctxt_switches: 393067
nonvoluntary_ctxt_switches: 465672




System specs:

4K display but running at 1080 in game.

Code:
System:
  Host: smeg Kernel: 5.16.10-arch1-1 x86_64 bits: 64 Desktop: i3 4.20.1
    Distro: Arch Linux
Machine:
  Type: Desktop Mobo: ASRock model: Z170M Pro4S serial: <superuser required>
    UEFI: American Megatrends v: P7.40 date: 01/23/2018
CPU:
  Info: quad core model: Intel Core i5-7500 bits: 64 type: MCP cache:
    L2: 1024 KiB
  Speed (MHz): avg: 800 min/max: 800/3800 cores: 1: 800 2: 800 3: 800
    4: 800
Graphics:
  Device-1: NVIDIA TU106 [GeForce RTX 2060 SUPER] driver: nvidia v: 510.54
  Device-2: Logitech C922 Pro Stream Webcam type: USB
    driver: snd-usb-audio,uvcvideo
  Display: x11 server: X.Org 1.21.1.3 driver: loaded: nvidia
    resolution: 3840x2160~60Hz (RUNNING at 1080 in game)
  OpenGL: renderer: NVIDIA GeForce RTX 2060 SUPER/PCIe/SSE2
    v: 4.6.0 NVIDIA 510.54
Audio:
  Device-1: NVIDIA TU106 High Definition Audio driver: snd_hda_intel
  Device-2: Creative Labs EMU20k2 [Sound Blaster X-Fi Titanium Series]
    driver: snd_ctxfi
  Device-3: Logitech C922 Pro Stream Webcam type: USB
    driver: snd-usb-audio,uvcvideo
  Device-4: Logitech Blue Microphones type: USB
    driver: hid-generic,snd-usb-audio,usbhid
  Sound Server-1: ALSA v: k5.16.10-arch1-1 running: yes
  Sound Server-2: PipeWire v: 0.3.47 running: yes
Network:
  Device-1: Intel Ethernet I219-V driver: e1000e
  IF: enp0s31f6 state: up speed: 1000 Mbps duplex: full
Drives:
  Local Storage: total: 3.41 TiB used: 928.36 GiB (26.6%)
  ID-1: /dev/nvme0n1 vendor: Western Digital model: WDBRPG0010BNC-WRSN
    size: 931.51 GiB
  ID-2: /dev/sda vendor: Samsung model: SSD 850 EVO 250GB size: 232.89 GiB
  ID-3: /dev/sdb vendor: Samsung model: SSD 850 EVO 500GB size: 465.76 GiB
  ID-4: /dev/sdc vendor: Seagate model: ST2000DM001-1CH164 size: 1.82 TiB
Partition:
  ID-1: / size: 81.27 GiB used: 65.84 GiB (81.0%) fs: ext4 dev: /dev/sdb5
  ID-2: /home size: 915.82 GiB used: 186.38 GiB (20.4%) fs: ext4
    dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: partition size: 7.81 GiB used: 0 KiB (0.0%)
    dev: /dev/sda2
Sensors:
  System Temperatures: cpu: 46.0 C pch: 43.0 C mobo: 33.0 C gpu: nvidia
    temp: 41 C
  Fan Speeds (RPM): fan-1: 0 fan-2: 750 fan-4: 791 fan-5: 341 fan-6: 0
    gpu: nvidia fan: 40%
Info:
  Processes: 223 Uptime: 30m Memory: 15.57 GiB used: 4.58 GiB (29.4%)
  Shell: Zsh inxi: 3.3.12

 
Last edited by a moderator:
When I logout of the game, the memory usage is still in the 70%+ range. Even just setting in the menu.
This is a known issue. You need to quit to desktop to release the memory from a played game. If you

re-start a save without quitting to desktop, you can use up all your ram.

Also, post your log file from the game to pastebin and link here. There may be other clues in there.

 
This is a known issue. You need to quit to desktop to release the memory from a played game. If you

re-start a save without quitting to desktop, you can use up all your ram.

Also, post your log file from the game to pastebin and link here. There may be other clues in there.
Thanks for the info. I updated this to reflect your comment. I will add the game logs asap.

 
Back
Top