How to disable Spectre , Meltdown , ... kernel patches

tincboy

Active Member
Apr 13, 2010
463
2
38
For better Ceph performance, I need to disable all kind of kernel protections for CPU vulnerabilities,
Is there any guide on how to ask kernel in Proxmox to do so?
Servers are being used only for Ceph so I have no security concerns regarding disabling CPU vulnerabilities.
 

ramrot

Member
Aug 2, 2019
38
7
13
34
There are a lot of guides on internet to accomplish what you are asking, but most of times CPU is not the bottleneck. Would you like to elaborate more on what is the issue you encounter and maybe some metrics?
 

tincboy

Active Member
Apr 13, 2010
463
2
38
In latest versions of kernel 5.2+ we can disable mitigations by "mitigation=off" kernel command, but as Proxmox 6 is using kernel 5.0 I've disabled them by using this grub config
Code:
GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0 pti=off spectre_v2=off nospec_store_bypass_disable  mds=off"
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!