extract hard links

This commit is contained in:
Zsolt Ero
2023-12-08 22:39:46 +01:00
parent 58f35acb30
commit 5fa30ac5ba
7 changed files with 146 additions and 6 deletions

View File

@@ -27,8 +27,8 @@ rm -f image.ext4
# make a sparse file
# make sure it's bigger then the current OSM output
# less fragmentation with fallocate
fallocate -l 150G image.ext4
#truncate -s 150G image.ext4
fallocate -l 1500G image.ext4
#truncate -s 1500G image.ext4
mke2fs -t ext4 -v \
@@ -42,10 +42,14 @@ mke2fs -t ext4 -v \
mkdir mnt
sudo mount -v \
-t ext4 \
-o nobarrier,noatime,data=writeback,commit=100 \
-o nobarrier,noatime \
image.ext4 mnt
sudo /data/ofm/tile_gen/venv/bin/mb-util output.mbtiles mnt/extract
sudo chown ofm:ofm -R mnt
../../tile_gen/venv/bin/python ../../tile_gen/extract.py output.mbtiles mnt/extract \
> "extract_out.log" 2> "extract_err.log"
sudo umount mnt
resize2fs -M image.ext4

View File

@@ -16,7 +16,7 @@ java -Xmx1g \
`# Store temporary node locations at fixed positions in a memory-mapped file` \
--nodemap-type=array --storage=mmap \
--force \
> "output.log" 2> "err.log"
> "planetiler_out.log" 2> "planetiler_err.log"

View File

@@ -16,7 +16,7 @@ java -Xmx30g \
`# Store temporary node locations at fixed positions in a memory-mapped file` \
--nodemap-type=array --storage=mmap \
--force \
> "output.log" 2> "err.log"
> "planetiler_out.log" 2> "planetiler_err.log"