Optimize performance for what?
Seriously. This is the question you need to answer.
Dual xeon sounds like you have some kind of server motherboard with two distinct multicore xeon processors. Which would make your question partially make sense because your memory would be split into two NUMA nodes and cause all kinds of weird issues for generic workloads.
Usually these servers run specialized software that is implemented to handle this case, but generic software (browsers, games) does not. Just recompiling and choosing a distro will not solve your issues. You are probably better off disabling one cpu and numa node or configuring them to not run, to avoid the data split.
If you want to optimize for server workloads for server software (webserver, db software) then a good and stable server distro is all you need (debian, almalinux).











What to cook, what happened today at work, what do we do next week end, what needs to be done at home