logo separator

[mkgmap-dev] [PATCH v1] Experimental support for multi-threading

From Mark Burton markb at ordern.com on Sat May 9 20:59:27 BST 2009

Hi Paul,

> I have no actual timings for run time but system monitor showed both
> cores extensively used throughout.

Thanks for the feedback. At least it didn't blow up!

With 2 cores the gain is quite small but worth having none the less (as
long as it's reliable).

You could just use "time" to output the process times. The ratio of
CPU time (user + system) to elapsed will give you an indication of how
well the 2 cores were utilised. The time command may be built in to the
shell but if you use /usr/bin/time you can give it a -v option and get
some useful info out of it.

The other useful command is mpstat which can print out times for all of
the cores separately, i.e. 

mpstat -P ALL 1

That reports the times for all cores every second.

Cheers,

Mark



More information about the mkgmap-dev mailing list