Benchmark your MT with /emergeblocks

Post Reply
User avatar
Fixer
Member
Posts: 904
Joined: Sun Jul 31, 2011 11:23
IRC: Fixer
In-game: Fixer
Location: Ukraine

Benchmark your MT with /emergeblocks

by Fixer » Post

Decided to do very little and simple benchmark, to do it:
1. run clean minetest without config/cache
2. create world: seed: 1, mapgen v7
3. start it
4. look up on game start, press t and type: /emergeblocks (0,0,0) (-1000,-1000,-1000)
5. wait around 20 min... don't do anything at this time
6. at the end you will get "Finished emerging 262144 blocks in X msec (on screen/in chat console)
7. post your results with hardware specs, os, minetest version

My results:

Code: Select all

262144 blocks in 1219303.0 ms (or 1219 sec)
Core i3-2120 3.3GHz, 8Gb DDRam 2, wd green 1Tb 5400rpm SATAIII, AMD/ATI Radeon HD 6870, Win 7 sp1, Minetest 0.4.14-dev

User avatar
burli
Member
Posts: 1643
Joined: Fri Apr 10, 2015 13:18

Re: Benchmark your MT with /emergeblocks

by burli » Post

hmmmm

Code: Select all

minetest: /build/minetest-9s30Wm/minetest-201606220316/src/emerge.cpp:456: bool EmergeManager::popBlockEmergeData(v3s16, BlockEmergeData*): Zusicherung »count_peer != 0« nicht erfüllt.
Abgebrochen
This error was from the daily build from the Ubuntu PPA. My self compiled version run's without any problems.

But this "benchmark" is pretty useless because it only benches one part of Minetest. But it is interesting to see that not all areas are generated with the same speed. It took a long time e.g. from 40% to 42%, but from 42% to 48% it was fast. Would like to know which areas took so long.

And it is not consistant, however. First I run with sqlite3, which needs 1250 seconds. Then I replaced the backend in world.mt with dummy. This time it tooks 1650 seconds. Then I try leveldb which also needs over 1600 seconds. Just to confirm my first result I set the backend to sqlite again, delete the db file and run again. Over 1600 seconds.

So what does that mean? I don't know

User avatar
Fixer
Member
Posts: 904
Joined: Sun Jul 31, 2011 11:23
IRC: Fixer
In-game: Fixer
Location: Ukraine

Re: Benchmark your MT with /emergeblocks

by Fixer » Post

Ha, this is just an experiment :)

User avatar
burli
Member
Posts: 1643
Joined: Fri Apr 10, 2015 13:18

Re: Benchmark your MT with /emergeblocks

by burli » Post

Fixerol wrote:Ha, this is just an experiment :)
How dumb we are? ;-)

No, it is really an interesting experiment, but not a competition

User avatar
DI3HARD139
Member
Posts: 154
Joined: Sat Oct 18, 2014 21:04
GitHub: DI3HARD139
IRC: DI3HARD139
In-game: DI3HARD139 DI3HARD139_

Re: Benchmark your MT with /emergeblocks

by DI3HARD139 » Post

Code: Select all

Finished emerging 262144 blocks in 946085.00ms .
(946.085 secs)
Intel Xeon X5670 @3.3GHz, 20GB DDR3 @1333 w/ 20GB Page File, 320GB WD Blue Sata II 3GB/s, GTX660 3GB, Windows 10 Pro x64, Minetest 0.4.14-release.
------------------------------------------------------------------------------------------------------------------------------------------------------------------
Edit:

Code: Select all

Finished emerging 262144 blocks in 655039.00ms . 
once the video I had encoding in the background finished.

User avatar
Fixer
Member
Posts: 904
Joined: Sun Jul 31, 2011 11:23
IRC: Fixer
In-game: Fixer
Location: Ukraine

Re: Benchmark your MT with /emergeblocks

by Fixer » Post

Since I have Intel CPU and updated OS due to meltdown fix, I decided to rerun this benchmark on 0.4.14-dev,
I've turned off av and io related stuff.

Result: 1388,711 sec, that is 13.9% slower.

We need more benchmarks to see how spectre/meltdown fixes affect minetest(especially server) performance.

P.S. 0.5.0-dev gives me just 706 sec on average.
Last edited by Fixer on Sat Jan 20, 2018 18:28, edited 1 time in total.

User avatar
philipbenr
Member
Posts: 1897
Joined: Fri Jun 14, 2013 01:56
GitHub: philipbenr
IRC: philipbenr
In-game: robinspi
Location: United States

Re: Benchmark your MT with /emergeblocks

by philipbenr » Post

262144 blocks in 257585.00ms (257.6 seconds, or 4:28 if I did that math right)

Specs:
  • AMD Ryzen 7 1700 ( @3.4GHz )
  • 2x8GB G.Skill Trident Z RAM ( @3.2GHz, 14-14-14-32 )
  • XFX Radeon RX 580 8GB ( @1.41GHz )
  • OCZ Trion 150 256GB SSD
  • Windows 10 Pro
  • 0.4.16
I did have a large installation going on in the background, as well as youtube, but with the 16 threads I have, I think the performance hit was pretty negligible.

torbato
New member
Posts: 1
Joined: Wed Mar 23, 2022 16:06

Re: Benchmark your MT with /emergeblocks

by torbato » Post

I know it's an old thread but I needed something to do in this boring afternoon and it seemed like a fun topic lol

Here is mine:

Finished emerging 262144 blocks in 177776.00ms.

Specs:
Intel Core i7-1165G7 (4c/8t, max 4.70GHz, 12MB L3 Cache)
Intel Xe Graphics 96Eus
32GB 3200Mhz RAM
1TB Samsung NVME SSD
Windows 11 Pro
Minetest 5.5.0

User avatar
Festus1965
Member
Posts: 4181
Joined: Sun Jan 03, 2016 11:58
GitHub: Festus1965
In-game: Festus1965 Thomas Thailand Explorer
Location: Thailand ChiangMai
Contact:

Re: Benchmark your MT with /emergeblocks

by Festus1965 » Post

burli wrote:
Fri Jun 24, 2016 11:29
Fixerol wrote:Ha, this is just an experiment :)
How dumb we are? ;-)

No, it is really an interesting experiment, but not a competition
if would be more interesting if on one same machine different versions might be compared, as maybe 5.1, 5.2 5.3 5.4.1 and 5.5 under other things keep same : is there an slower or faster engine now.

As mentioned at first post with no cache sounds like VPS similar, but also CPU, RAM (Type+size) and kind of disc (HDD, SSD, M.2) will do also some influence.

So far not really anything worth yet, as not possible to extract some helpful data for config of hardware or even database.

And what does /emergeblocks have to do with 'real mts usage' ? what is a main decision for server after maybe mod composition.

So /emergeblocks may make sense on the same hardware OS with different mt versions,
but you can't overgo the bonds between:
* hardware
* OS
and at least the mt as a package.
Measure only this is maybe a small part of mtserver, but if your really interested in fast mtserver - you need to check all.
Human has no future (climate change)
If urgend, you find me in Roblox (as CNXThomas)

User avatar
sorcerykid
Member
Posts: 1841
Joined: Fri Aug 26, 2016 15:36
GitHub: sorcerykid
In-game: Nemo
Location: Illinois, USA

Re: Benchmark your MT with /emergeblocks

by sorcerykid » Post

I would imagine that emerge blocks might face a bottleneck with disk I/O, so a ramdisk would probably perform the fastest during such a stress test, compared to a mechanical hard drive and even SSD.

User avatar
Festus1965
Member
Posts: 4181
Joined: Sun Jan 03, 2016 11:58
GitHub: Festus1965
In-game: Festus1965 Thomas Thailand Explorer
Location: Thailand ChiangMai
Contact:

Re: Benchmark your MT with /emergeblocks

by Festus1965 » Post

sorcerykid wrote:
Fri Mar 25, 2022 00:21
I would imagine that emerge blocks might face a bottleneck with disk I/O, so a ramdisk would probably perform the fastest during such a stress test, compared to a mechanical hard drive and even SSD.
test it ?
* HDD 150 MB/s
* SSD 450-550 MB/s
* M.2 ~1.500-3.200 MB/s so far I see
* RAM write cache ~ 15.000 MB/s
it must not be a RAM Disk, just to be able to use the writing cache on the way to discs might do the job. As at my server.

as of another reason did it: (26.03.2022)
minetest.conf just "seed and mapgen' and name = x
new empty map via standard sqlite, but all settings at server same ... vm.swappiness, write cache ... as every day.

Code: Select all

... /262144 Blocks ...
in 247128.11 ms
or 247 sec

Code: Select all

I7-4770 3.4 GHz, 32 GB DDR3 RAM (1333 at) 1600 MHz, M.2 SSD 128 GB, max 2.800 rw or was it 3200, Ubuntu 20.04, mt 5.5.0
so I am faster then philipbenr by 10 s but behind torbato 177s.

So what will happen if I move the DB to postgresql ?
and then also do the test two times, force that this area keep in cache ?

looking at htop during this time, only ONE thread sometime goes near 100% - CPU main is not hard working,
so that faster CPU from above testing are not the reason,
but both have double fast RAM 1600 against 3200,
as I use M.2 disc with 2.800/3.200 rw also hmm
as of only one thread as of standard config, or as of bottleneck at IOs?

using maybe cache, doing the test a second time just again after 10 minutes:

Code: Select all

... 26657.37 ms
or 27 sec ... just to know what cache is worth about !!
what your mt show with /status after the test ? here max_lag 0.332 s
Human has no future (climate change)
If urgend, you find me in Roblox (as CNXThomas)

User avatar
Festus1965
Member
Posts: 4181
Joined: Sun Jan 03, 2016 11:58
GitHub: Festus1965
In-game: Festus1965 Thomas Thailand Explorer
Location: Thailand ChiangMai
Contact:

Re: Benchmark your MT with /emergeblocks

by Festus1965 » Post

nicely admin of Your-Land.de
did this test on his home test server ...

better CPU, double of mordern RAM, bigger M.2

and was slower (444s) in 5.5.0 than me, but at second time much faster (2.8 s)
guess MT internal cache did help then

in combination of also do the VPS IO tests,
with IO write/read without cache his PC is faster, (better CPU, faster M.2)
but as soon it uses cache my one is much faster.

so: must be a setting in OS to allow Cache overall ... also we check now fstab.
Human has no future (climate change)
If urgend, you find me in Roblox (as CNXThomas)

User avatar
bosapara
Member
Posts: 637
Joined: Fri Apr 07, 2017 08:49

Re: Benchmark your MT with /emergeblocks

by bosapara » Post

Let's continue benchmarks.

Code: Select all

MT 0.4.17.1 - 274478 ms; MT 5.1.0 - 232636; MT 5.7.0 - 177820 ms

Code: Select all

i7 8700, 3.2ghz, 32gb 2600mhz, 240gb nvme, Ubuntu 20
Due to the full single-threaded operation within full test, I suppose the processor with a higher frequency will complete the benchmark faster.
Attachments
bench.gif
bench.gif (170.99 KiB) Viewed 916 times

User avatar
Walker
Member
Posts: 1814
Joined: Tue Oct 03, 2017 09:22
In-game: Walker
Contact:

Re: Benchmark your MT with /emergeblocks

by Walker » Post

Code: Select all

MT 5.6.0 - 142906.06ms

Code: Select all

AMD Ryzen 5950x, non-OC, 3,4GHz, 128GB DDR4 3200MTs, 2TB Samsung 980PRO

Code: Select all

Ubuntu 22.04 LTS x64 / Linux Kernel 5.15.0-47

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 11 guests