LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-31-2023, 10:42 AM   #1
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,618

Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
Maybe issue with swap and the 6.6 kernel?


Slackware64-current with multilib, nvidia 545.29.02, 16GB RAM, Geforce 1050ti, Ryzen 5 1600. (6.6.8 huge kernel with preempt=full) Everything is patched as of last night.

I've noticed that when my computer is under a heavy load (like while playing Guild Wars 2 via proton and DXVK) that while I'll have at least 7GB buff/cache and 7GB available memory (as reported to top), my swap usage will go up. (Performance doesn't seem to be affected any, and I can quit the application, and the number will slowly go down. I can clear the swap with swapoff/swapon.) With the holidays, I haven't had as much time to game, but I was having similar issues with Diablo IV. (Also with proton, but with VKD3D, and also does have an nvidia-based memory leak that's affecting windows.)

The gamingonlinux people didn't think this was too much of an issue, because swap does get used, and I'm probably not noticing it, because most people don't obsessively watch top while they do other things. My partner says this is just a bug, and it's probably not a problem, either.

There's nothing in dmesg, messages, or syslog to indicate any OOM errors. I probably wouldn't notice it, if I didn't randomly check top.

No issues with supercollider, playing videos, or just non-gaming usage. I can play Vampire Survivors and watch youtube videos, and no problems with RAM.

Boot strings: "root=/dev/sda2 vga=normal ro pti=off rcu_nocbs=0-11 threadirqs preempt=full"

So did something change with memory usage and the 6.6 kernel that I'm noticing? Is this a kernel bug? vulkan bug? Buggy software (gw2 and diablo IV)? Not a bug at all?
 
Old 12-31-2023, 10:58 AM   #2
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,962

Rep: Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574
How much does it use swap? How large swap do you have?
 
Old 12-31-2023, 11:07 AM   #3
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,618

Original Poster
Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
I don't think I"ve seen the swap go above 1GB. I've got 16GB swap.
 
Old 12-31-2023, 11:53 AM   #4
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,962

Rep: Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574
At the moment when the swap use is high, do you have lots of usage in tmpfs?
Code:
df -t tmpfs
If the game puts lots of stuff there, they are in RAM, but unneeded pages go out to swap.
 
Old 12-31-2023, 02:12 PM   #5
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,618

Original Poster
Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
Code:
Filesystem     1K-blocks   Used Available Use% Mounted on
tmpfs              32768   1504     31264   5% /run
tmpfs            8152476 682688   7469788   9% /dev/shm
cgroup_root         8192      0      8192   0% /sys/fs/cgroup
tmpfs            1630492     12   1630480   1% /run/user/1000
Nothing exceptionally note-worthy. Bug report it with proton?

Or this? https://github.com/doitsujin/dxvk/issues/958

Last edited by garpu; 12-31-2023 at 02:16 PM.
 
Old 12-31-2023, 02:24 PM   #6
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,618

Original Poster
Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
Code:
MiB Mem :  15922.8 total,    244.1 free,   7603.3 used,   8075.4 buff/cache
MiB Swap:  16384.0 total,  15762.4 free,    621.6 used.   7296.9 avail Mem 

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND    
32046 hildega+  25   5   40.1g   3.5g 315692 S 515.1  22.7  12:10.18 Gw2-64.exe
Was able to make the swap go up by loading into different areas.

Code:
---------------------------------------------------------------------------------------+
| NVIDIA-SMI 545.29.02              Driver Version: 545.29.02    CUDA Version: 12.3     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce GTX 1050 Ti     Off | 00000000:07:00.0  On |                  N/A |
| 35%   54C    P0              N/A /  75W |   3587MiB /  4096MiB |     43%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                                         
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A       407      G   /home/hildegard/bin/firefox/firefox           3MiB |
|    0   N/A  N/A       816      G   ...,WinRetrieveSuggestionsOnlyOnDemand       40MiB |
|    0   N/A  N/A      1286      G   ...local/share/Steam/ubuntu12_32/steam        1MiB |
|    0   N/A  N/A      1292      G   ...re/Steam/ubuntu12_64/steamwebhelper        5MiB |
|    0   N/A  N/A     32046    C+G   ...apps\common\Guild Wars 2\Gw2-64.exe     2745MiB |
|    0   N/A  N/A     32111    C+G   ...\Guild Wars 2\bin64\cef\CefHost.exe      549MiB |
|    0   N/A  N/A     32489      G   /usr/libexec/Xorg                           229MiB |
|    0   N/A  N/A     32540      G   xfwm4                                         1MiB |
|    0   N/A  N/A     32641      G   kalendarac                                    1MiB |
+---------------------------------------------------------------------------------------+
I thought VRAM doesn't use swap, though? It seems to happen when my VRAM approaches the limit.

Last edited by garpu; 12-31-2023 at 02:26 PM.
 
Old 01-02-2024, 05:36 PM   #7
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,618

Original Poster
Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
Tentatively marking this one solved, because I don't think it's a Slackware problem, and I think it's a Steam problem, since I only see it with dxvk games.
 
Old 01-04-2024, 09:04 AM   #8
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,023

Rep: Reputation: Disabled
You can always play with VM parameters. These can improve overall performance:
vm.vfs_cache_pressure = 50
vm.swappiness = 10
vm.dirty_background_ratio = 10
vm.dirty_background_bytes = 0

vm.dirty_ratio = 20
vm.dirty_bytes = 0
vm.dirty_writeback_centisecs = 3000
vm.dirty_expire_centisecs = 500

These are examples to tweak. Once tuned, probably will improve system responsiveness (not for server). The ratio variant will become 0 if we set the bytes variant, and vice versa.

Setting general preempt_full may not be enough for specific task.
I don't have Slackware kernel, but CONFIG_KPROBE_EVENTS=y disables preempt.
https://stackoverflow.com/questions/...to-reenable-it
 
1 members found this post helpful.
Old 01-06-2024, 08:19 AM   #9
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,618

Original Poster
Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
Thanks, Aeterna! Will give it a try once I'm not on cold meds.

ETA: tweaking the swapiness did fix it, I think! Haven't had the brainpower to really do much more than watch youtube videos, though.

Last edited by garpu; 01-06-2024 at 01:49 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Is Linux Gaining share at Windows Expense? Maybe, Maybe not LXer Syndicated Linux News 0 10-13-2010 08:00 AM
Maybe something, Maybe not ... Webmaster Warning rickh Linux - Security 2 06-12-2008 08:17 PM
How To Block Websites? Maybe /etc/hosts (.deny maybe) How? aaron4katie Linux - Security 7 01-08-2007 04:58 PM
Simple is efficient ???? Maybe/Maybe not ! bigjohn General 21 07-08-2005 10:27 AM
Maybe better off in the newbie section...but it's kinda general...sort of...maybe.. Valael Linux - General 2 10-20-2002 11:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration