[BDS-1134] Server appears not to honour max-threads (1.12.0.28) Created: 16/Jul/19 Updated: 21/Jun/20 Resolved: 21/Jun/20 |
|
| Status: | Resolved |
| Project: | Bedrock Dedicated Server |
| Affects Version/s: | 1.9.0.15 |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Rob Griffiths | Assignee: | Unassigned |
| Resolution: | Cannot Reproduce | Votes: | 1 |
| Labels: | None | ||
| Environment: |
lscpu lsmem Memory block size: 128M lsb_release -a |
||
| Attachments: |
|
| Description |
|
This issue affects 1.12.0.28 of bedrock_server Despite setting max-threads, bedrock_server still uses 11 threads |
| Comments |
| Comment by Rob Griffiths [ 30/Mar/20 ] |
|
Update: 1 socket, 4 cores, 1 thread. Things do change in terms of initial threads. max-threads=1 or 2 I get 11 threads, 3 gets 12, >=4 13 threads. I'm unable to test how it affects gameplay as I only have a low spec tablet with the game currently. Perhaps go ahead and close this since I'm the only one affected in over 8 months |
| Comment by Rob Griffiths [ 30/Mar/20 ] |
|
No, it was still 1 socket 1 core 1 thread but I will test on higher specs and report back. |
| Comment by IonicEcko [ 30/Mar/20 ] |
|
One last question before I go back and test it, are you still running on a 1 core virtual? Like I mentioned I tested it and saw a significant difference in threads when changing that setting so we’ll likely need to narrow it as much as we can before I can confirm it. On first glance (and I’m on my phone thanks to an internet outage so can’t really see the screenshots) the only difference I can see is that I would have been running on a 4-6 core ESXi 18.04.3 virtual whereas your environment notes from your initial report have a 1 socket, 1 core, 1 thread virtual. I can imagine a scenario where the app won’t accept a setting that would be deleterious to normal operation, that’s obviously pure speculation though and completely debunked if your new tests are on a higher spec VM Ionic |
| Comment by Rob Griffiths [ 30/Mar/20 ] |
|
You can see in my screenshots that the number of threads did not change. I'm pretty convinced this is a bug. |
| Comment by IonicEcko [ 30/Mar/20 ] |
|
I honestly couldn't tell you if thats expected or not, I don't really understand the relationship between how many threads BDS needs to run and what the max-threads option should entail. My testing just involved testing it with 1, then upping that number and checking if the number of active threads changed. If you know how this stuff should work and you're confident this is a bug I'm happy to raise it for you. Ionic |
| Comment by Rob Griffiths [ 30/Mar/20 ] |
|
Heres another display of active threads for a process. In this instance, Max Threads was 1. I would expect to see the main process, IO thread, REST thread, Level DB thread MC server thread, and one bedrock_server thread. Or am I incorrect? |
| Comment by Rob Griffiths [ 30/Mar/20 ] |
|
No, It's still not fixed, It appears now it spins up 14 treads. |
| Comment by IonicEcko [ 28/Mar/20 ] |
|
I've not heard back from you in a while. In order to keep the Bedrock Dedicated Server project running smoothly I'm going to request this issue be closed as Awaiting Response. Never fear though! If this is still affecting you in the latest version (and is related to Bedrock Dedicated Server and not the Minecraft Bedrock game) all you have to do is comment and it will reopen. If your issue does still exist but is related to the game and not the server software please head over to the Minecraft (Bedrock codebase) project. Ionic Quick Links: |
| Comment by IonicEcko [ 04/Mar/20 ] |
|
Hi Rob, Is this still an issue in 1.14.32.1? I've messed with the max-threads option and it appears to have a significant impact on load distribution for me when generating chunks. Ionic |