ValveSoftware / Dota-2

Tracker for issues specific to Linux and Mac in the Reborn client. If you have a general issue or non-system-specific feature request please go to dev.dota2.com
470 stars 38 forks source link

[Linux][Nvidia][OpenGL/Vulkan] Huge FPS drop after upgrading from Linux 4.9 to Linux 4.1x #1371

Open astroty opened 6 years ago

astroty commented 6 years ago

After upgrading the kernel version to any newer version, I consistently found to get way lower frames while playing dota. To check if this was a more commonplace issue, I ran Unigine Heaven and found almost no variation between the two versions, making me believe it's something with Dota (or steam).

I am not sure how to do more tests to solve this issue, but I'm interested in helping.

Computer Information:
    Manufacturer:  Unknown
    Model:  Unknown
    Form Factor: Desktop
    No Touch Input Detected

Processor Information:
    CPU Vendor:  GenuineIntel
    CPU Brand:  Intel(R) Core(TM) i7-5960X CPU @ 3.00GHz
    CPU Family:  0x6
    CPU Model:  0x3f
    CPU Stepping:  0x2
    CPU Type:  0x0
    Speed:  3500 Mhz
    16 logical processors
    8 physical processors
    HyperThreading:  Supported
    FCMOV:  Supported
    SSE2:  Supported
    SSE3:  Supported
    SSSE3:  Supported
    SSE4a:  Unsupported
    SSE41:  Supported
    SSE42:  Supported
    AES:  Supported
    AVX:  Supported
    CMPXCHG16B:  Supported
    LAHF/SAHF:  Supported
    PrefetchW:  Unsupported

Operating System Version:
    "Manjaro Linux" (64 bit)
    Kernel Name:  Linux
    Kernel Version:  4.9.74-2-MANJARO
    X Server Vendor:  The X.Org Foundation
    X Server Release:  11906000
    X Window Manager:  Xfwm4
    Steam Runtime Version:  <Runtime disabled>

Video Card:
    Driver:  NVIDIA Corporation GeForce GTX 980/PCIe/SSE2
    Driver Version:  4.5.0 NVIDIA 384.111
    OpenGL Version: 4.5
    Desktop Color Depth: 24 bits per pixel
    Monitor Refresh Rate: 144 Hz
    VendorID:  0x10de
    DeviceID:  0x13c0
    Revision Not Detected
    Number of Monitors:  2
    Number of Logical Video Cards:  1
    Primary Display Resolution:  1920 x 1080
    Desktop Resolution: 3840 x 1080
    Primary Display Size: 20,91" x 11,77" (23,98" diag)
                                            53,1cm x 29,9cm (60,9cm diag)
    Primary Bus: PCI Express 16x
    Primary VRAM: 4096 MB
    Supported MSAA Modes:  2x 4x 8x 16x 

Sound card:
    Audio device: AV200

Memory:
    RAM:  32095 Mb

Miscellaneous:
    UI Language:  English
    LANG:  pt_BR.utf8
    Total Hard Disk Space Available:  1839143 Mb
    Largest Free Hard Disk Block:  699389 Mb
    VR Headset: None detected

Recent Failure Reports:
gdrewb-valve commented 6 years ago

You'll want to report this on Linux trackers also.

tukkek commented 6 years ago

A massive decrease in performance is expected for Intel processors as a mitigation for the recently unveiled Spectre and Meltdown security issues. However, you seem to be using the 4.9 kernel and the mitigation is supposed to only be present on version 4.15+ (as far as I can assess).

I know this isn't very helpful but this was the first thing that came to my head once I saw you mentioning a drop in performance on the latest kernels and seeing you had an Intel processor so I just wanted to document that this probably isn't the cause, as others might think the same thing when seeing this report.

It's possible though that Manjaro has backported their current kernel with the security fixes, so you may want to look into that. The fact other games don't show the same slowdown could just mean that they don't require as much processing power as DotA and so are not affected by the performance downgrade.

kisak-valve commented 6 years ago

A KAISER patch set (earlier iteration than KPTI, which is in 4.14.11+ and 4.15) was backported to 4.9.75 and 4.4.110. It's possible Arch pulled these patches into their kernel build immediately, before the version was bumped, but you'll need to check with your kernel package maintainers is that is actually the case.

astroty commented 6 years ago

Sorry it took too long to answer! Life and all. So, as said here before https://github.com/ValveSoftware/steam-for-linux/issues/5333#issuecomment-357381707 , they backported the patches to kernel 4.9. Currently I'm using 4.9.78 and it still has the same performance as it had when I opened the ticket.

Upon further inspection, this issue happens with some other steam games too. I tried some benchmarks with games outside steam but the results were inconclusive to me.