1.18 has significantly more disk writes into save files (mostly in mca) during walking/running in singleplayer on fresh world with rates up to 2 mb/sec (for example in 1.17 and earlier HDD was dead silent with very little writes), that leads to lots of stuttering and constant (literally) HDD noise in 1.18.
I've checked it in Process Explorer and total writes just for creative flying without boost for 1 minute straight south gave me 200 mb of writing in 1.18 and I had to wait 10-20 seconds just to hear stop of HDD activity. This is not OS swapping, memory was available.
I assume this is less noticable on SSDs since they are faster, have no noise and going mainstream, but excessive writes is bad for SSDs too.
Render distance was 12, mipmaps off, vsync off.
Attachments
Comments 9
>If you can pinpoint a specific cause when lag happens for you, please open a new report for that specific issue.
Excessive writes causing lots of stuttering, if it does not write to disk - game is smooth.
I'm seeing 1.18 also make significantly more (almost continual) disk accesses wrt 1.17.1 I was running previously. From an strace of the running java process, it appears to be constantly lstat'ing non-existent c.-*.mcc files. The following strace was taken with the server running but quiescent (ie. no logged on users) and repeats continually:
strace -tt -p 18873 -f -e trace=file --
[pid 18808] 17:35:23.002049 openat(AT_FDCWD, "/sys/fs/cgroup/memory/system.slice/system-minecraft.slice/[email protected]/memory.limit_in_bytes", O_RDONLY) = 123
[pid 18808] 17:35:23.002216 openat(AT_FDCWD, "/sys/fs/cgroup/memory/system.slice/system-minecraft.slice/[email protected]/memory.stat", O_RDONLY) = 123
[pid 18809] 17:35:23.091314 openat(AT_FDCWD, "/sys/fs/cgroup/memory/system.slice/system-minecraft.slice/[email protected]/memory.limit_in_bytes", O_RDONLY) = 123
[pid 18809] 17:35:23.091597 openat(AT_FDCWD, "/sys/fs/cgroup/memory/system.slice/system-minecraft.slice/[email protected]/memory.stat", O_RDONLY) = 123
[pid 19040] 17:35:23.149896 lstat("./world_the_end/DIM1/region/c.-6.0.mcc", 0x7f117d7fe260) = -1 ENOENT (No such file or directory)
[pid 19040] 17:35:23.156798 lstat("./world_the_end/DIM1/region/c.-6.1.mcc", 0x7f117d7fe260) = -1 ENOENT (No such file or directory)
[pid 18873] 17:35:23.499170 lstat("./world_the_end/DIM1/region/c.-6.0.mcc", 0x7f117f5fc260) = -1 ENOENT (No such file or directory)
[pid 18873] 17:35:23.506497 lstat("./world_the_end/DIM1/region/c.-6.1.mcc", 0x7f117f5fc260) = -1 ENOENT (No such file or directory)
[pid 19040] 17:35:23.848782 lstat("./world_the_end/DIM1/region/c.-6.0.mcc", 0x7f117d7fe260) = -1 ENOENT (No such file or directory)
[pid 19040] 17:35:23.855749 lstat("./world_the_end/DIM1/region/c.-6.1.mcc", 0x7f117d7fe260) = -1 ENOENT (No such file or directory)
[pid 18873] 17:35:24.199713 lstat("./world_the_end/DIM1/region/c.-6.0.mcc", 0x7f117f5fc260) = -1 ENOENT (No such file or directory)
[pid 18873] 17:35:24.210546 lstat("./world_the_end/DIM1/region/c.-6.1.mcc", 0x7f117f5fc260) = -1 ENOENT (No such file or directory)
[pid 19040] 17:35:24.548752 lstat("./world_the_end/DIM1/region/c.-6.0.mcc", 0x7f117d7fe260) = -1 ENOENT (No such file or directory)
[pid 19040] 17:35:24.555750 lstat("./world_the_end/DIM1/region/c.-6.1.mcc", 0x7f117d7fe260) = -1 ENOENT (No such file or directory)
[pid 18873] 17:35:24.898879 lstat("./world_the_end/DIM1/region/c.-6.0.mcc", 0x7f117f5fc260) = -1 ENOENT (No such file or directory)
[pid 18873] 17:35:24.905806 lstat("./world_the_end/DIM1/region/c.-6.1.mcc", 0x7f117f5fc260) = -1 ENOENT (No such file or directory)
Β
Can you also attach a performance report? While the lag occurs, please press F3
+ L
once, then wait a short moment or press F3
+ L
again in order to create a performance report.
Afterwards, please attach the generated .zip
file containing the profile results here. The file path is shown in chat; the file can be found in [minecraft/debug/profiling/<DATE>.zip|https://minecrafthopper.net/help/finding-minecraft-data-folder/]
.
I've attached minecraft performance report in starter post, as well as added screenshot of System Explorer monitor that shows basic stuff like total CPU usage, minecraft writes, etc
Generated on fresh clean 1.18.1 game and world while walking in direction away from spawn, default settings.
This is the reason I've started using a RAM disk for storing game saves.
>Is this still an issue in 22w05a or later?
I've checked 1.18.2 and it looks like the issue have been fixed. Writing to disk is back to normalish levels, also less stutter, less HDD noise.
The issue you were experiencing was most likely the same what has been described in MC-245817, which has been fixed in snapshot 22w05a. But since we cannot bet 100% certain, I'm resolving your ticket as Cannot Reproduce for now.
Please let us know in case you experience this issue again.
Thank you for your report!
However, this issue is Invalid.
Performance drops are expected to happen between versions, especially in snapshots. Simply stating that "My game is laggier" is not helpful for Mojang to diagnose your issue. If you can pinpoint a specific cause when lag happens for you, please open a new report for that specific issue. If you think this might be a hardware issue please contact Community Support as they might be able to help with your issue.
Keep in mind that Mojang is constantly optimizing the game and simply playing the game provides feedback to Mojang on which parts cause performance issues. To learn more about this, head here (section "Telemetry") for more information.
Quick Links:
π Bug Tracker Guidelines β π¬ Community Support β π§ Mojang Support
π Project Summary β βοΈ Feedback and Suggestions β π Game Wiki