gamemode
gamemode copied to clipboard
memeory leak when useing gamemoded -t
Describe the bug
affter running gamemoded -t 1 it dosen't work 2 it casues a memory leak the highest i've seen it go is 60 gb befor i restarted (96 gb of total ram) it also crashes mission center, system monitor, and slows htop to a crawl, i could not get the prosses to show up in htop.
To Reproduce
run gamemoded -t
Expected behavior no memeory leak
System Info (please complete the following information):
c2@gentoobtw ~ $ fastfetch
-/oyddmdhs+:. c2@gentoobtw
-odNMMMMMMMMNNmhy+-` ------------
-yNMMMMMMMMMMMNNNmmdhy+- OS: Gentoo Linux x86_64
`omMMMMMMMMMMMMNmdmmmmddhhy/` Kernel: Linux 6.14.2-gentoo-dist
omMMMMMMMMMMMNhhyyyohmdddhhhdo` Uptime: 4 mins
.ydMMMMMMMMMMdhs++so/smdddhhhhdm+` Packages: 1859 (emerge), 6 (flatpak-user)
oyhdmNMMMMMMMNdyooydmddddhhhhyhNd. Shell: bash 5.2.37
:oyhhdNNMMMMMMMNNNmmdddhhhhhyymMh Display (XV275K): 3840x2160 @ 60 Hz (as 3072x1728) in 27" [External]
.:+sydNMMMMMNNNmmmdddhhhhhhmMmy Display (Odyssey G7): 3840x2160 @ 120 Hz in 31" [External, HDR] *
/mMMMMMMNNNmmmdddhhhhhmMNhs: DE: KDE Plasma 6.3.4
`oNMMMMMMMNNNmmmddddhhdmMNhs+` WM: KWin (Wayland)
`sNMMMMMMMMNNNmmmdddddmNMmhs/. WM Theme: Infinity-Solid-Aurorae-6
/NMMMMMMMMNNNNmmmdddmNMNdso:` Theme: Breeze (Custum_blues_and_purples) [Qt], Breeze-Dark [GTK2], Breeze [GTK3]
+MMMMMMMNNNNNmmmmdmNMNdso/- Icons: Vivid-Dark-Icons [Qt], Vivid-Dark-Icons [GTK2/3/4]
yMMNNNNNNNmmmmmNNMmhs+/-` Font: Noto Sans (10pt) [Qt], Noto Sans (10pt) [GTK2/3/4]
/hMMNNNNNNNNMNdhs++/-` Cursor: Vivid-Dark-Icons (24px)
`/ohdmmddhys+++/:.` Terminal: konsole 24.12.3
`-//////:--. CPU: AMD Ryzen 9 9950X3D (32) @ 5.76 GHz
GPU: AMD Radeon RX 7900 XTX [Discrete]
Memory: 8.21 GiB / 93.93 GiB (9%)
Swap: 0 B / 16.00 GiB (0%)
Disk (/): 859.12 GiB / 914.07 GiB (94%) - xfs
Disk (/run/media/hdd): 8.46 TiB / 10.83 TiB (78%) - ext4
Disk (/run/media/nvme2): 113.18 GiB / 232.88 GiB (49%) - btrfs
Disk (/run/media/ssds): 25.98 GiB / 476.46 GiB (5%) - xfs
Local IP (wlp11s0): 192.168.4.161/22
Locale: en_US.UTF-8
c2@gentoobtw ~ $
Additional context
c2@gentoobtw ~ $ cat /etc/gamemode.ini
[cpu]
pin_cores=0-15
park_cores=no
current user is part of the gamemode user group.
c2@gentoobtw ~ $ sudo gamemoded -t
: Loading config
Loading config file [/etc/gamemode.ini]
: Running tests
:: Basic client tests
:: Passed
:: Dual client tests
gamemode request succeeded and is active
Quitting by request...
:: Passed
:: Gamemoderun and reaper thread tests
ERROR: gamemode_query_status failed to return other client connected (expected 1)!
...Waiting for child to quit...
...Waiting for reaper thread (reaper_frequency set to 5 seconds)...
:: Supervisor tests
:: Passed
: Client tests failed, skipping feature tests
: Tests Failed!
c2@gentoobtw ~ $ journalctl -f -p err
Apr 19 10:39:29 gentoobtw (udev-worker)[794]: event13: Failed to call EVIOCSKEYCODE with scan code 0x7c, and key code 190: Invalid argument
Apr 19 10:40:59 gentoobtw sddm-helper[1262]: gkr-pam: unable to locate daemon control file
Apr 19 10:41:01 gentoobtw bluetoothd[1058]: Failed to remove UUID: Authentication Failed (0x05)
Apr 19 10:41:01 gentoobtw kernel: Bluetooth: hci0: command 0x0c24 tx timeout
Apr 19 10:41:01 gentoobtw kernel: Bluetooth: hci0: Opcode 0x0c24 failed: -110
Apr 19 10:41:01 gentoobtw kernel: Bluetooth: hci0: Resetting usb device.
Apr 19 10:41:02 gentoobtw kernel: Bluetooth: hci0: No support for _PRR ACPI method
Apr 19 10:41:03 gentoobtw bluetoothd[1058]: src/adv_monitor.c:btd_adv_monitor_power_down() Unexpected NULL btd_adv_monitor_manager object upon power down
Apr 19 10:41:29 gentoobtw systemd-networkd-wait-online[883]: Timeout occurred while waiting for network connectivity.
Apr 19 10:41:29 gentoobtw systemd[1]: Failed to start Wait for Network to be Configured.
Apr 19 10:42:35 gentoobtw systemd-coredump[14506]: [🡕] Process 14501 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:42:35 gentoobtw systemd-coredump[14530]: [🡕] Process 14522 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:42:35 gentoobtw systemd-coredump[14558]: [🡕] Process 14550 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:42:36 gentoobtw systemd-coredump[14585]: [🡕] Process 14577 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:42:41 gentoobtw systemd-coredump[24769]: [🡕] Process 24746 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:42:41 gentoobtw systemd-coredump[24982]: [🡕] Process 24958 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:42:47 gentoobtw systemd-coredump[36725]: elfutils disabled, parsing ELF objects not supported
Apr 19 10:42:47 gentoobtw systemd-coredump[36725]: [🡕] Process 1959 (missioncenter) of user 1000 dumped core.
Apr 19 10:43:35 gentoobtw systemd-coredump[129980]: [🡕] Process 129977 (pkexec) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:35 gentoobtw systemd-coredump[129991]: [🡕] Process 129982 (pkexec) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:35 gentoobtw systemd-coredump[130001]: [🡕] Process 129995 (pkexec) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:36 gentoobtw systemd-coredump[130012]: [🡕] Process 130005 (pkexec) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:36 gentoobtw systemd-coredump[130022]: [🡕] Process 130014 (pkexec) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:36 gentoobtw systemd-coredump[130044]: [🡕] Process 130036 (pkexec) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:36 gentoobtw systemd-coredump[130055]: [🡕] Process 130051 (pkexec) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:36 gentoobtw systemd-coredump[130066]: [🡕] Process 130057 (pkexec) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:36 gentoobtw systemd-coredump[130077]: [🡕] Process 130070 (pkexec) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:36 gentoobtw systemd-coredump[130091]: [🡕] Process 130084 (pkexec) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:36 gentoobtw systemd-coredump[130111]: [🡕] Process 130103 (pkexec) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:36 gentoobtw systemd-coredump[130125]: [🡕] Process 130116 (pkexec) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:36 gentoobtw systemd-coredump[130137]: [🡕] Process 130132 (pkexec) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:36 gentoobtw systemd-coredump[130149]: [🡕] Process 130139 (pkexec) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:36 gentoobtw systemd-coredump[130161]: [🡕] Process 130153 (pkexec) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:36 gentoobtw systemd-coredump[130188]: [🡕] Process 130180 (pkexec) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:36 gentoobtw systemd-coredump[130200]: [🡕] Process 130190 (pkexec) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:36 gentoobtw systemd-coredump[130212]: [🡕] Process 130203 (pkexec) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:36 gentoobtw systemd-coredump[130224]: [🡕] Process 130219 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:36 gentoobtw systemd-coredump[130260]: [🡕] Process 130239 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:36 gentoobtw systemd-coredump[130281]: [🡕] Process 130276 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:37 gentoobtw systemd-coredump[130301]: [🡕] Process 130296 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:37 gentoobtw systemd-coredump[130332]: [🡕] Process 130317 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:37 gentoobtw systemd-coredump[130353]: [🡕] Process 130347 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:37 gentoobtw systemd-coredump[130377]: [🡕] Process 130371 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:37 gentoobtw systemd-coredump[130398]: [🡕] Process 130393 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:37 gentoobtw systemd-coredump[130427]: [🡕] Process 130422 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:37 gentoobtw systemd-coredump[130448]: [🡕] Process 130443 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:37 gentoobtw systemd-coredump[130477]: [🡕] Process 130472 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:37 gentoobtw systemd-coredump[130497]: [🡕] Process 130492 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:37 gentoobtw systemd-coredump[130519]: [🡕] Process 130513 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:37 gentoobtw systemd-coredump[130540]: [🡕] Process 130534 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:37 gentoobtw systemd-coredump[130571]: [🡕] Process 130564 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:38 gentoobtw systemd-coredump[130594]: [🡕] Process 130589 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:38 gentoobtw systemd-coredump[130614]: [🡕] Process 130609 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:38 gentoobtw systemd-coredump[130645]: [🡕] Process 130635 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:38 gentoobtw systemd-coredump[130666]: [🡕] Process 130661 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:38 gentoobtw systemd-coredump[130686]: [🡕] Process 130681 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:38 gentoobtw systemd-coredump[130719]: [🡕] Process 130714 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:38 gentoobtw systemd-coredump[130739]: [🡕] Process 130734 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:38 gentoobtw systemd-coredump[130760]: [🡕] Process 130754 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:38 gentoobtw systemd-coredump[130790]: [🡕] Process 130777 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:38 gentoobtw systemd-coredump[130813]: [🡕] Process 130808 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:38 gentoobtw systemd-coredump[130834]: [🡕] Process 130829 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:38 gentoobtw systemd-coredump[130854]: [🡕] Process 130849 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:39 gentoobtw systemd-coredump[130886]: [🡕] Process 130881 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:39 gentoobtw systemd-coredump[130907]: [🡕] Process 130901 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:39 gentoobtw systemd-coredump[130928]: [🡕] Process 130923 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:39 gentoobtw systemd-coredump[130958]: [🡕] Process 130943 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:39 gentoobtw systemd-coredump[130979]: [🡕] Process 130973 (platprofctl) of user 0 terminated abnormally without generating a coredump.
Apr 19 10:43:39 gentoobtw systemd-coredump[131000]: [🡕] Process 130994 (platprofctl) of user 0 terminated abnormally without generating a coredump.
no memeory leak from a change in /etc/gamemode.ini
c2@gentoobtw ~ $ sudo nano /etc/gamemode.ini
Password:
c2@gentoobtw ~ $ gamemoded -t
: Loading config
Loading config file [/etc/gamemode.ini]
: Running tests
:: Basic client tests
:: Passed
:: Dual client tests
gamemode request succeeded and is active
Quitting by request...
:: Passed
:: Gamemoderun and reaper thread tests
...Waiting for child to quit...
...Waiting for reaper thread (reaper_frequency set to 5 seconds)...
:: Passed
:: Supervisor tests
:: Passed
:: Feature tests
::: Verifying CPU governor setting
::: Passed
::: Verifying platform profile setting
ERROR: Failed to open file for read /sys/firmware/acpi/platform_profile
ERROR: Failed to open file for read /sys/firmware/acpi/platform_profile
ERROR: Platform profile was not set to performance (was actually none)!
::: Failed!
-- You may need to add your user to the gamemode group: -- $ sudo usermod -aG gamemode $(whoami)::: Verifying Scripts
::: Passed (no scripts configured to run)
::: Verifying GPU Optimisations
::: Passed (gpu optimisations not configured to run)
::: Verifying renice
::: Passed (no renice configured)
::: Verifying ioprio
::: Passed
ERROR: :: Failed!
: Tests Failed!
c2@gentoobtw ~ $ cat /etc/gamemode.ini
[cpu]
pin_cores=yes
park_cores=no
c2@gentoobtw ~ $