optimize GRUB parameter list and disable L1TF, Meltdown, Spectre etc. patches

https://make-linux-fast-again.com/
This commit is contained in:
Kevin Olbrich 2019-11-04 03:13:25 +01:00
parent b06d9ff28e
commit 9c01c1b13f
5 changed files with 56 additions and 2 deletions

View file

@ -33,4 +33,14 @@ class ConfigureGrub(Task):
'earlyprintk=ttyS0,115200', 'earlyprintk=ttyS0,115200',
'rootdelay=300', 'rootdelay=300',
'elevator=noop', 'elevator=noop',
'noibrs',
'noibpb',
'nopti',
'nospectre_v2',
'nospectre_v1',
'l1tf=off',
'nospec_store_bypass_disable',
'no_stf_barrier',
'mds=off',
'mitigations=off',
]) ])

View file

@ -70,6 +70,16 @@ class ConfigurePVGrub(Task):
info.grub_config['GRUB_CMDLINE_LINUX'].extend([ info.grub_config['GRUB_CMDLINE_LINUX'].extend([
'consoleblank=0', 'consoleblank=0',
'elevator=noop', 'elevator=noop',
'noibrs',
'noibpb',
'nopti',
'nospectre_v2',
'nospectre_v1',
'l1tf=off',
'nospec_store_bypass_disable',
'no_stf_barrier',
'mds=off',
'mitigations=off',
]) ])

View file

@ -10,8 +10,22 @@ class ConfigureGrub(Task):
@classmethod @classmethod
def run(cls, info): def run(cls, info):
info.grub_config['GRUB_CMDLINE_LINUX'].append('console=ttyS0,38400n8') info.grub_config['GRUB_CMDLINE_LINUX'].extend([
info.grub_config['GRUB_CMDLINE_LINUX'].append('elevator=noop') 'console=ttyS0,38400n8',
'elevator=noop',
'consoleblank=0',
'elevator=noop',
'noibrs',
'noibpb',
'nopti',
'nospectre_v2',
'nospectre_v1',
'l1tf=off',
'nospec_store_bypass_disable',
'no_stf_barrier',
'mds=off',
'mitigations=off',
])
# Enable SCSI block multiqueue on Stretch. # Enable SCSI block multiqueue on Stretch.
from bootstrapvz.common.releases import stretch from bootstrapvz.common.releases import stretch
if info.manifest.release >= stretch: if info.manifest.release >= stretch:

View file

@ -18,6 +18,16 @@ class SetGrubConsolOutputDeviceToVirtual(Task):
'console=tty0', 'console=tty0',
'consoleblank=0', 'consoleblank=0',
'elevator=noop', 'elevator=noop',
'noibrs',
'noibpb',
'nopti',
'nospectre_v2',
'nospectre_v1',
'l1tf=off',
'nospec_store_bypass_disable',
'no_stf_barrier',
'mds=off',
'mitigations=off',
]) ])

View file

@ -15,4 +15,14 @@ class AddVirtualConsoleGrubOutputDevice(Task):
'console=tty0', 'console=tty0',
'consoleblank=0', 'consoleblank=0',
'elevator=noop', 'elevator=noop',
'noibrs',
'noibpb',
'nopti',
'nospectre_v2',
'nospectre_v1',
'l1tf=off',
'nospec_store_bypass_disable',
'no_stf_barrier',
'mds=off',
'mitigations=off',
]) ])