[OSRM-talk] osrm performance with multiple threads is confusing me
I'm a little bit confused. i have load the map in memory with osrm-datastore und run one instance with "osrm-route --shared-memory=yes -t 1 -p 5000" with only one thread, one cpu-core raise up tzo 90% and i get ~500 routes per second if i set thread count to more then 2 or more "osrm-route --shared-memory=yes -t 2 -p 5000" 3 cpu-cores are raise up to 30-50% usage and i only get ~333 routes per second. so i also try run 2 instances with one core: "osrm-route --shared-memory=yes -t 1 -p 5000" "osrm-route --shared-memory=yes -t 1 -p 5001" and use ngnix as load-balancer .. it dosn't make a difference to one instance with 2 or more threads what is wrong? with "-t 2" or 2 instances i expect that 2 cpu-cores are at 100% and i get more routes per second as with "-t 1". ___ OSRM-talk mailing list OSRM-talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/osrm-talk
Re: [OSRM-talk] osrm performance with multiple threads is confusing me
iotop: 0% 2015-11-12 16:53 GMT+01:00 Peter Becker <floyd@gmail.com>: > Client: different machine over network, Windows 8.1, .Net App with 4 > Cores (Ivy Bridge), Tested with 4, 8, 20 Threads parallel > Server: Hyper-V-Instance, Haswell 4 Core's, 8 GB RAM, Ubuntu 14.04. > LTS, Samsung 512 GB Pro SSD; + german map file > > german.maps.osrm is placed on ssd and load with datastore in shared memory > > $ osrm-route --shared-memory=yes -t 1 -p 5000 > CPU-Usage: > Core 1: 0% > Core 2: ~90%; > Core 3: 0%; > Core 4: ~5%; > Routes (2 Points) per Second: ~500 > > -- > > $ osrm-route --shared-memory=yes -t 2 -p 5000 > CPU-Usage: > Core 1: ~33% > Core 2: ~33%; > Core 3: ~54%; > Core 4: ~5%; > Routes (2 Points) per Second: ~333 > > -- > > $ osrm-route --shared-memory=yes -t 1 -p 5000 > $ osrm-route --shared-memory=yes -t 1 -p 5001 > CPU-Usage: > Core 1: ~33% > Core 2: ~33%; > Core 3: ~54%; > Core 4: ~5%; > Routes (2 Points) per Second: ~333 > (same result) ___ OSRM-talk mailing list OSRM-talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/osrm-talk
Re: [OSRM-talk] How to disable all ferry routes?
Thank you this works 2015-11-11 16:23 GMT+01:00 Daniel Hofmann <hofm...@mapbox.com>: > If you take a look at the car profile, you will see a ferry_mode variable, > that sets the travel mode: > > https://github.com/Project-OSRM/osrm-backend/blob/8f6fc0146ba76d34d20c5b7a87b75249bbb12b82/profiles/car.lua#L151 > > If you set this to 0 (i.e. 'inaccessible") as defined here: > > https://github.com/Project-OSRM/osrm-backend/blob/8f6fc0146ba76d34d20c5b7a87b75249bbb12b82/data_structures/travel_mode.hpp#L34-L35 > > then the extractor discards ferry routes because you marked them > inaccessible. > > On Wed, Nov 11, 2015 at 9:03 AM, Peter Becker <floyd@gmail.com> wrote: >> >> Hello, i dont want any ferries in my routes. Is this possible? >> >> ___ >> OSRM-talk mailing list >> OSRM-talk@openstreetmap.org >> https://lists.openstreetmap.org/listinfo/osrm-talk > > > > ___ > OSRM-talk mailing list > OSRM-talk@openstreetmap.org > https://lists.openstreetmap.org/listinfo/osrm-talk > ___ OSRM-talk mailing list OSRM-talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/osrm-talk