You are not logged in.

#1 2026-03-07 16:07:24

legendarniyyy
Member
Registered: 2026-03-07
Posts: 5

Rust (game) eats a lot of RAM

I have a problem with Rust
I have 16gb of ram and i have a problem with rust, i can open the game but when i try to get on a server my game crashes.
After the game crashes i get a notification from kernel that it closed steam due to not having enough RAM. what should i do?
I use kde plasma

Offline

#2 2026-03-07 17:16:34

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,314

Re: Rust (game) eats a lot of RAM

https://wiki.archlinux.org/title/Swap#Swap_file - or get more RAM
However w/ https://www.mobygames.com/game/63157/rust/specs/ are you sure you're OOM from the game?
What does the RAM situation look like w/o running the game?

Offline

#3 2026-03-07 19:49:56

legendarniyyy
Member
Registered: 2026-03-07
Posts: 5

Re: Rust (game) eats a lot of RAM

Thank you for your reply,
it looks like ram is used around 4 gigs without the game, just arch, contour (console) and system monitor opened
the specs you sent on the link are very old, well, rust clearly needs more than 8 gigs of ram, sadly sad
I'll try to do a swap file, thank you, again

Offline

#4 2026-03-07 19:53:56

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,314

Re: Rust (game) eats a lot of RAM

it looks like ram is used around 4 gigs without the game, just arch, contour (console) and system monitor opened

???

cat /proc/meminfo
top -b -n1 -oRSS | head -n32

Offline

#5 2026-03-07 20:26:47

legendarniyyy
Member
Registered: 2026-03-07
Posts: 5

Re: Rust (game) eats a lot of RAM

top - 03:22:18 up  6:35,  1 user,  load average: 3.41, 4.73, 3.76
Tasks: 385 total, 1 running, 384 sleep, 0 d-sleep, 0 stopped, 0 zombie
%Cpu(s):  0.5 us,  3.4 sy,  0.0 ni, 95.9 id,  0.0 wa,  0.2 hi,  0.0 si,  0.0 st
MiB Mem :  15930.6 total,   7435.5 free,   7526.3 used,   1412.8 buff/cache     
MiB Swap:   8192.0 total,   6586.5 free,   1605.5 used.   8404.3 avail Mem

got memory swap, still game crashing but i think i'll reinstall it tomorrow with 16 gigs now and it won't (measured after the game crashed again)

Offline

#6 2026-03-07 20:40:14

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,314

Re: Rust (game) eats a lot of RAM

That's not at all the output I asked for - why are you using so much RAM?

Reinstalling the game won't achieve anything, the moment you said "swapon" you had 16GB memory (half of it swap and that's already in decent use and the filesystem cache isn't the problem either)

Offline

#7 2026-03-08 07:11:21

legendarniyyy
Member
Registered: 2026-03-07
Posts: 5

Re: Rust (game) eats a lot of RAM

sorry, i meant reinstalling swapon on 16 gigs than giving in 8 gigs of space,

 MemTotal:       16312896 kB
MemFree:        11547592 kB
MemAvailable:   13900880 kB
Buffers:          152732 kB
Cached:          2293652 kB
SwapCached:            0 kB
Active:          3001008 kB
Inactive:        1188840 kB
Active(anon):    1624036 kB
Inactive(anon):        0 kB
Active(file):    1376972 kB
Inactive(file):  1188840 kB
Unevictable:          32 kB
Mlocked:              32 kB
SwapTotal:       8388604 kB
SwapFree:        8388604 kB
Zswap:                 0 kB
Zswapped:              0 kB
Dirty:              1308 kB
Writeback:             0 kB
AnonPages:       1724272 kB
Mapped:          1010636 kB
Shmem:             56668 kB
KReclaimable:      77016 kB
Slab:             218580 kB
SReclaimable:      77016 kB
SUnreclaim:       141564 kB
KernelStack:       18656 kB
PageTables:        31296 kB
SecPageTables:      2984 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    16545052 kB
Committed_AS:    9331484 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       62776 kB
VmallocChunk:          0 kB
Percpu:            14080 kB
HardwareCorrupted:     0 kB
AnonHugePages:    354304 kB
ShmemHugePages:    28672 kB
ShmemPmdMapped:    20480 kB
FileHugePages:    434176 kB
FilePmdMapped:    212992 kB
CmaTotal:              0 kB
CmaFree:               0 kB
Unaccepted:            0 kB
Balloon:               0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
Hugetlb:               0 kB
DirectMap4k:      329860 kB
DirectMap2M:     8003584 kB
DirectMap1G:     9437184 kB


    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
   2697 legenda+  20   0   11.6g 641332 334060 S   0.0   3.9   0:36.69 firefox
   1416 legenda+  20   0 6057720 473664 297656 S   3.3   2.9   0:18.85 plasmas+
   3180 legenda+  20   0 1414.9g 467504 171072 S   3.3   2.9   0:23.45 Discord
   2651 legenda+  20   0 1392.5g 263164 164260 S   0.0   1.6   0:04.71 Discord
   3182 legenda+  20   0   19.0g 249708 103420 S   0.0   1.5   0:08.63 WebExte+
   1368 legenda+  20   0 2269924 242088 212652 S   0.0   1.5   0:00.55 kded6
   4211 legenda+  20   0 1602548 231700 210032 S   3.3   1.4   0:01.17 konsole
   1617 legenda+  20   0 1578532 212628 190444 S   0.0   1.3   0:00.46 Discove+
   1152 legenda+  20   0 1561256 202660 182184 S   0.0   1.2   0:00.14 ksecretd
   1661 legenda+  20   0 1558476 202272 181772 S   0.0   1.2   0:00.26 xdg-des+
   1451 legenda+  20   0 1277532 198704 181180 S   0.0   1.2   0:00.15 kaccess
   1366 legenda+  20   0 1275176 196940 180644 S   0.0   1.2   0:00.15 ksmserv+
   1783 legenda+  20   0 2688804 189180 118656 S   0.0   1.2   0:01.69 contour
   1291 legenda+  20   0 1112244 170608 146384 S   0.0   1.0   0:00.46 Xwayland
   2958 legenda+  20   0 2712888 156224 101160 S   0.0   1.0   0:01.28 Privile+
   2797 legenda+  20   0   32.7g 144092  99232 S   0.0   0.9   0:01.65 Discord
   3983 legenda+  20   0 2665188 135220 103636 S   0.0   0.8   0:03.75 Isolate+
   4083 legenda+  20   0 2631624  80996  65012 S   0.0   0.5   0:00.04 Web Con+
   3990 legenda+  20   0 2631624  80240  64228 S   0.0   0.5   0:00.04 Web Con+
   4166 legenda+  20   0 2632768  79900  63896 S   0.0   0.5   0:00.04 Web Con+
   2813 legenda+  20   0   32.3g  76100  62648 S   0.0   0.5   0:01.38 Discord
   1453 legenda+  20   0  767112  63724  53760 S   0.0   0.4   0:01.33 org_kde+
   2968 legenda+  20   0  787080  62716  42688 S   0.0   0.4   0:00.05 RDD Pro+
   3281 legenda+  20   0  777316  61096  41460 S   0.0   0.4   0:00.04 Utility+
   3407 legenda+  20   0   32.3g  60620  51216 S   0.0   0.4   0:00.20 Discord 

i'm only using a discord, a console (there's no free internet in my country so we use dpi bypass methods), and a steam while running the game, idk how it takes that much memory

Last edited by legendarniyyy (2026-03-08 08:17:27)

Offline

#8 2026-03-08 07:29:46

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,314

Re: Rust (game) eats a lot of RAM

Please use [code][/code] tags. Edit your post in this regard.

i'm only using a discord, a console (there's no free internet in my country so we use dpi bypass methods), and a steam while running the game, idk how it takes that much memory

Because that's not the list you presented before tongue

Most of that actually goes to firefox (many tabs/extensions?), plasma and discord (an electron application) - 1GB goes to inactive file cache.
Browsers and electron are notorious heavyweights, stuff like kded6, ksecretd and the xdg desktop portal implementation clocking in > 200MB RSS is rather surprisingly much ¯\_(ツ)_/¯

It's not gonna help you /that/ much but why are you running konsole AND contour?

Offline

#9 2026-03-08 08:19:23

legendarniyyy
Member
Registered: 2026-03-07
Posts: 5

Re: Rust (game) eats a lot of RAM

contour is for dpi bypass script running, and konsole is for commands that i need to copy output from

Offline

#10 2026-03-08 08:31:35

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,314

Re: Rust (game) eats a lot of RAM

You don't need to run a non-interactive script as foreground process in a TE and you can have multiple tabs and windows in konsole (and probably countour) and of course there's always tmux.

Offline

Board footer

Powered by FluxBB