Very poor performance

I’m in the process of moving over from Ubuntu to Manjaro (separate SSD drives on the same laptop using rEFInd boot manager), migrating bits of my setup across and testing it out as I go.

Currently I’m stuck getting MTGArena to get proper performance on Wine, it’s extremely laggy and gets worse the longer the game runs. CSGO via Steam has better base performance than Ubuntu (around 20-30 fps more) but I get huge lag spikes with 40fps drops in performance whenever there’s lots of action.

My setup is as follows:

$ uname -a
Linux 5.10.89-1-MANJARO #1 SMP PREEMPT Wed Dec 29 18:09:17 UTC 2021 x86_64 GNU/Linux

$ cat /etc/lsb-release 
DISTRIB_ID=ManjaroLinux
DISTRIB_RELEASE=21.2.1
DISTRIB_CODENAME=Qonos
DISTRIB_DESCRIPTION="Manjaro Linux"

$ glxinfo | grep OpenGL 
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GT 650M/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 390.147
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6.0 NVIDIA 390.147
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 390.147
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:

$ sudo mhwd -li
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
    video-nvidia-390xx            2021.12.18               false            PCI
Warning: No installed USB configs!

$ wine --version
wine-7.0-rc2

$ which gamemoderun
/usr/bin/gamemoderun

I run the games via gamemoderun. According to nvidia-settings my GPU barely hits 10% utilization when and my RAM and CPU usage also aren’t particularly high. There’s ample hard drive space available. Am I missing something? Could anyone nudge me in the right direction here?

Hi there … more information might be better:

Also lets take a look at what mhwd offers in general:

mhwd -l -d 

Hi, thanks for the quick response.

$ mhwd -l -d
--------------------------------------------------------------------------------
> PCI Device: /devices/pci0000:00/0000:00:01.0/0000:01:00.0 (0300:10de:0fd1)
  Display controller nVidia Corporation GK107M [GeForce GT 650M]
--------------------------------------------------------------------------------
  > INSTALLED:

   NAME:	video-nvidia-390xx
   ATTACHED:	PCI
   VERSION:	2021.12.18
   INFO:	Closed source NVIDIA drivers for linux.
   PRIORITY:	3
   FREEDRIVER:	false
   DEPENDS:	-
   CONFLICTS:	video*nvidia* 
   CLASSIDS:	0300 0302 
   VENDORIDS:	10de 



  > AVAILABLE:

   NAME:	video-nvidia-390xx
   ATTACHED:	PCI
   VERSION:	2021.12.18
   INFO:	Closed source NVIDIA drivers for linux.
   PRIORITY:	3
   FREEDRIVER:	false
   DEPENDS:	-
   CONFLICTS:	video*nvidia* 
   CLASSIDS:	0300 0302 
   VENDORIDS:	10de 

   NAME:	video-linux
   ATTACHED:	PCI
   VERSION:	2018.05.04
   INFO:	Standard open source drivers.
   PRIORITY:	2
   FREEDRIVER:	true
   DEPENDS:	-
   CONFLICTS:	-
   CLASSIDS:	0300 0380 0302 
   VENDORIDS:	1002 8086 10de 

   NAME:	video-modesetting
   ATTACHED:	PCI
   VERSION:	2020.01.13
   INFO:	X.org modesetting video driver.
   PRIORITY:	1
   FREEDRIVER:	true
   DEPENDS:	-
   CONFLICTS:	-
   CLASSIDS:	0300 
   VENDORIDS:	* 

   NAME:	video-vesa
   ATTACHED:	PCI
   VERSION:	2017.03.12
   INFO:	X.org vesa video driver.
   PRIORITY:	0
   FREEDRIVER:	true
   DEPENDS:	-
   CONFLICTS:	-
   CLASSIDS:	0300 
   VENDORIDS:	* 

$ inxi --admin --verbosity=7 --filter --width
System:
  Kernel: 5.10.89-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64
    root=UUID=08718278-4087-48fc-b93e-511ed29ea55f rw quiet
    cryptdevice=UUID=c6883f79-f485-43eb-b187-3878859f2b36:luks-c6883f79-f485-43eb-b187-3878859f2b36
    root=/dev/mapper/luks-c6883f79-f485-43eb-b187-3878859f2b36 apparmor=1
    security=apparmor
    resume=/dev/mapper/luks-0b0bd704-21bb-4b8e-8887-9413d41dd329
    udev.log_priority=3
  Desktop: i3 4.20.1 info: i3bar vt: 7 dm: LightDM 1.30.0
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 20193 v: Lenovo IdeaPad Y500
    serial: <superuser required> Chassis: type: 10 v: Lenovo IdeaPad Y500
    serial: <superuser required>
  Mobo: LENOVO model: INVALID v: 31900004WIN8 STD SGL
    serial: <superuser required> UEFI: LENOVO v: 6BCN34WW(V1.05)
    date: 11/29/2012
Battery:
  ID-1: BAT1 charge: 5.9 Wh (100.0%) condition: 5.9/6.3 Wh (93.6%) volts: 12.1
    min: 10.8 model: LENOVO PABAS0241231 type: Li-ion serial: <filter>
    status: Full
Memory:
  RAM: total: 15.58 GiB used: 3.75 GiB (24.1%)
  RAM Report:
    permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: Intel Core i7-3630QM bits: 64 type: MT MCP arch: Ivy Bridge
    family: 6 model-id: 0x3A (58) stepping: 9 microcode: 0x21
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB
    L3: 6 MiB desc: 1x6 MiB
  Speed (MHz): avg: 1557 high: 3149 min/max: 1200/3400 scaling:
    driver: intel_cpufreq governor: schedutil cores: 1: 1197 2: 1311 3: 1211
    4: 1197 5: 1229 6: 1759 7: 3149 8: 1410 bogomips: 38333
  Flags: acpi aes aperfmperf apic arat arch_perfmon avx bts clflush cmov
    constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb erms
    est f16c flush_l1d fpu fsgsbase fxsr ht ibpb ibrs ida lahf_lm lm mca mce
    md_clear mmx monitor msr mtrr nonstop_tsc nopl nx pae pat pbe pcid
    pclmulqdq pdcm pebs pge pln pni popcnt pse pse36 pti pts rdrand rdtscp
    rep_good sep smep ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm
    tm2 tsc tsc_deadline_timer vme x2apic xsave xsaveopt xtopology xtpr
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX unsupported
  Type: l1tf mitigation: PTE Inversion
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: spec_store_bypass
    mitigation: Speculative Store Bypass disabled via prctl and seccomp
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional,
    IBRS_FW, STIBP: conditional, RSB filling
  Type: srbds status: Vulnerable: No microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA GK107M [GeForce GT 650M] vendor: Lenovo driver: nvidia
    v: 390.147 alternate: nouveau,nvidia_drm bus-ID: 01:00.0 chip-ID: 10de:0fd1
    class-ID: 0300
  Device-2: Focusrite-Novation Scarlett 2i2 Camera type: USB
    driver: snd-usb-audio,usb-storage bus-ID: 3-3:2 chip-ID: 1235:8210
    class-ID: 0806 serial: <filter>
  Device-3: Chicony Lenovo EasyCamera type: USB driver: uvcvideo
    bus-ID: 4-1:2 chip-ID: 04f2:b331 class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org 1.21.1.2 driver: loaded: nvidia display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 92 s-size: 530x301mm (20.9x11.9")
    s-diag: 610mm (24")
  Monitor-1: HDMI-0 res: 1920x1080 hz: 60 dpi: 92
    size: 531x299mm (20.9x11.8") diag: 609mm (24")
  OpenGL: renderer: GeForce GT 650M/PCIe/SSE2 v: 4.6.0 NVIDIA 390.147
    direct render: Yes
Audio:
  Device-1: Intel 7 Series/C216 Family High Definition Audio vendor: Lenovo
    driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:1e20
    class-ID: 0403
  Device-2: NVIDIA GK107 HDMI Audio vendor: Lenovo driver: snd_hda_intel
    v: kernel bus-ID: 01:00.1 chip-ID: 10de:0e1b class-ID: 0403
  Device-3: Focusrite-Novation Scarlett 2i2 Camera type: USB
    driver: snd-usb-audio,usb-storage bus-ID: 3-3:2 chip-ID: 1235:8210
    class-ID: 0806 serial: <filter>
  Sound Server-1: ALSA v: k5.10.89-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.19 running: yes
  Sound Server-3: PulseAudio v: 15.0 running: yes
Network:
  Device-1: Qualcomm Atheros AR8161 Gigabit Ethernet vendor: Realtek
    driver: alx v: kernel port: 2000 bus-ID: 02:00.0 chip-ID: 1969:1091
    class-ID: 0200
  IF: enp2s0 state: down mac: <filter>
  Device-2: Intel Centrino Wireless-N 2230 driver: iwlwifi v: kernel
    bus-ID: 03:00.0 chip-ID: 8086:0888 class-ID: 0280
  IF: wlp3s0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Bluetooth:
  Device-1: Intel Centrino Bluetooth Wireless Transceiver type: USB
    driver: btusb v: 0.8 bus-ID: 1-1.3:4 chip-ID: 8087:07da class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 3 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
  Device-1: luks-c6883f79-f485-43eb-b187-3878859f2b36 maj-min: 254:0
    type: LUKS dm: dm-0 size: 214.47 GiB
  Components:
  p-1: sdb2 maj-min: 8:18 size: 214.47 GiB
  Device-2: luks-0b0bd704-21bb-4b8e-8887-9413d41dd329 maj-min: 254:1
    type: LUKS dm: dm-1 size: 8.8 GiB
  Components:
  p-1: sdb3 maj-min: 8:19 size: 8.8 GiB
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 456.46 GiB used: 50.9 GiB (11.2%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 850 EVO 250GB
    size: 232.89 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 2B6Q scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Western Digital
    model: WDS240G2G0A-00JH30 size: 223.57 GiB block-size: physical: 512 B
    logical: 512 B speed: 3.0 Gb/s type: SSD serial: <filter> rev: 0400
    scheme: GPT
  ID-3: /dev/sdc maj-min: 8:32 type: USB model: Scarlett Welcome Disk
    size: 192 KiB block-size: physical: 512 B logical: 512 B type: N/A
    serial: <filter> rev: 0.10 scheme: MBR
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 214.47 GiB size: 210.11 GiB (97.96%)
    used: 50.9 GiB (24.2%) fs: ext4 dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-c6883f79-f485-43eb-b187-3878859f2b36 label: N/A
    uuid: 08718278-4087-48fc-b93e-511ed29ea55f
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 424 KiB (0.1%) fs: vfat dev: /dev/sdb1 maj-min: 8:17 label: N/A
    uuid: 6206-2FE7
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 8.8 GiB used: 2.5 MiB (0.0%)
    priority: -2 dev: /dev/dm-1 maj-min: 254:1
    mapped: luks-0b0bd704-21bb-4b8e-8887-9413d41dd329 label: N/A
    uuid: d6c58f56-f61d-4d2c-9f80-c31e61876cfd
Unmounted:
  ID-1: /dev/sda1 maj-min: 8:1 size: 512 MiB fs: vfat label: N/A
    uuid: 0020-79E7
  ID-2: /dev/sda2 maj-min: 8:2 size: 732 MiB fs: ext4 label: N/A
    uuid: fd86a8ce-9d51-4ae5-b9e2-d14058fc45ef
  ID-3: /dev/sdc1 maj-min: 8:33 size: 160 KiB fs: vfat label: SCARLETT
    uuid: 8886-5B6C
USB:
  Hub-1: 1-0:1 info: Full speed or root hub ports: 2 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Hub-2: 1-1:2 info: Intel Integrated Rate Matching Hub ports: 6 rev: 2.0
    speed: 480 Mb/s chip-ID: 8087:0024 class-ID: 0900
  Hub-3: 1-1.2:3 info: Genesys Logic Hub ports: 4 rev: 2.0 speed: 480 Mb/s
    power: 100mA chip-ID: 05e3:0610 class-ID: 0900
  Device-1: 1-1.2.2:5 info: China Resource Semico COUGAR Gaming Keyboard
    type: Keyboard,Mouse driver: hid-generic,usbhid interfaces: 2 rev: 1.1
    speed: 1.5 Mb/s power: 500mA chip-ID: 1a2c:437c class-ID: 0301
  Device-2: 1-1.2.4:6 info: Pixart Imaging Gaming Mouse type: Mouse
    driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 12 Mb/s
    power: 100mA chip-ID: 093a:2530 class-ID: 0301
  Device-3: 1-1.3:4 info: Intel Centrino Bluetooth Wireless Transceiver
    type: Bluetooth driver: btusb interfaces: 2 rev: 2.0 speed: 12 Mb/s
    chip-ID: 8087:07da class-ID: e001
  Hub-4: 2-0:1 info: Full speed or root hub ports: 2 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Hub-5: 2-1:2 info: Intel Integrated Rate Matching Hub ports: 6 rev: 2.0
    speed: 480 Mb/s chip-ID: 8087:0024 class-ID: 0900
  Hub-6: 3-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 3-3:2 info: Focusrite-Novation Scarlett 2i2 Camera
    type: Audio,Mass Storage driver: snd-usb-audio,usb-storage interfaces: 5
    rev: 2.1 speed: 480 Mb/s power: 500mA chip-ID: 1235:8210 class-ID: 0806
    serial: <filter>
  Hub-7: 4-0:1 info: Super-speed hub ports: 4 rev: 3.0 speed: 5 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
  Device-1: 4-1:2 info: Chicony Lenovo EasyCamera type: Video
    driver: uvcvideo interfaces: 2 rev: 3.0 speed: 5 Gb/s power: 800mA
    chip-ID: 04f2:b331 class-ID: 0e02 serial: <filter>
Sensors:
  System Temperatures: cpu: 72.0 C mobo: N/A gpu: nvidia temp: 68 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 251 Uptime: 3h 3m wakeups: 2 Init: systemd v: 250 tool: systemctl
  Compilers: gcc: 11.1.0 Packages: pacman: 1136 lib: 325 Shell: Bash v: 5.1.12
  running-in: urxvtd inxi: 3.3.11

Since you have compared between distros, this is probably not the culprit, but I will still mention you have a BIOS update (an old one - 2014 … but still).

And since we were comparing with Ubuntu … maybe I should mention TLP which comes default in manjaro, so thats another point of difference. You can do a quick check with disabling it:

systemctl disable tlp --now

Thanks, I’ll update the BIOS. Disabling TLP didn’t seem to have any impact.

Of course checking a few kernels might be worthwhile as well - namely 5.4 or 5.15

Is there a reason to use wine over wine-staging, which generally has better performance?