logo separator

[mkgmap-dev] Error in memory calculation

From Gerd Petermann gpetermann_muenchen at hotmail.com on Wed Feb 5 15:26:30 GMT 2020

Hi Ticker,

OK, I think it's best when I change the code so that we have a method that computes the flags IN,ON,OUT, and maybe something else about polygons in holes. Input parameters are ElementQuadTree qt and the Element el.
This is required anyway to allow unit tests.

The code in IsInFunction.java should only implement  the "user interface" and evaluates the result. I'd be happy when you create that part.

Gerd

________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Ticker Berkin <rwb-mkgmap at jagit.co.uk>
Gesendet: Mittwoch, 5. Februar 2020 14:05
An: Development list for mkgmap
Betreff: Re: [mkgmap-dev] Error in memory calculation

Hi Gerd

I don't have a 64bit environment or that much memory. In my normal
environment, I get:

$ java -Xms1500M -Xmx1540M -jar ../mkgmap.trunk/mkgmap.jar \
  dummy.osm dummy.osm dummy.osm
Time started: Wed Feb 05 12:56:28 GMT 2020
Setting max-jobs to 4
Number of MapFailedExceptions: 0
Number of ExitExceptions: 0
Time finished: Wed Feb 05 12:56:29 GMT 2020
Total time taken: 1 second

-Xmx1540M is the maximum value that allows Java to start up on my
machine.

With a newer version I loaded in October, but it didn't have any
obvious advantages:

$ /opt/jre1.8.0_231/bin/java -Xms1500M -Xmx1540M \
  -jar ../mkgmap.trunk/mkgmap.jar \
  dummy.osm dummy.osm dummy.osm
Time started: Wed Feb 05 12:58:29 GMT 2020
Setting max-jobs to 4
Number of MapFailedExceptions: 0
Number of ExitExceptions: 0
Time finished: Wed Feb 05 12:58:30 GMT 2020
Total time taken: 1 second

Ticker

On Fri, 2020-01-31 at 16:15 +0000, Gerd Petermann wrote:
> please try this command with openjdk 11 or 13 64Bit:
> java -Xms4G -Xmx10G -jar mkgmap.jar f:\osm\dummy.osm f:\osm\dummy.osm
> f:\osm\dummy.osm
> This is what I get:
> Time started: Fri Jan 31 17:12:53 CET 2020
> Setting max-jobs to 1
> Number of MapFailedExceptions: 0
> To reduce the run time, consider increasing the amnount of memory
> available for use by mkgmap by using the Java -Xmx flag to set the
> memory to more than 41000 MB, providing this is less than the amount
> of physical memory installed.
> Number of ExitExceptions: 0
> Time finished: Fri Jan 31 17:12:54 CET 2020
> Total time taken: 1 second
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


More information about the mkgmap-dev mailing list