-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance test | Mirai seriously outperforms Suki #6
Comments
For testing I've used updated bot stresser: https://github.com/PureGero/minecraft-stress-test World size is 2000x2000, fully preloaded with Chunky Server CPU is Core I7 9700k |
Thank you for testing! Could you upload the Edit: and also the values of the Suki environment variables if you used them |
global
|
world-defaults
|
Forgot to mention, that all bots and me are using updated 26 minutes Mirai timings: https://timin.gs/?id=9feac017e14f4df19ed1e3be623f9393 I guess this is something related to Paper chunk rewrite and not related to Suki at all |
The client bots are using view distance 10? |
(Suki does not have the Paper chunk rewrite yet, but the latest version of Mirai does) |
Small note: your environment variables include (The values are correct 🙂) |
How much RAM do you have? |
Fixed, gonna have another stress test run I have 32gb of RAM |
And what is your |
|
Your settings
|
https://timin.gs/?id=0c2755ecc26045e8aa230795d2c9489a Will apply changes to configuration and have another stress test As soon as bots are spreading and loading lots of chunks, TPS goes down a lot. I'll look at paper's chunk rewrite so I can understand how it works better. Really thought that |
All your other settings should be okay! I use |
Also you have |
I'm not sure why |
That's just me who made some weird changes, fixed. Testing it now. Update: it seems that lowering this value makes chunks send very slow at high players numbers. |
That helped TPS a lot at the cost of very slow chunks loading |
Okay, that setting is usually not supposed to do that, originally. Maybe something changed a while back. I know servers that run fine and have the setting on Thank you! This will hopefully allow to find the problem. |
I hope so, glad to help. Rising the value to 32 helped getting chunks way faster at the cost of TPS |
Thank you for the information. I'm going to hunt down |
Hi, this is not a fix, but purely a test. You have a much better testing environment than I do, so if that's okay, could you run
replaced by:
and your original setting of Once again, this is not a fix, but I am very interesting to see what the TPS is like, and also how the chunk loading performance feels. |
Also just as a small note I am assuming you are running the bots on a different machine than the server. If they are the same machine, the environment variables need to be set lower than 8 of course. |
Lowered number of threads to Update: https://timin.gs/?id=0f064a5024d14e0faca20ce65cba1b81 It seems that chunk rewrite patch makes all difference. Yesterday I've tested latest build of Purpur and it seems to run slightly better even than Miral |
Thank you very much for testing! That may be true, but this issue still should not be happening, and I wish to find out what is taking time. I have also set up the Minecraft stress server but I only have a laptop of which a lot of capacity is already taken up by IDE and related applications, so it's hard for me to test with that many players and world size. I'm currently rewriting some code so it's easier to inspect what exactly the CPU use is for. Could you try it with the |
Sorry, my fault. I've changed max-oversleep in wrong config line
When the correct one is |
Yes this is partially my fault for suddenly renaming the configuration option 😅 |
https://timin.gs/?id=b3cacbfec57f4e05bc60726d1f23adb7 The server feels much more stable, TPS is much higher, however, chunk loading is slow |
Ah yes, that was mostly what was expected. It was definitely not a fix, but a good test. The timings will help me a lot. Thank you! |
Great! Glad to help you ;) |
After teleportation (and sometimes, randomly) server completely freezes for a few seconds P.S. I've tweaked some configs |
Thank you so much! This is very interesting. The chunk sending and view distance patches have been specifically optimized in several ways to make teleporting blazingly fast. I've never seen this happen on my own server, and I get random unprovoked compliments from players often about how suspiciously fast teleporting is. Clearly I have overlooked some issues, I will look into it carefully! |
Issue can be tied to misconfiguration for players amount. I've tested with 100 and 200 bots, server is freezing in both tests on teleport. |
You have |
Adjusted configs and made a new test: https://timin.gs/?id=e88c0f9105404c42a91f4415a5045627 |
Hey! You set PS I wrote an extra introductory paragraph in https://github.com/SuCraft/Suki/wiki/Features#view-distance explaining the view distance feature. |
🤦 https://timin.gs/?id=bacc9dbc9aa145aabb462755d444ab80 TPS Drop is on teleport |
I'm getting closer to the core of the problem. I modified some routines, made network-constrained chunk sending optional and added more timings. If you could, would you run the following tests?
|
Made a new test running latest Miral, the results are interesting: chunks loading way faster, and I can see higher number of entities, but TPS is very bad: https://timin.gs/?id=ff0fe24672284addaf38b4b866ce1688 |
Thanks, I've used your figures to make a few adaptations to the most general patches. If you'd want, you could try another test against the in-progress version that is up-to-date with upstream: https://github.com/SuCraft/Suki/actions/runs/3300905327 |
|
Miral timings: https://timin.gs/?id=283d611ae22d48c79ecbb6b23e1d243e
Suki timings: https://timin.gs/?id=88ed0483bf094ffe9bb96164d484775b
The text was updated successfully, but these errors were encountered: