Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
This page describes the settings for best performance for servers running the Qlik Associative Engine.
Latest update: May 2022
Windows 2022 has improved performance for servers with many physical cores. This table shows the definition used in the below document.
| Older Windows versions | Windows 2022 |
Server with normal core count | ≤64 physical cores | ≤90 physical cores |
Server with large core count | >64 physical cores | >90 physical cores |
Setting | Value |
Hyper-threading | Applies to QlikView and Qlik Sense servers:
There are use cases that even on servers with huge #cores enabling hyper-threading is beneficial. Therefore, it is best to test these settings for your application. |
Power Management (System Profile Settings) | Applies to QlikView and Qlik Sense servers:
Another setting that can be used is the full performance setting. But this settings makes the server run constantly at the maximum clock speed for all cores, which has the following drawbacks:
A solution to this is to use a custom system profile in the server BIOS that allows the CPUs to use their C states while all other components are set to full performance. The custom system profile should be set up similar to the following:
|
NUMA | QlikView servers (Intel):
Qlik Sense servers (Intel):
*On servers with Intel CPUs, NUMA is disabled by enabling Node Interleaving. QlikView and Qlik Sense servers (AMD EPYC):
|
Memory configuration | QlikView and Qlik Sense servers:
|
Hardware/Software Prefetcher | QlikView and Qlik Sense servers:
|
The names of the settings and how to tune them may differ depending on the server manufacturer and model. Refer to the documentation for your server to find the equivalents of the settings listed above.
Setting | Value |
Power plan | QlikView and Qlik Sense servers:
|
Registry update | Qlik Sense servers only: For servers with a large core count, there is a registry change, applicable to both Intel and AMD CPUs, that improves the responsiveness when the Qlik Sense Repository Service (QRS) is under heavy load (for example, when many users open the hub at the same time). Two registry updates are needed: Add the Thread_NormalizeSpinWait key as a DWORD value to the following subkey: HKEY\LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework
Add the Switch.System.Threading.UseNetCoreTimer key as a String value to the following subkey: HKEY\LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\AppContext
The fix is described in full here: https://support.microsoft.com/en-za/help/4527212/long-spin-wait-loops-in-net-framework-on-intel-skyl... |
/ Cheers from the Scalability Center team
The scenario we have is a virtual host where NUMA is enabled and we can't alter that. The VM has 16 cores, so well under the 64 limit - although the host itself has many more. We want to know if there's a way to get Qlik Sense to handle NUMA enablement better from a performance point of view.
First to clarify: we have not tested these settings on VMs since the VM layer adds another level of complexity. But I think we can read the amount of cores as the ones that Qlik has available for itself in the system.
I have no knowledge about QlikView only detecting NUMA up to 8 cores: I've tested QlikView with many more cores and didn't have issues with automatic detection of NUMA. (again: tested on physical machines, a VM layer can change this)
But now to the important part of the question: Qlik Sense does accept the same setting for EnableNumaRoundRobin as QlikView. To be able to see it in the logging you need to enable a higher verbosity of the log.
In the settings.ini file (ProgramData\Qlik\Sense\Engine) you can add
Verbosity=501
After restarting of the Engine service, you'll be able to see in the System_Engine log (found in ProgramData\Qlik\Sense\Log\Engine\Trace) if NUMA was detected by the engine (NUMA DETECTED). Or if NUMA was not detected: Engine configured to ignore NUMA nodes (IF NUMA IS ENABLED).
In that case, you can add in settings.ini the same settings as with QlikView:
EnableNumaRoundRobin=1
After restarting the Engine service, in the same System_Engine log, you should be able to see:
NUMA nodes enabled
If you're happy with the result you can take away the extra verbosity (delete the line in settings.ini).