Skip to content
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

RollbackManager high CPU and disk usage #1502

Closed
Elinvention opened this issue Jul 19, 2014 · 6 comments

Comments

Projects
None yet
4 participants
@Elinvention
Copy link
Contributor

commented Jul 19, 2014

Hello everyone, I am experiencing a very high CPU and disk usage on my Debian Minetest server. I am using Debian Sid's minetest-server 0.4.10, but I also tryed compiling latest 0.4.10-dev from git.
The bug appears when I put enable_rollback_recording = true in the config file. The server console gets flooded by strange RollbackManager messages like this:

23:00:42: INFO[ServerThread]: RollbackManager::reportAction(): time=1405803642 
actor="player:SuperTux95" (guess) action=[set_node (70,14,-53) "default:dirt" 0 0 "" 
"default:dirt" 0 0 ""]

This doesn't happen always: just for a few moments while a player is moving or digging. The CPU usage spikes to 100% and the whole server becomes unplayable.
I also noticed that the file rollback.sqlite in my world directory becomes very big.
The problem doesn't subsist in Minetest 0.4.9.

Update: no logging is enabled.

@sfan5

This comment has been minimized.

Copy link
Member

commented Jul 19, 2014

Does running the server without --verbose help?

@Elinvention

This comment has been minimized.

Copy link
Contributor Author

commented Jul 19, 2014

I ran the server with --info, but nothing changes with or whitout.

@Megaf

This comment has been minimized.

Copy link
Contributor

commented Aug 27, 2014

You might have something in your config to make the console log in a very verbose way, reduce the amount of data you want to see on console.

@Elinvention Elinvention changed the title Severe server bug (RollbackManger) RollbackManager high CPU and disk usage Aug 27, 2014

@Elinvention

This comment has been minimized.

Copy link
Contributor Author

commented Aug 27, 2014

I updated the bug description: no logging is enabled but the CPU is still 100% and the file rollback.sqlite in my world directory becomes very big. If I disable rollback recording everything is fine apart from being able to use the rollback command...

@ShadowNinja

This comment has been minimized.

Copy link
Member

commented Oct 1, 2014

This doesn't happen to me. My rollback log is 3.2 GiB and my map is 3.4 GiB. The map and rollback log are over a year old. The rollback log contains over 42,000,000 entries.

@Elinvention

This comment has been minimized.

Copy link
Contributor Author

commented Dec 2, 2014

I can reproduce this issue very easily: install Minetest 0.4.10, put enable_rollback_recording = true in minetest.conf, create a new world, dig around for a bit, rollback.sqlite is (relatively) big. Then if you start minetest with --info, dig a node, a lot of those messages appears on the console. I don't understand why would minetest put all those entries in rollback just for a single node.

Luckily the issue seems to be solved in minetest git now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.