The officially official Devuan Forum!

You are not logged in.

#1 2024-09-14 12:21:00

zapper
Member
Registered: 2017-05-29
Posts: 956  

Something rather bizarre regarding ram has happened,

You can see it here:

https://upload.disroot.org/r/sebSnA6b#m … +VuzWkbXU=

I was using wine-staging and after like 3+ game of a game called SC2, suddenly everything slows to a crawl.

I logged off and lone behold, I check my ram 5.6GB is being used!

When I started the game originally of SC2 I checked and it used less then 2GB of ram.

But after the three games even after closing it, I still was having 5.6GB being used.

It was friggin weird. 

I checked with htop and found that some xorg program was using like 30+% of it. That attachment shows the main command of issue. I dunno what the hell this bug is.

Someone enlighten me.

PS, this is the computer I play starcraft 2 on and yes AMD GPU non-free blob was enabled.


Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term  If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Peace Be With us All!

Offline

#2 2024-09-14 14:43:38

alexkemp
Member
Registered: 2018-05-14
Posts: 338  

Re: Something rather bizarre regarding ram has happened,

I do not game, yet for decades 1 TB of RAM gets filled to capacity by normal day-to-day use (I tend to leave the machine switched on 24/7 & typical timings are 7 days to hit swap usage).

I had a dedicated server for approx 15 years & it would take months & months before it needed reboot. Just one month for a desktop machine. Not good.

Offline

#3 2024-09-14 16:40:45

Camtaf
Member
Registered: 2019-11-19
Posts: 432  

Re: Something rather bizarre regarding ram has happened,

Probably, most of your ram is just being used as a cache.....

Offline

#4 2024-09-15 10:39:41

steve_v
Member
Registered: 2018-01-11
Posts: 374  

Re: Something rather bizarre regarding ram has happened,

some xorg program was using like 30+%

If it is indeed X using that much memory, xrestop may be of interest.


Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy.

Offline

#5 2024-09-15 23:11:19

zapper
Member
Registered: 2017-05-29
Posts: 956  

Re: Something rather bizarre regarding ram has happened,

@camtaf someone on the framework community website forums suggested it was a memory leak. But it still is very weird regardless.


Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term  If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Peace Be With us All!

Offline

#6 2024-09-16 16:04:15

chris2be8
Member
Registered: 2018-08-11
Posts: 306  

Re: Something rather bizarre regarding ram has happened,

It does sound like a memory leak. If it happens again try running free and vmstat to get stats on memory usage. The si and so fields in vmstat outout show how much memory is being swapped in and swapped out from/to disk. If that's high you will usually notice the system is slow.

Offline

#7 2024-09-16 20:26:50

zapper
Member
Registered: 2017-05-29
Posts: 956  

Re: Something rather bizarre regarding ram has happened,

@chris2be8 what do I do with the info I receive after I do that?


Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term  If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Peace Be With us All!

Offline

#8 2024-09-17 16:40:22

chris2be8
Member
Registered: 2018-08-11
Posts: 306  

Re: Something rather bizarre regarding ram has happened,

The first step is to read the man (or info) pages for free and vmstat. They describe what the output fields mean.

Memory leaks can be a pain to track down. To find out which program is leaking memory you may need to:
ps -efly >ps.out1
Run suspect program (in your case the game under wine) for a while.
ps -efly >ps.out2
Run the program for a bit more.
ps -efly >ps.out3
...
When the system starts paging take a last snapshot:
ps -efly >ps.outn
Then stop the program and compare memory snapshots to see which program(s) RSS and SIZE fields were growing.

Then *all* you have to do is to find who supports the leaky program and persuade them to fix it.

Caveat. I've not had to do that myself, so I can't be sure it will work.

Offline

#9 2024-09-18 13:25:48

zapper
Member
Registered: 2017-05-29
Posts: 956  

Re: Something rather bizarre regarding ram has happened,

@chris2be8

https://upload.disroot.org/r/pBagFvgG#A … Dtz2tkVr0=

This is the logs I have had.

Can you make any sense of this?

I am pretty sure its an xorg issue but beyond that, no idea.


Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term  If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Peace Be With us All!

Offline

#10 2024-09-18 16:40:53

chris2be8
Member
Registered: 2018-08-11
Posts: 306  

Re: Something rather bizarre regarding ram has happened,

Sorry, that link just hangs saying:
Please wait while we are getting your file. We first need to download and decrypt all parts before you can get it.

Offline

#11 2024-09-18 19:47:10

zapper
Member
Registered: 2017-05-29
Posts: 956  

Re: Something rather bizarre regarding ram has happened,

@chris2be8

What web browser are you using? I can make it work.

Did you disable javascript or something?

I am using palemoon and I can get link easily. Very strange...

You should be able to as long as you wait ten seconds or so


Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term  If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Peace Be With us All!

Offline

#12 2024-09-19 16:29:48

chris2be8
Member
Registered: 2018-08-11
Posts: 306  

Re: Something rather bizarre regarding ram has happened,

Yes, I normally disable javascript, for safety. I've managed  to get it now.

Running sort <ps.out1 -g -k 8 | tail against each file in turn to find the programs with biggest RSS I spotted two large users:

R userus+  3114     1 99  80   0 2193540 2241107 -  08:48 ?        00:28:46 C:\Program Files (x86)\StarCraft II\Versions\Base92440\SC2_x64.exe
R userus+  2936  2935 62  80   0 2250356 901302 -   08:48 tty1     00:14:23 /usr/lib/xorg/Xorg -nolisten tcp :0 vt1 -keeptty -auth /tmp/serverauth.LPffKQyAqd

(those are in ps4)
/usr/lib/xorg/Xorg is probably innocent.
C:\Program Files (x86)\StarCraft II\Versions\Base92440\SC2_x64.exe is the most likely culprit.

HTH.

Offline

#13 2024-09-20 04:44:47

zapper
Member
Registered: 2017-05-29
Posts: 956  

Re: Something rather bizarre regarding ram has happened,

@chris2be8 do you think wayland would be affected by this then? Don't get me wrong, I hate wayland, but this is my gaming computer so ill put up with it if i have to.


Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term  If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Peace Be With us All!

Offline

#14 2024-09-20 16:04:32

chris2be8
Member
Registered: 2018-08-11
Posts: 306  

Re: Something rather bizarre regarding ram has happened,

I doubt wayland would do any better. It looks as if the game has a memory leak, which will probably still happen under wayland.

The only quick fix I can think of is to only run the game for a limited time, then quit it and restart wine before running it again. If it's the sort of game where you can do that.

Offline

#15 2024-09-23 05:30:22

zapper
Member
Registered: 2017-05-29
Posts: 956  

Re: Something rather bizarre regarding ram has happened,

@chris2be8 I decided anyhow that I might need more ram. So thats what I will do.


Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term  If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Peace Be With us All!

Offline

#16 2024-09-23 16:04:29

chris2be8
Member
Registered: 2018-08-11
Posts: 306  

Re: Something rather bizarre regarding ram has happened,

Wayland would probably need more memory that X windows so would make matters worse if your ram is limited.

The game might just need a lot of memory to run. So adding ram should get you fixed. Just for interest how much do you have now and how much are you adding?

Offline

#17 2024-09-28 23:52:15

zapper
Member
Registered: 2017-05-29
Posts: 956  

Re: Something rather bizarre regarding ram has happened,

@chris2be8

I got more ram and that fixed the problem thankfully.


Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term  If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Peace Be With us All!

Offline

Board footer