The process I use for "shutting down" OSRM, including freeing shared memory, is less than elegant:
- Pay attention to
osrm-datastore's runtime output, noting the # of bytes it loads.
- Run
icmp -m and look for a segment with the same # of bytes to get a shmid
- Then run
ipcrm -m {shmid} to free the shared memory...
Is there a better way of doing this?
The process I use for "shutting down" OSRM, including freeing shared memory, is less than elegant:
osrm-datastore's runtime output, noting the # of bytes it loads.icmp -mand look for a segment with the same # of bytes to get ashmidipcrm -m {shmid}to free the shared memory...Is there a better way of doing this?