Tuning the system by disabling mitigations

Optimize your system for ultimate performance.

Moderators: MattKingUSA, khz

Post Reply
User avatar
bluebell
Established Member
Posts: 1909
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland, Germany
Has thanked: 111 times
Been thanked: 116 times

Tuning the system by disabling mitigations

Post by bluebell »

There are some mitigations against meltdown and spectre, most important for cloud and server providers.

If you run a single user machine you may consider switching off those mitigations because they eat CPU power.

On my Core i5 that got problems with some big Qtractor projects I'll try in the next days:

Code: Select all

pti=off spectre_v2=off l1tf=off nospec_store_bypass_disable no_stf_barrier
in the GRUB boot cmdline.

Linux – MOTU UltraLite AVB – Qtractor – http://suedwestlicht.saar.de/

User avatar
bluebell
Established Member
Posts: 1909
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland, Germany
Has thanked: 111 times
Been thanked: 116 times

Re: Tuning the system by disabling mitigations

Post by bluebell »

No noticeble effect. OK, was worth a try.

Linux – MOTU UltraLite AVB – Qtractor – http://suedwestlicht.saar.de/

User avatar
sysrqer
Established Member
Posts: 2519
Joined: Thu Nov 14, 2013 11:47 pm
Has thanked: 319 times
Been thanked: 148 times
Contact:

Re: Tuning the system by disabling mitigations

Post by sysrqer »

Did you run any kind of benchmark test? It would be interesting to know what the difference is although if it's not noticeable maybe it is not relevant.
User avatar
bluebell
Established Member
Posts: 1909
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland, Germany
Has thanked: 111 times
Been thanked: 116 times

Re: Tuning the system by disabling mitigations

Post by bluebell »

sysrqer wrote:Did you run any kind of benchmark test? It would be interesting to know what the difference is although if it's not noticeable maybe it is not relevant.
Only "can I make jackd's buffer size smaller for a given Qtractor project". In my case: no. So I couldn't see any difference.

Linux – MOTU UltraLite AVB – Qtractor – http://suedwestlicht.saar.de/

Musicteacher
Established Member
Posts: 194
Joined: Mon Nov 13, 2017 5:54 am
Has thanked: 8 times
Been thanked: 4 times

Re: Tuning the system by disabling mitigations

Post by Musicteacher »

This is a very rough scale (buffer size). Buffer size usually is changed in powers of 2, one cannot seriously think that system speed goes up by a factor of 2!

What about: How many plugins of a given type can I use befor I get xruns? Like "50 instances of my favorite synth" vs "52 instances ..."
merlyn
Established Member
Posts: 1392
Joined: Thu Oct 11, 2018 4:13 pm
Has thanked: 168 times
Been thanked: 247 times

Re: Tuning the system by disabling mitigations

Post by merlyn »

A good practical test is how many notes on pianoteq, since the DSP load goes up with the number of notes played.
User avatar
bluebell
Established Member
Posts: 1909
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland, Germany
Has thanked: 111 times
Been thanked: 116 times

Re: Tuning the system by disabling mitigations

Post by bluebell »

I tested with xruncounter and got some interesting results.

Hardware: Notebook with Intel(R) Core(TM) i7-7700T CPU @ 2.90GHz
Kernel: Linux bubu 4.16.12-rt5-avl1 #12 SMP PREEMPT RT Thu Jun 14 04:35:48 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux

jack2 with -n2 -p 128

With mitigations I got the 1st xrun at 69%, 62%, 67% (3 runs).
Without mitigations I got the 1st xrun at 74%, 70%, 71%

So disabling the mitigations seems to enable a slight performance boost.

Linux – MOTU UltraLite AVB – Qtractor – http://suedwestlicht.saar.de/

Post Reply