From 238d87c2a24abae0bc3821d8b65a6e2e7d780bcf Mon Sep 17 00:00:00 2001 From: curt Date: Wed, 28 Sep 2005 16:40:32 +0000 Subject: [PATCH] Increase resource limits for the tile builder. --- src/BuildTiles/Main/README | 2 ++ src/BuildTiles/Main/main.cxx | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/BuildTiles/Main/README b/src/BuildTiles/Main/README index 4db3c3bc..3daa85ae 100644 --- a/src/BuildTiles/Main/README +++ b/src/BuildTiles/Main/README @@ -1,5 +1,7 @@ Sample command line to build a specific tile-id: +./fgfs-construct --work-dir=/stage/fgfs05/curt/Work --output-dir=/stage/fgfs05/curt/Scenery-1.0 --tile-id=942691 /stage/fgfs05/curt/Work/AirportArea /stage/fgfs05/curt/Work/AirportObj /stage/fgfs05/curt/Work/VPF-Canals /stage/fgfs05/curt/Work/VPF-Cities /stage/fgfs05/curt/Work/VPF-FloodLand /stage/fgfs05/curt/Work/VPF-Lakes /stage/fgfs05/curt/Work/VPF-LandCover /stage/fgfs05/curt/Work/VPF-LandMass /stage/fgfs05/curt/Work/VPF-Railroads /stage/fgfs05/curt/Work/VPF-Rivers /stage/fgfs05/curt/Work/VPF-Roads /stage/fgfs05/curt/Work/VPF-Towns /stage/fgfs05/curt/Work/TowerObj /stage/fgfs05/curt/Work/SRTM-United_States-1 /stage/fgfs05/curt/Work/SRTM-North_America-3 /stage/fgfs05/curt/Work/SRTM-South_America-3 /stage/fgfs05/curt/Work/SRTM-Eurasia-3 /stage/fgfs05/curt/Work/SRTM-Africa-3 /stage/fgfs05/curt/Work/DEM-USGS-3 /stage/fgfs05/curt/Work/SRTM-30 2>&1 | less + ./fgfs-construct --work-dir=/stage/fgfs04/curt/Work --output-dir=/stage/fgfs04/curt/FlightGear --tile-id=942050 --cover=/stage/fgfs04/curt/Work/LC-Global/gusgs2_0ll.img.old /stage/fgfs04/curt/Work/AirportArea /stage/fgfs04/curt/Work/AirportObj /stage/fgfs04/curt/Work/GSHHS-Ponds /stage/fgfs04/curt/Work/GSHHS-Islands /stage/fgfs04/curt/Work/GSHHS-Lakes /stage/fgfs04/curt/Work/GSHHS-LandMass /stage/fgfs04/curt/Work/USA-Hydro /stage/fgfs04/curt/Work/USA-Urban /stage/fgfs04/curt/Work/SRTM-1 2>&1 | less Sample command line to build tiles intersecting an area specified by a diff --git a/src/BuildTiles/Main/main.cxx b/src/BuildTiles/Main/main.cxx index b649797f..046a731d 100644 --- a/src/BuildTiles/Main/main.cxx +++ b/src/BuildTiles/Main/main.cxx @@ -1218,8 +1218,8 @@ int main(int argc, char **argv) { // again with a smaller interior angle limit. int result; struct rlimit limit; - limit.rlim_cur = 20000000; - limit.rlim_max = 20000000; + limit.rlim_cur = 40000000; + limit.rlim_max = 40000000; #if 0 result = setrlimit( RLIMIT_DATA, &limit ); @@ -1234,8 +1234,8 @@ int main(int argc, char **argv) { // cpu time limit since occassionally the triangulator can go into // an infinite loop. - limit.rlim_cur = 120; - limit.rlim_max = 120; + limit.rlim_cur = 300; // seconds + limit.rlim_max = 300; // seconds result = setrlimit( RLIMIT_CPU, &limit ); cout << "result of setting mem limit = " << result << endl; #endif // end of stuff that crashes Cygwin