I'm not well enough versed in the Linux kernel to comment on the post, but as a funny anecdote, 15 years ago, we were developing a system that relied heavily on using as many cores as possible simultaneously. Performance was critical, and we had beefy developer machines (for the time), all with 8 cores. Development was done in C++, and as the project progressed the system performed very well, and more than exceeded o…
The Linux kernel has been accidentally hardcoded to a maximum of 8 cores
51–58 of 58 posts
Re: The Linux kernel has been accidentally hardcoded to a maximum of 8 cores
#52Earlier quoted context omitted.
afaik not for my use case. i need low latency with no variability. you only get that staying within a single cpu cluster.
This all comes down to the cache coherency protocols. And it's not surprising that you see increased latency with zen4 microarchitecture because, as one of the parent commenters already said, it's almost as if you're running a NUMA architecture within a single physical chip. When dealing with NUMA we know that cross-socket, or in this case cross-CCD, latencies are always higher than the ones within the same socket or…
Re: The Linux kernel has been accidentally hardcoded to a maximum of 8 cores
#53I'm a bit disappointed and slightly annoyed that this was published without a comment from any of the Kernel maintainers.
It won't be appearing again in my feeds that's for sure.
Re: The Linux kernel has been accidentally hardcoded to a maximum of 8 cores
#54I used to work on a supercomputer with 128 cores on it that ran Linux (I actually seem to remember it had 256 cores, but someone said the kernel had a limit of 128). This was less than 15 years ago. There were surely many systems just like that one. Does that mean the kernel had been patched? But nobody thought to push that patch upstream? Reading the other comments here it seems the title is stupid and wrong and my…
Re: The Linux kernel has been accidentally hardcoded to a maximum of 8 cores
#55Re: The Linux kernel has been accidentally hardcoded to a maximum of 8 cores
#56Re: The Linux kernel has been accidentally hardcoded to a maximum of 8 cores
#57this may not be an error. i’m doing high performance gamedev on a 7950x with smt off. 16 cores. i can only use 8 to run the game. mutex and other synchronization gets highly variable latency if the first 8 cores try to talk to the second 8. i hadn’t heard of this before i started this game, but apparently it’s well known, and nobody makes a chip with more than 8 cores that can have low variability synchronization. li…
Re: The Linux kernel has been accidentally hardcoded to a maximum of 8 cores
#58this may not be an error. i’m doing high performance gamedev on a 7950x with smt off. 16 cores. i can only use 8 to run the game. mutex and other synchronization gets highly variable latency if the first 8 cores try to talk to the second 8. i hadn’t heard of this before i started this game, but apparently it’s well known, and nobody makes a chip with more than 8 cores that can have low variability synchronization. li…
I have the 7900 (non-x), I find it helpful to think of it as a dual socket 6 core system. For latency sensitive things like many games, it's best to pin it to a single socket/half the cores. Once you do that the other half can handle everything else. That way jitter stays low, performance is consistent, caches are warm, etc.
when i compile, all 16 cores are used.
when playing, core0 is main thread, core1 is physx, core2 is network, core3-7 are background jobs used by main thread.
i’m not sure more than 8 cpu cores can be meaningfully used by any current game engine tech.
when i run the server locally, i reduce usage to 4 cores so client and server don’t contend. not much impact.