Originally posted by Steffen Bergner
View Post
Announcement
Collapse
No announcement yet.
Debian vs. Ubuntu vs. CentOS vs. openSUSE vs. Clear Linux Post-Meltdown Performance
Collapse
X
-
Michael Larabel
https://www.michaellarabel.com/
- Likes 3
-
Originally posted by Djhg2000 View Post
I think a more likely reason is portability, you don't want to cause performance regressions on a binary distro. On a source distro like Gentoo people are putting a lot of effort into optimizing compiler flags because they're just local anyway.
- Likes 1
Comment
-
Originally posted by Zoll View Post
It seems no one is taking steps to optimize the flags in the popular distros. Maybe it's too much work for them?
But yeah, I definitely wished they would look into it, or follow suit like Solus did.
Comment
-
Originally posted by _Alex_ View PostI think one of the parameters that might affect system performance with the Meltdown patches, due to context switching, is 100hz/250hz/1000hz and pre-emption vs server (no preemption). The more context switches there are, the bigger the drop (especially in older hardware).
Perphaps a test of an identical kernel with preemption on / off, or different timer frequencies could reveal more about it, which would then lead distros to fine tune their distros according to the new data. Of course all these tests require time :P
CONFIG_NOHZ doesn't disable pre-emption. It switched from a scheduled rate of pre-emption to opportunistic pre-emption, where the kernel basically only pre-empts when an interrupt was already occurring rather than introducing an extra 100 interrupts (or more) regular per second.
CONFIG_NOHZ is good for power management, good for cache locality, good for realtime processes, and bad for desktop UI latency. Lots of people swear by CONFIG_HZ 1000 because it makes the desktop buttery smooth, but actual system performance is lower, mostly because it impacts cache locality.
No it won't be affected much by the KPTI/Retpoline patches. Why? A process can make hundreds of context switches inside their timeslice, with hundreds of times more impact than from the regular scheduling. Whether the kernel wakes up 400 times per second with CONFIG_NOHZ or 500 times with CONFIG_HZ=100, makes no measurable difference vs the 500,000 syscalls dbench can make in one second.Last edited by linuxgeex; 14 January 2018, 03:00 AM.
Comment
-
Originally posted by Zoll View Post
It seems no one is taking steps to optimize the flags in the popular distros. Maybe it's too much work for them?
1) the CFLAGS and makefile produced by the application vendor. These are rarely changed by package managers.
2) Distro CFLAGS policies. Most of the distros have a -O2 policy and rules for when to use other flags, boiling down to something along the lines of "Don't use -O0 or -O1 unless it won't build and operate normally with -O2. By all means enable other optimisations if they are stable and have significant benefits"
which leads to...
3) The package maintainers are prepared to invest so much time for quality assurance and bug fixes. For distros that build on multiple architectures, testing with FDO/PGO or even with -O3 and sets of other flags ie -fno-strict-aliasing, -ffast-math, -fgcse, can easily result in 20-100 times as much build time. The maintainer may not have access to sufficient hardware to perform all that building and testing, they may not have the time personally, they may not be mentoring a new maintainer that they can delegate that work to, and so they may choose to just trust the vendor who says it's stable on XYZ with -O2. Their job isn't to squeeze every ounce of performance out of their packages. It's to ensure there's no release-critical bugs, in a timely fashion.
So, if you are sad about that situation, my all means, find a maintainer for packages you care about, volunteer to help them with testing optimisations. I'm sure your work will be well appreciated by the community.
- Likes 2
Comment
-
Originally posted by linuxgeex View Post
I think you mean CONFIG_NOHZ, not "pre-emption off".
Comment
-
Michael Larabel
https://www.michaellarabel.com/
Comment
Comment