MC-Server on Raspberry Pi
#36
Just for fun I ran a profiled version of MCServer on the RasPi. Quite unexpectedly, The function eating up the most time was the lighting thread's PrepareSkyLight() function with 17 % of the run time. Who would've thought?
Here's the list of top time-eaters. Notice how the generators are actually doing rather well.
Code:
%   cumulative   self              self     total          
time   seconds   seconds    calls   s/call   s/call  name    
17.84     10.22    10.22      398     0.03     0.03  cLightingThread::PrepareSkyLight
12.50     17.38     7.16      882     0.01     0.02  deflate_slow
10.77     23.55     6.17  1217115     0.00     0.00  cCaveTunnel::ProcessChunk
10.10     29.34     5.79    15968     0.00     0.00  fill_window
  8.38     34.14     4.80  1345982     0.00     0.00  longest_match
  8.25     38.87     4.73      422     0.01     0.04  cLightingThread::LightChunk
  5.85     42.22     3.35   370359     0.00     0.00  cHeiGenBiomal::GetHeightAt
  5.69     45.48     3.26     8901     0.00     0.00  cLightingThread::CalcLightStep
  4.08     47.82     2.34      484     0.00     0.00  cChunk::CreateBlockEntities
  2.34     49.16     1.34      478     0.00     0.02  cStructGenTrees::GenStructures
  2.09     50.36     1.20  1775634     0.00     0.00  cNoise::CubicNoise2D
  1.75     51.36     1.00     6123     0.00     0.00  adler32
  1.66     52.31     0.95   726731     0.00     0.00  cBioGenVoronoi::VoronoiBiome
  1.43     53.13     0.82   426000     0.00     0.00  cNoise::CubicNoise3D
  1.20     53.82     0.69     1814     0.00     0.00  cIniFile::FindValue
  0.98     54.38     0.56    34071     0.00     0.00  cStructGenRavines::cRavine::ProcessChunk
  0.59     54.72     0.34      484     0.00     0.01  cStructGenWormNestCaves::GenStructures
  0.54     55.03     0.31      866     0.00     0.00  compress_block
I guess the ARM architecture is good for math programming, but not so good for memory access. PrepareSkyLight jumps all over more than a 600 KiB block of memory, reading it and writing to it byte-wise. Generators usually take a few numeric values and chew them over and over until they get a final number out of it, and that's where a many-register platform wins.

I'd like to run a few more tests on this - to see if there's any kind of RAM cache somewhere in there, if it's better to access the memory consecutively or it is the same as accessing it randomly.
Reply
Thanks given by:


Messages In This Thread
MC-Server on Raspberry Pi - by DJburner - 07-28-2012, 06:53 AM
RE: MC-Server on Raspberry Pi - by xoft - 07-28-2012, 07:13 AM
RE: MC-Server on Raspberry Pi - by DJburner - 07-28-2012, 07:23 AM
RE: MC-Server on Raspberry Pi - by xoft - 07-28-2012, 07:39 AM
RE: MC-Server on Raspberry Pi - by DJburner - 07-28-2012, 07:44 AM
RE: MC-Server on Raspberry Pi - by xoft - 07-28-2012, 08:25 AM
RE: MC-Server on Raspberry Pi - by DJburner - 07-28-2012, 08:59 PM
RE: MC-Server on Raspberry Pi - by xoft - 07-28-2012, 09:29 PM
RE: MC-Server on Raspberry Pi - by DJburner - 07-28-2012, 09:45 PM
RE: MC-Server on Raspberry Pi - by xoft - 07-28-2012, 09:47 PM
RE: MC-Server on Raspberry Pi - by DJburner - 07-28-2012, 10:02 PM
RE: MC-Server on Raspberry Pi - by xoft - 07-28-2012, 10:22 PM
RE: MC-Server on Raspberry Pi - by DJburner - 07-28-2012, 10:27 PM
RE: MC-Server on Raspberry Pi - by xoft - 07-30-2012, 06:50 AM
RE: MC-Server on Raspberry Pi - by DJburner - 07-30-2012, 07:21 AM
RE: MC-Server on Raspberry Pi - by xoft - 07-30-2012, 07:24 AM
RE: MC-Server on Raspberry Pi - by DJburner - 07-30-2012, 07:30 AM
RE: MC-Server on Raspberry Pi - by xoft - 08-01-2012, 07:06 PM
RE: MC-Server on Raspberry Pi - by kfricke - 08-01-2012, 07:55 PM
RE: MC-Server on Raspberry Pi - by NiLSPACE - 08-01-2012, 08:22 PM
RE: MC-Server on Raspberry Pi - by kfricke - 08-01-2012, 10:39 PM
RE: MC-Server on Raspberry Pi - by xoft - 08-01-2012, 08:59 PM
RE: MC-Server on Raspberry Pi - by xoft - 08-01-2012, 10:47 PM
RE: MC-Server on Raspberry Pi - by FakeTruth - 08-01-2012, 11:15 PM
RE: MC-Server on Raspberry Pi - by xoft - 08-01-2012, 11:35 PM
RE: MC-Server on Raspberry Pi - by kfricke - 08-01-2012, 11:28 PM
RE: MC-Server on Raspberry Pi - by FakeTruth - 08-01-2012, 11:45 PM
RE: MC-Server on Raspberry Pi - by xoft - 08-03-2012, 01:06 AM
RE: MC-Server on Raspberry Pi - by xoft - 08-06-2012, 06:12 AM
RE: MC-Server on Raspberry Pi - by xoft - 08-06-2012, 08:46 PM
RE: MC-Server on Raspberry Pi - by FakeTruth - 08-06-2012, 09:45 PM
RE: MC-Server on Raspberry Pi - by xoft - 08-06-2012, 10:45 PM
RE: MC-Server on Raspberry Pi - by FakeTruth - 08-07-2012, 05:44 AM
RE: MC-Server on Raspberry Pi - by xoft - 08-07-2012, 06:18 AM
RE: MC-Server on Raspberry Pi - by FakeTruth - 08-07-2012, 06:23 AM
RE: MC-Server on Raspberry Pi - by xoft - 08-09-2012, 01:57 AM
RE: MC-Server on Raspberry Pi - by TheCreeper - 08-13-2012, 12:51 AM
RE: MC-Server on Raspberry Pi - by xoft - 08-13-2012, 01:05 AM
RE: MC-Server on Raspberry Pi - by TheCreeper - 08-13-2012, 01:42 AM
RE: MC-Server on Raspberry Pi - by xoft - 08-13-2012, 03:37 AM
RE: MC-Server on Raspberry Pi - by TheCreeper - 08-13-2012, 06:44 AM
RE: MC-Server on Raspberry Pi - by bearbin - 09-05-2012, 01:04 AM
RE: MC-Server on Raspberry Pi - by bstrobl - 09-29-2012, 07:50 PM
RE: MC-Server on Raspberry Pi - by xoft - 09-30-2012, 12:02 AM
RE: MC-Server on Raspberry Pi - by bstrobl - 09-30-2012, 05:11 AM
RE: MC-Server on Raspberry Pi - by FakeTruth - 09-30-2012, 07:32 AM
RE: MC-Server on Raspberry Pi - by xoft - 09-30-2012, 04:11 PM
RE: MC-Server on Raspberry Pi - by cave - 10-03-2012, 06:32 AM
RE: MC-Server on Raspberry Pi - by xoft - 10-03-2012, 06:52 AM
RE: MC-Server on Raspberry Pi - by TheCreeper - 10-06-2012, 03:14 AM
RE: MC-Server on Raspberry Pi - by konfiot - 10-06-2012, 05:29 PM
RE: MC-Server on Raspberry Pi - by xoft - 10-07-2012, 03:01 AM
RE: MC-Server on Raspberry Pi - by konfiot - 10-07-2012, 07:29 AM
RE: MC-Server on Raspberry Pi - by xoft - 10-07-2012, 06:38 PM
RE: MC-Server on Raspberry Pi - by konfiot - 10-07-2012, 07:17 PM
RE: MC-Server on Raspberry Pi - by cave - 10-17-2012, 02:33 AM
RE: MC-Server on Raspberry Pi - by xoft - 10-17-2012, 05:39 AM
RE: MC-Server on Raspberry Pi - by xoft - 11-27-2012, 08:10 PM
RE: MC-Server on Raspberry Pi - by scythium - 12-15-2012, 04:01 PM
RE: MC-Server on Raspberry Pi - by bearbin - 12-15-2012, 05:53 PM
RE: MC-Server on Raspberry Pi - by xoft - 12-15-2012, 10:05 PM
RE: MC-Server on Raspberry Pi - by scythium - 12-16-2012, 04:22 AM
RE: MC-Server on Raspberry Pi - by gandl - 12-16-2012, 04:49 AM
RE: MC-Server on Raspberry Pi - by scythium - 12-16-2012, 07:07 AM
RE: MC-Server on Raspberry Pi - by FakeTruth - 12-16-2012, 07:08 AM
RE: MC-Server on Raspberry Pi - by gandl - 12-17-2012, 10:20 PM
RE: MC-Server on Raspberry Pi - by Luksor - 12-18-2012, 12:03 AM
RE: MC-Server on Raspberry Pi - by xoft - 12-18-2012, 12:07 AM
RE: MC-Server on Raspberry Pi - by gandl - 12-18-2012, 12:18 AM
RE: MC-Server on Raspberry Pi - by xoft - 12-18-2012, 12:32 AM
RE: MC-Server on Raspberry Pi - by gandl - 12-18-2012, 08:10 AM
RE: MC-Server on Raspberry Pi - by xoft - 12-18-2012, 01:08 PM
RE: MC-Server on Raspberry Pi - by gandl - 12-19-2012, 10:23 PM
RE: MC-Server on Raspberry Pi - by Luksor - 12-19-2012, 11:14 PM
RE: MC-Server on Raspberry Pi - by xoft - 12-19-2012, 10:32 PM
RE: MC-Server on Raspberry Pi - by xoft - 12-19-2012, 11:19 PM
RE: MC-Server on Raspberry Pi - by gandl - 12-19-2012, 11:27 PM
RE: MC-Server on Raspberry Pi - by Luksor - 12-19-2012, 11:58 PM
RE: MC-Server on Raspberry Pi - by xoft - 12-20-2012, 09:50 AM
RE: MC-Server on Raspberry Pi - by Luksor - 12-20-2012, 04:19 PM
RE: MC-Server on Raspberry Pi - by gandl - 12-30-2012, 01:41 AM
RE: MC-Server on Raspberry Pi - by FakeTruth - 12-30-2012, 02:36 AM
RE: MC-Server on Raspberry Pi - by gandl - 12-30-2012, 03:02 AM
RE: MC-Server on Raspberry Pi - by xoft - 12-31-2012, 10:37 AM
RE: MC-Server on Raspberry Pi - by jaru - 01-09-2013, 12:45 PM
RE: MC-Server on Raspberry Pi - by xoft - 01-09-2013, 01:43 PM
RE: MC-Server on Raspberry Pi - by jaru - 01-09-2013, 02:59 PM
RE: MC-Server on Raspberry Pi - by gandl - 02-13-2013, 12:44 AM
RE: MC-Server on Raspberry Pi - by xoft - 02-13-2013, 02:26 AM
RE: MC-Server on Raspberry Pi - by gandl - 02-13-2013, 03:21 AM
RE: MC-Server on Raspberry Pi - by bearbin - 02-13-2013, 02:44 AM
RE: MC-Server on Raspberry Pi - by xoft - 02-13-2013, 04:46 AM
RE: MC-Server on Raspberry Pi - by gandl - 02-27-2013, 09:37 PM
RE: MC-Server on Raspberry Pi - by xoft - 02-27-2013, 09:52 PM
RE: MC-Server on Raspberry Pi - by gandl - 02-27-2013, 10:10 PM
RE: MC-Server on Raspberry Pi - by RattyDAVE - 02-28-2013, 02:07 AM
RE: MC-Server on Raspberry Pi - by xoft - 02-28-2013, 05:06 AM
RE: MC-Server on Raspberry Pi - by RattyDAVE - 02-28-2013, 07:08 AM
RE: MC-Server on Raspberry Pi - by xoft - 02-28-2013, 07:11 AM
RE: MC-Server on Raspberry Pi - by RattyDAVE - 02-28-2013, 07:15 AM
RE: MC-Server on Raspberry Pi - by xoft - 02-28-2013, 07:33 AM
RE: MC-Server on Raspberry Pi - by gandl - 03-15-2013, 08:09 PM
RE: MC-Server on Raspberry Pi - by RattyDAVE - 03-15-2013, 08:56 PM
RE: MC-Server on Raspberry Pi - by xoft - 03-15-2013, 11:55 PM
RE: MC-Server on Raspberry Pi - by gandl - 03-16-2013, 07:50 AM
RE: MC-Server on Raspberry Pi - by xoft - 03-16-2013, 05:20 PM
RE: MC-Server on Raspberry Pi - by gandl - 03-16-2013, 08:09 PM
RE: MC-Server on Raspberry Pi - by xoft - 03-17-2013, 04:59 AM



Users browsing this thread: 4 Guest(s)