MordorsElite
DHDistant Horizons
•Created by MordorsElite on 3/14/2025 in #help-me
High CPU usage when terrain generation shouldn't be running
The issue appears to be fully (or at least partially) solved with the latest update (2.3.2-b-1.21.4). When setting DH to "I paid for the whole CPU", it now no longer runs at 100% usage. When bots are online, there is a constant ebbing of activity with the server showing between 5 and 40% CPU usage. With no one online some spikes sill seem to be in evidence but they rarely seem to exceep 30% and most of the time the server lies between 0.1% and 10% usage.
Since there still is idle usage, I'm not entirely sure if I should mark the issue as solved tho
29 replies
DHDistant Horizons
•Created by MordorsElite on 3/14/2025 in #help-me
High CPU usage when terrain generation shouldn't be running
Not on PC right now, but can try it later. Thing is that still seems excessive, to have 100% CPU usage for 9 loaded chunks. (It's only a chunk loader in the 3x3 spawn chunks)
29 replies
DHDistant Horizons
•Created by MordorsElite on 3/14/2025 in #help-me
High CPU usage when terrain generation shouldn't be running
Are you using chunk loaders as well by chance? That would add some weight to my theory
29 replies
DHDistant Horizons
•Created by MordorsElite on 3/14/2025 in #help-me
High CPU usage when terrain generation shouldn't be running
The plot thickens! The issue seems to be specific to the spawn chunks (or their surroundings). I have now made a 1:1 copy of my server files, and changed nothing but removing the 4 region files surrounding the 3x3 spawn chunk area.
This has seemingly fixed the issue completely.
So my guess is that running a chunkloader inside the spawnchunks, or maybe running a chunkloader in general somehow stops DH from idling. Maybe due to some changes happening in the loaded area, DH is coninously trying to reprocess the handful of loaded chunks?
29 replies
DHDistant Horizons
•Created by MordorsElite on 3/14/2025 in #help-me
High CPU usage when terrain generation shouldn't be running
An additional observation:
I occasionally get a couple of these warnings, even when no one is on the server (after setting thread count to 1):
29 replies
DHDistant Horizons
•Created by MordorsElite on 3/14/2025 in #help-me
High CPU usage when terrain generation shouldn't be running
I've now made a backup and completely removed all previous DH data as well as copied over the fresh config from the test server (just to be sure). However running that on my main server, I am still seeing the same issues :(
Does the /dh debug thingy maybe have some info?
The LOD builder still seems to be using all 6 threads, despite no one being on the server. Not sure why it still continues to do stuff.
29 replies
DHDistant Horizons
•Created by MordorsElite on 3/14/2025 in #help-me
High CPU usage when terrain generation shouldn't be running
The two servers should now be equal in config and mods, but unfortunately I cannot recreate the behaviour of my main server :(
The test server works exactly as one would expect
29 replies
DHDistant Horizons
•Created by MordorsElite on 3/14/2025 in #help-me
High CPU usage when terrain generation shouldn't be running
Well, I have now added all the mods back to the new server and its still working as intended. No usage when the server is empty, full usage when I as the player join (cause not all 256 chunks of terrain are generated yet around the player), but it also drops off to 0% usage as soon as the player leaves.
29 replies
DHDistant Horizons
•Created by MordorsElite on 3/14/2025 in #help-me
High CPU usage when terrain generation shouldn't be running
I'm gonna try adding back some of the mods to see if I can figure out if one of them is causing the issue.
29 replies
DHDistant Horizons
•Created by MordorsElite on 3/14/2025 in #help-me
High CPU usage when terrain generation shouldn't be running
Ok. This does seem to be either some other mod influencing it or a configuration issue. Using DH on a completely fresh Fabric server shows the intended usage. Pretty much zero usage when starting up the server, 100% usage when pregenning some terrain, then pretty much 0% usage once pregen is complete.
29 replies
DHDistant Horizons
•Created by MordorsElite on 3/14/2025 in #help-me
High CPU usage when terrain generation shouldn't be running
I'll set up a new server and check
29 replies
DHDistant Horizons
•Created by MordorsElite on 3/14/2025 in #help-me
High CPU usage when terrain generation shouldn't be running
without the other mods you mean?
29 replies
DHDistant Horizons
•Created by MordorsElite on 3/14/2025 in #help-me
High CPU usage when terrain generation shouldn't be running
To be clear, I don't have the most powerful CPU (i5-8600k), so only 6 cores, 6 threads, but I would have expected that when there isn't anything to generate, CPU usage would go back to essentially zero like would be the case for the same server without DH installed.
29 replies
DHDistant Horizons
•Created by MordorsElite on 3/14/2025 in #help-me
High CPU usage when terrain generation shouldn't be running
My default config uses 8GB, but right now I am running the server with 24GB and both have 100% CPU usage.
29 replies