Hello,
I'm wondering if anyone can help out with this error I'm getting when
running osrm-datastore under a non-root user:
root@htzh /opt/osrm # su - osrm -c "osrm-datastore
/opt/osrm/data/planet-latest/planet-latest.osrm"
[info] Loading data into REGION_1
[info] load names from:
"/opt/osrm/data/planet-latest/planet-latest.osrm.names"
[info] Allocating shared memory of 96772768369 bytes
[error] Error while attempting to allocate shared memory: Invalid
argument, code 21
terminate called after throwing an instance of 'osrm::util::exception'
what(): Invalid argumentinclude/storage/shared_memory.hpp:308
root@htzh /opt/osrm # su - osrm -c "ulimit -a | grep max"
max locked memory (kbytes, -l) 128849018880
max memory size (kbytes, -m) unlimited
max user processes (-u) 1031189
Available shared memory for the user has been increased in
/etc/security/limits.conf as per the wiki page, as shown above.
The server has 256GB of RAM, with at least 200GB available most of the
time. I successfully ran osrm-datastore and osrm-routed as the root user
earlier, but we would ideally run it under a separate user.
Thanks in advance.
Kind regards,
Kieran Caplice
_______________________________________________
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk