-
-
Notifications
You must be signed in to change notification settings - Fork 13.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Intel graphics performance degraded after upgrade to kernel 4.14 #31999
Comments
I Confirm that. I have the same thing on both the generic kernel under ubuntu and on my builds [optimized kernels for Ubuntu and derivatives]. I have tested for Linux-4.14.3 inclusive and still have very strong slowdowns in intel graphics - including nvidia if it uses bumblebee. Under 4.13.x everything works fine and very efficient |
This is important for the next release, because 4.14 is to become the default kernel. |
I have the same issue in OpenSuse Tumbleweed with kernel 4.14. With kernel 4.13 was all ok. |
I've opened a bug report at the kernel.org bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=198241 |
Is someone willing to help bisect the issue on NixOS? You will need a 1 GB clone of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git and the patience to compile the kernel and reboot about 15 times. I could provide instructions how to do it. |
I'll give it a shot. |
@orivej I'm trying to build the kernel using a local clone and diff --git a/pkgs/os-specific/linux/kernel/linux-bisect.nix b/pkgs/os-specific/linux/kernel/linux-bisect.nix
new file mode 100644
index 00000000000..b75344abeeb
--- /dev/null
+++ b/pkgs/os-specific/linux/kernel/linux-bisect.nix
@@ -0,0 +1,15 @@
+{ stdenv, hostPlatform, fetchurl, perl, buildLinux, ... } @ args:
+
+with stdenv.lib;
+
+import ./generic.nix (args // rec {
+ version = "4.13.0";
+
+ # modDirVersion needs to be x.y.z, will automatically add .0 if needed
+ modDirVersion = concatStrings (intersperse "." (take 3 (splitString "." "${version}.0")));
+
+ # branchVersion needs to be x.y
+ extraMeta.branch = concatStrings (intersperse "." (take 2 (splitString "." version)));
+
+ src = /home/julien/development/linux;
+} // (args.argsOverride or {}))
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index cea7a7478ad..b8028f11d91 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -12710,6 +12710,10 @@ with pkgs;
];
};
+ linux_bisect = callPackage ../os-specific/linux/kernel/linux-bisect.nix {
+ # To make life simple with patch files during bisect
+ kernelPatches = [ ];
+ };
+
linux_testing = callPackage ../os-specific/linux/kernel/linux-testing.nix {
kernelPatches = [
kernelPatches.bridge_stp_helper
@@ -12908,6 +12912,7 @@ with pkgs;
linuxPackages_4_9 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_4_9);
linuxPackages_4_13 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_4_13);
linuxPackages_4_14 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_4_14);
+ linuxPackages_bisect = recurseIntoAttrs (linuxPackagesFor pkgs.linux_bisect);
# Don't forget to update linuxPackages_latest!
# Intentionally lacks recurseIntoAttrs, as -rc kernels will quite likely break out-of-tree modules and cause failed Hydra builds. And my A sample of the build log:
|
Oh it appears I should probably include at least some of those kernel patches. Trying again... |
Okay, so I can get to a boot with if I include both |
So I guess it makes sense that that would affect things for some people... My panel has 60Hz and 40Hz rates at 1920x1080. If I go into a mode that only has 60Hz available, then performance goes back to normal. |
I didn't find anything in |
Trying |
A guy on manjaro forums said to try [something along the lines of] |
@mirh can you post a link to that? |
@mirh Thanks. Setting a custom mode as the preferred certainly works (I'm doing that currently), but it really seems like a workaround to me. |
I don't know, it seems stalled. So we apply a revert of that commit for our 4.14, as suggested in https://bugs.freedesktop.org/show_bug.cgi?id=103497#c11 ? What do you think? |
Ping - I'm unsure if this is the same issue I'm seeing, but I've noticed significant performance degradation since switching to 18.03, both on my desktop and my laptop (although more severe on the latter, probably because it has less powerful hardware). The issues are most notable in Firefox, which regularly just hangs for upwards of 10-20 seconds - in particular when typing things into the address bar - but I've noticed performance degradation elsewhere as well (including in my laptop's trackpoint being more jittery than before). When Firefox hangs, it is only pegging a single core, and there is no significant iowait, yet it's still impacting other applications such as Synergy which get stuck as well, despite having no direct relation to Firefox. The two have a dependency on X and the kernel in common, at least, but nothing else that I'm aware of. Does this seem related to this issue? EDIT: For clarification, my laptop has an Intel integrated GPU (no hybrid graphics), my desktop has an AMD card with the |
This issue doesn't really do a "performance" degradation but incorrect refresh rate in some cases. Therefore it doesn't seem to be the same issue (to me). |
Hint: you can just `perf` your `firefox` from both system generations (17.09 and master) and compare the reports to see what changed.
I would also `perf` under with an old kernel (like 4.9) on master and compare with the newer ones.
|
My laptop was affected as well. |
It does have a Or well, at least it should. |
It could be useful to report to the Bugzilla ticket that the 4.14 backport wasn't successful. |
This part seems relevant
I presume it's about "backport a revert" vs. "revert a backport". |
+1 Currently avoiding the issue thanks to this patch I apply locally: |
This is now out of date. |
Issue description
After switching to kernel 4.14, the screen has flickering and response rate in Xorg is sluggish. The only change is 4.13->4.14. Graphics run smoothly in 4.13.
As a data point, running glxgears produces consistent 60 FPS in 4.13, and around 40 FPS in 4.14 (screen refresh is set to 60Hz in both cases).
This may be an upstream issue but I figured I should start here for troubleshooting.
Steps to reproduce
Switch from kernel 4.13 to kernel 4.14
Technical details
"x86_64-linux"
Linux 4.14.0, NixOS, 18.03pre120540.b8f7027360 (Impala)
yes
yes
nix-env (Nix) 1.11.15
"nixos-18.03pre120540.b8f7027360"
/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
Relevant configuration.nix
The text was updated successfully, but these errors were encountered: