How to know my max worker thread limit?
Hi everyone, I am currently setting up a server with Distant Horizons bukkit-paper plugin. I have started chunk pregen using the inbuilt command, but the process is super slot right now. I suppose increasing the worker thread count may help. Is there a way for me to know how what's the max number of worker thread I can assign? I am on Oracle Cloud, using their "VM.Standard.A1.Flex" ARM based system, with 3 CPUs assigned to the VM, and 16GB or RAM.
I believe only one of my CPUs is being used as when the world gen is taking place, I only see 33% CPU usage (like it's using one of the 3 CPUs)
8 Replies
set dh to the I_PAID_FOR_THE_WHOLE_CPU preset with the dh config common.threadPreset <preset> command
and then it will be using 100% of your threads, then you can do dh config threading.numberOfThreads, which is normally used to set a specific number of threads but the command alone like that will just print how many are in use rn
the second command might be incorrect, in which case check documentation
thank you! could you link me to the documentation? I tried looking for it but I'm didn't find any 'dhs' commands, only 'dh' ones. As far as understand, the dhs commands are for the server plugin.... right?
yeah
it might be the same syntax
you should be able to find info about it on the dh plugin's gitlab page
I'll try it out
but even then i don't think this oracle vps would cut it for dh
ah...
cool, I'll check the gitlab page
and try pre-generating as much of the world as I can before we start playing on it, then see how it goes from there
thanks!
ah.... I odnt think the commands have the same syntax...... Now i'm wondering if it would be smarter to copy the seed and generate the LODs on my significantly beefier system and then just upload the data.sqlite file to the server
i would do that yes
pregenerate using a fabric server too, it's way faster than pregenerating on the client by joining a world and just letting it sit there
None of this applies to the plugin, and you cannot move the mod's DB to a server running the plugin
The max number of threads is the number where you no longer see any performance gain, or see too much load on other components that make the server unplayable