Do you think it is safe and secure to disable Mitigation in Fedora for the sake of performance?

3 years ago by Harry_Houdini to c/linux

I've seen a video from CTT demonstrating the <10 performance boosts by simply off the mitigation. The system will be secure for personal use as before.

SuperFola 45 points 3 years ago

Ask yourself: do you really need a performance boost or are you just chasing the numbers to avoid a non-existant problem?

path: 0 4177655, hotness: undefined, score: 45, children: 1
OsrsNeedsF2P 3 points 3 years ago

Yea

path: 0 4177655 4269548, hotness: undefined, score: 3, children: 0
db2 31 points 3 years ago

Everything is secure until it isn't. I'd leave it on.

path: 0 4176736, hotness: undefined, score: 31, children: 0
CaptainJack42 22 points 3 years ago

The short answer, as a ton of people already said in the comments of the video, is "hell no" it is not and it is most likely also not worth it. Back when the video came out I tested it (with unplugged network) on my system and the performance gain was ~1% which I'd consider well within the margin of error

path: 0 4185367, hotness: undefined, score: 22, children: 6
ryannathans 4 points 3 years ago

Mines about 60% faster, ymmv

path: 0 4185367 4209772, hotness: undefined, score: 4, children: 5
mara 2 points 3 years ago

What workload makes that much of a difference?

path: 0 4185367 4209772 4224027, hotness: undefined, score: 2, children: 2
ryannathans 1 point 3 years ago

Games on a 3rd gen i7

path: 0 4185367 4209772 4224027 4264518, hotness: undefined, score: 1, children: 1
mara 1 point 3 years ago

Which games?

path: 0 4185367 4209772 4224027 4264518 4277070, hotness: undefined, score: 1, children: 0
OsrsNeedsF2P 1 point 3 years ago

Aren't you the guy who runs one of the largest RuneScape private servers? Why tf are you disabling security measures

path: 0 4185367 4209772 4269536, hotness: undefined, score: 1, children: 1
ryannathans 1 point 3 years ago

Isolated machine for emulating old consoles

path: 0 4185367 4209772 4269536 4273142, hotness: undefined, score: 1, children: 0
dack 20 points 3 years ago

The system will be secure for personal use as before.

I wouldn't be so sure of that. CPU side channels allow data to be leaked across security contexts. For example, from a user process to sandboxed JavaScript in a browser, from kernel space to user space, or from one containerized process to another. This is a problem even on a single user system without any VMs.

path: 0 4179530, hotness: undefined, score: 20, children: 1
stardreamer 12 points 3 years ago

Many years ago when I was still doing my undergrad I had a cyber security prof talk about side channels:

”There's no way to prevent side-channels. As long as two components are sharing the same physical resource there will be side channels. The only problem is that these side channels are leaking way more bits than we expected.”

So the question here is how big does the side channel need to be to leak something sensitive from memory? Turning off mitigations will almost certainly lead to larger side channels. Whether that is worth the risk is up to you.

path: 0 4179530 4180782, hotness: undefined, score: 12, children: 0
GustavoM 10 points 3 years ago

...or you could opt for other ways to improve your PC performance. For instance, using equal values for both scaling_max_freq and scaling_min_freq gives you a quite considerable performance boost at the expense of (almost) nothing.

path: 0 4183479, hotness: undefined, score: 10, children: 3
wim 15 points 3 years ago

Well, you lose a lot of power efficiency, this would be massively detrimental to many peoples experiences if you do this on anything battery powered like a laptop.

path: 0 4183479 4190878, hotness: undefined, score: 15, children: 2
GustavoM 3 points 3 years ago

Eh...I see your point.

path: 0 4183479 4190878 4190975, hotness: undefined, score: 3, children: 1
wim 5 points 3 years ago

And does this still work with modern cpufreq schedulers like amd-pstate and the Intel equivalent? IIRC I couldn't simply set frequencies or select the userspace scheduler on 10th gen Intel and frequencies don't seem to be honoured by AMD pstate drivers on Zen4.

path: 0 4183479 4190878 4190975 4192613, hotness: undefined, score: 5, children: 0
Lemmy 8 points 3 years ago

It depends on how importent security is for that system and how devestating it would be if someone else got control over it and all accounts and devices connected to it.

Assuming there are sucessful exploits it would be like running everything as root and disabling all sandbox/isolation features from the kernel and browsers. I'd say you should not connect such a machine to the internet.

path: 0 4179055, hotness: undefined, score: 8, children: 0
StrangeAstronomer -3 points 3 years ago

Link for the video?

As a general rule of thumb, I've been told that anything less than a 50% performance boost is hardly noticeable.

I've also heard (but ready to stand corrected) that mitigation costs only about 10% CPU (depending on the CPU).

I don't get out of bed for a 10% performance boost.

path: 0 4179342, hotness: undefined, score: -3, children: 0
Presi300 -17 points 3 years ago
path: 0 4181251, hotness: undefined, score: -17, children: 5
krash 16 points 3 years ago

This is exceptionally bad advice.

path: 0 4181251 4190946, hotness: undefined, score: 16, children: 3
Presi300 -1 points 3 years ago
path: 0 4181251 4190946 4196349, hotness: undefined, score: -1, children: 2
suprjami 4 points 3 years ago

Then post your credit card number, expiry, and CVC

path: 0 4181251 4190946 4196349 4209421, hotness: undefined, score: 4, children: 1
Presi300 1 point 3 years ago
path: 0 4181251 4190946 4196349 4209421 4210817, hotness: undefined, score: 1, children: 0
Pantherina 1 point 3 years ago

Not important, until some day a virus is on Flathub, a user downloads a stupid appimage and they get in trouble

path: 0 4181251 4275145, hotness: undefined, score: 1, children: 0
linux
linux

@lemmy.ml

login for more options
68164
9478
5816

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

go to feed...