<!DOCTYPE html>
<html><head>
    <meta charset="UTF-8">
</head><body><p>Thank you for that great work!<br></p><p>Now my old nostalgia PC is able <span style="text-decoration: underline;"></span>to create the index for Speiche_Europa!<br></p><p>My PC has only 6GB RAM.<br></p><p>-Xmx5300M -> fails with "java heap space error"<br></p><p>-Xmx10500M -> fails with "overflowed directory with max block".</p><p>- Xmx10500M and Option --block-size=65536 -> That works!<br></p><p>Its better to run mkgmap 2 times. First step builds the maptiles with Xmx3000M, so that java not use the harddisk to swap, cause that makes the PC very slow. The ovm-work files may not be deleted for the overview map.<br></p><p>The second step with -Xmx10500M builds the index and the overview map. The taskmanager show maximal ~9GB in use. The Speiche_Europa map has ~20GB.<br></p><p>Special thanks to Gerd, who show me many things to improve my map building procedere!<br></p><p>Best regards<br></p><p>Arndt<br></p><p>speichenkarte.de<br></p><p><br></p><p><br></p>.<p><br></p><blockquote><p>Gerd Petermann <GPetermann_muenchen@hotmail.com> hat am 18. April 2017 um 16:41 geschrieben:</p><p>Hi all,</p><p>as a follow up:<br>In r3907 and r3908 I have coded the merge sort for roads and pois. Now -Xmx4000 was easily enough to create the index for Europe.<br>r3906 failed with OutOfMemoryError even with -Xmx5000 .<br>So I think memory is no longer a problem unless you want to create an index for planet ;-)<br>No other changes, means r3908 can be used to create index for *.img files created with r3906.</p><p>Gerd</p><p>________________________________________<br>Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Gerd Petermann <GPetermann_muenchen@hotmail.com><br>Gesendet: Montag, 17. April 2017 20:05:15<br>An: mkgmap-dev@lists.mkgmap.org.uk<br>Betreff: [mkgmap-dev] mkgmap-r3906 (optimize-index)</p><p>Hi all,</p><p>with the help of Steve I fixed some problems with the index, esp. sorting of road names with different speliing of Straße caused a lot of problems, like Ahornstraße (Germany) and Ahornstrasse (Switzerland).</p><p>I think address / road search works very well now, at least with west european languages.<br>I tried various combinations of options like --latin1 / --unicode, --lower-case, --x-split-name-index both in MapSource and on my Oregon 600 and always got what I expected.</p><p>IMPORTANT:<br>If you try this version, please make sure that you also compile the img files with this version so that the changes in the sort are used everywhere.</p><p>The branch also reduces peak memory compared to trunk and because of that it is faster when creating large indexes, but speed is probably not so important here.<br>The created index is a bit smaller although it now also contains roads with an empty string as first label.</p><p>If memory is still an issue for you when compiling the index for large maps I can try to implement a merge sort which would only create the - heap consuming - sort<br>keys for a rather small number (e.g. 100.000) roads and sort those and finally merge the parts.</p><p>If you know special cases which don't work with r3890 trunk please try the branch and let me know if something might be improved.<br>I think it is a big step forward, but there may still be special cases with other languages.</p><p>I used a small set of only 4 tiles to test functionality and compiled index for Europe (compiled with default style) (>1600 tiles) with -Xmx6800m and --x-split-name-index</p><p>Gerd</p><p>_______________________________________________<br>mkgmap-dev mailing list<br>mkgmap-dev@lists.mkgmap.org.uk<br><a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br></p><p>_______________________________________________<br>mkgmap-dev mailing list<br>mkgmap-dev@lists.mkgmap.org.uk<br><a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br></p></blockquote></body></html>