1.Disable apparmor in boot.

2.Disable if possible the Kernel Mode Setting (KSM) of the graphics card. We add the following line in the group configuration:

We update the grub to apply the changes:

3 Change the swappiness provisionally so that your equipment swap is activated when more than 90% of the RAM is used.

4 Make swappiness change permanent.

You have to run sysctl -p sudo to be applied. 5.Show the value of the forward bit for IPv6.

6.Fully disable the Magic Sysrq in the boot and reactivate them after reboot.

To disable:

To reenable them change the value from 0 to 1 and restart the computer or run sudo sysctl -p: