Huge pages should be enabled, on Windows 10 this is automatic if you run the miner as admin once, otherwise do it manually, here's a guide:
https://github.com/jceminer/cn_cpu_miner#large-pages
Do not mine without huge pages, the performance loss is very noticeable (like -15%)
For the threads, here's an example
[
{ "cpu_architecture" : "auto", "affine_to_cpu" : 0, "use_cache" : true, "multi_hash":2 },
{ "cpu_architecture" : "auto", "affine_to_cpu" : 1, "use_cache" : true, "multi_hash":2 },
....
{ "cpu_architecture" : "auto", "affine_to_cpu" :23, "use_cache" : true, "multi_hash":2 },
]
For your 24-cpu xeon. Try it, and then apply this tweak:
* Change the first and last multi_hash (so, for CPU 0 and 23) to 1 and/or 3, and see if it's better.
* Then split the range in two (making two ranges: 0-11 and 12-23) and tweak again the respective 1st and last cpu: 0, 11, 12 and 23.
* Then split the ranges again in two (making four ranges) and again and again until you find the optimal setting.
The same applies to your 20-cpu xeon, and also the same if you mine CN-class algo (Monero, Stellite...) because you have a lot of cache
But config for Heavy would be very different, involving less threads but some no-cache mode.